Home
last modified time | relevance | path

Searched refs:f (Results 1 – 25 of 122) sorted by relevance

12345

/ark/runtime_core/runtime/tests/
Dframe_test.cpp31 void FreeFrame(Frame *f) in FreeFrame() argument
33 std::free(f); in FreeFrame()
38 Frame *f = panda::test::CreateFrame(2, nullptr, nullptr); in TEST() local
39 f->GetVReg(0).MarkAsObject(); in TEST()
40 EXPECT_TRUE(f->GetVReg(0).HasObject()); in TEST()
42 f->GetVReg(0).MarkAsPrimitive(); in TEST()
43 EXPECT_FALSE(f->GetVReg(0).HasObject()); in TEST()
46 f->GetVReg(0).MarkAsObject(); in TEST()
47 f->GetVReg(0).SetPrimitive(v64); in TEST()
48 EXPECT_EQ(f->GetVReg(0).GetLong(), v64); in TEST()
[all …]
Dinterpreter_test.cpp88 static void InitializeFrame(Frame *f) in InitializeFrame() argument
90 ManagedThread::GetCurrent()->SetCurrentFrame(f); in InitializeFrame()
91 for (size_t i = 0; i < f->GetSize(); i++) { in InitializeFrame()
92 f->GetVReg(i).SetValue(static_cast<int64_t>(0)); in InitializeFrame()
93 f->GetVReg(i).SetTag(static_cast<int64_t>(0)); in InitializeFrame()
148 Class *klass, Frame *f, const std::vector<uint8_t> &bytecode) in CreateMethod() argument
150 return CreateMethod(klass, 0, 0, f->GetSize(), nullptr, bytecode); in CreateMethod()
216 auto f = CreateFrame(std::numeric_limits<uint16_t>::max() + 1, nullptr, nullptr); in TEST_F() local
217 InitializeFrame(f.get()); in TEST_F()
220 auto method_data = CreateMethod(cls.get(), f.get(), bytecode); in TEST_F()
[all …]
/ark/runtime_core/verification/debug/parser/
Dparser.h62 constexpr base_parser(const F &f) : verifier::callable<bool(Context &, Iter &, Iter)> {f}
135 auto operator|=(F f) const ->
136 …typename if_type<decltype(f(action::START, ref_to<Context>(), ref_to<Iter>(), val_of<Iter>(), val_…
139 static const auto l = [p = *this, f](Context &c, Iter &start, Iter end) {
141 if (!f(action::START, c, start, start, end)) {
147 f(action::CANCEL, c, saved, start, end);
151 if (!f(action::PARSED, c, saved, start, end)) {
161 auto operator|=(F f) const ->
162 …typename if_type<decltype(f(action::START, ref_to<Context>(), ref_to<Iter>(), val_of<Iter>())), bo…
165 static const auto l = [p = *this, f](Context &c, Iter &start, Iter end) {
[all …]
/ark/ts2abc/test262/
Dutils.py46 f'{current_time()} D:>>> {TERM_BLUE}{str(info)}{TERM_NORMAL}')
51 print(f'{current_time()} I:>>> \n{str(info)} ')
53 print(f'{current_time()} I:>>> {str(info)} ')
98 LOGGING.debug(f"write file:{save_file}")
120 sys.stderr.write(f'{TERM_BLUE}{cmd_type}{TERM_NORMAL}\n')
122 sys.stderr.write(''.join(f'{TERM_BLUE}{var}={val} \\{TERM_NORMAL}\n'
124 cmd_str = (f'{TERM_NORMAL}\n\t{TERM_BLUE}').join(cmd)
125 sys.stderr.write(f'\t{TERM_BLUE}{cmd_str}{TERM_NORMAL}\n')
132 assert not ret, f"\n error: Cloning '{git_url}' failed."
138 assert not ret, f"\n error: git checkout '{git_bash}' failed."
[all …]
Dconfig.py32 ARK_DIR = f"{CODE_ROOT}/out/hi3516dv300/clang_x64/ark/ark"
33 ICUI_DIR = f"{CODE_ROOT}/out/hi3516dv300/clang_x64/global/i18n_standard"
34 LLVM_DIR = f"{CODE_ROOT}/prebuilts/clang/ohos/linux-x86_64/llvm/lib/"
35 ARK_JS_RUNTIME_DIR = f"{CODE_ROOT}/out/hi3516dv300/clang_x64/ark/ark_js_runtime"
45 DEFAULT_LIBS_DIR = f"{ARK_DIR}:{ICUI_DIR}:{LLVM_DIR}:{ARK_JS_RUNTIME_DIR}"
Drun_test262.py141 raise ValueError(f'Not found: "{path}"')
154 raise SystemExit(f'{file} can not found in {src_dir}')
415 host_args = f"-B test262/run_sunspider.py "
416 host_args += f"--ark-tool={ark_tool} "
417 host_args += f"--ark-frontend-tool={ark_frontend_tool} "
418 host_args += f"--libs-dir={libs_dir} "
419 host_args += f"--ark-frontend={ark_frontend} "
422 host_args += f"--ark-arch={args.ark_arch} "
423 host_args += f"--ark-arch-root={args.ark_arch_root} "
436 test_cmd.append(f"--hostType={host_type}")
[all …]
Drun_sunspider.py67 ICU_PATH = f"--icu-data-path={CODE_ROOT}/third_party/icu/ohos_icu4j/data"
112 msg = f"Command {cmd_string}: \n"
113 msg += f"error: {str(errs.decode(code_format,'ignore'))}"
123 msg = f"Timeout:'{cmd_string}' timed out after' {str(timeout)} seconds"
126 msg = f"{cmd_string}: unknown error: {str(err)}"
165 out_file = f"{file_name_pre}.abc"
195 f'{file_name_pre}.abc']
202 f'{file_name_pre}.abc']
205 f'{file_name_pre}.abc']
/ark/runtime_core/runtime/bridge/arch/amd64/
Dinterpreter_to_compiled_code_bridge_amd64.S28 je 1f
33 je 1f
38 je 1f
43 je 1f
48 je 1f
58 je 1f
63 je 1f
68 je 1f
73 je 1f
78 je 1f
[all …]
Dcompiled_code_to_interpreter_bridge_amd64.S146 jne 1f
171 jbe 1f
175 je 2f
181 jmp 3f
185 je 2f
191 jmp 3f
217 jne 1f
221 jmp 3f
227 jbe 2f
233 jmp 3f
/ark/ts2abc/ts2panda/scripts/
Drun_tests.py99 if os.path.exists(f'{self.dist_dir}/tests'):
100 run_command(['rm', '-rf', f'{self.dist_dir}/tests'])
101 run_command(['cp', '-rf', f'{self.src_dir}/tests', self.dist_dir])
132 cmd = ['cp', f'{self.src_dir}/src/jshelpers.js', f'build/src/' ]
134 cmd = [mocha, f'build/{tests_args}']
137 cmd = ['cp', f'{self.src_dir}/src/jshelpers.js', f'build-win/src/' ]
139 cmd = [mocha, f'build-win/{tests_args}']
142 cmd = ['cp', f'{self.src_dir}/src/jshelpers.js', f'build-mac/src/' ]
144 cmd = [mocha, f'build-mac/{tests_args}']
/ark/runtime_core/verification/util/
Dflags.h72 ConstBit operator[](Enum f) const
74 ASSERT(f == Flag);
78 Bit operator[](Enum f)
80 ASSERT(f == Flag);
104 typename Base::ConstBit operator[](Enum f) const
106 if (f == Flag) {
109 return Base::operator[](f);
112 typename Base::Bit operator[](Enum f)
114 if (f == Flag) {
117 return Base::operator[](f);
/ark/runtime_core/runtime/bridge/arch/x86/
Dcompiled_code_to_interpreter_bridge_x86.S99 jne 1f
117 jbe 1f
130 jmp 2f
165 jne 1f
172 jmp 4f
177 jbe 3f
181 jbe 2f
192 jmp 4f
205 jmp 4f
Dinterpreter_to_compiled_code_bridge_x86.S24 je 2f
28 jbe 1f
34 jmp 3f
42 jne 3f
72 jne 1f
82 jne 3f
89 je 6f
92 je 5f
96 jbe 4f
128 jz 1f
[all …]
/ark/ts2abc/testTs/expect/classes/propertyMemberDeclarations/
DstaticPropertyAndFunctionWithSameName.txt1 …: 1}, {'t': 5, 'v': 'f'}, {'t': 2, 'v': 1}, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, …
3 …: 2, 'v': 0}, {'t': 2, 'v': 1}, {'t': 5, 'v': 'f'}, {'t': 2, 'v': 54}, {'t': 2, 'v': 1}, {'t': 5, …
4 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, {'t': 5, 'v': 'f'}, {'t': 2, 'v': 0},…
DstaticAndNonStaticPropertiesSameName.txt1 …'f'}, {'t': 2, 'v': 52}, {'t': 2, 'v': 1}, {'t': 5, 'v': 'x'}, {'t': 2, 'v': 1}, {'t': 2, 'v': 0},…
2 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, {'t': 5, 'v': 'f'}, {'t': 2, 'v': 0},…
3 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 0}, {'t': 2, 'v': 1}, {'t': 5, 'v': 'f'}, {'t': 2, 'v': 0},…
/ark/runtime_core/runtime/bridge/arch/arm/
Dinterpreter_to_compiled_code_bridge_armhf.S27 beq 1f
30 beq 1f
33 beq 1f
41 beq 1f
44 beq 1f
47 beq 1f
50 beq 1f
53 beq 1f
56 beq 1f
59 beq 1f
[all …]
Dcompiled_code_to_interpreter_bridge_armhf.S144 bne 1f
163 bhi 1f
175 bls 2f
182 beq 3f
191 beq 3f
223 bne 1f
226 b 4f
230 bhi 2f
235 b 4f
240 bls 3f
[all …]
Dcompiled_code_to_interpreter_bridge_arm.S141 bne 1f
157 bls 1f
167 b 2f
196 bne 1f
199 b 3f
203 bls 2f
208 b 3f
/ark/runtime_core/libpandabase/serializer/
Dfor_each_tuple.h24 void ForEachTupleImpl(Tuple &&tuple, F &&f, std::index_sequence<Index...> /* unused */) in ForEachTupleImpl() argument
26 …[[maybe_unused]] auto unused = {true, (f(std::get<Index>(std::forward<Tuple>(tuple))), void(), tru… in ForEachTupleImpl()
30 void ForEachTuple(Tuple &&tuple, F &&f) in ForEachTuple() argument
35 ForEachTupleImpl(std::forward<Tuple>(tuple), std::forward<F>(f), sequence); in ForEachTuple()
/ark/runtime_core/runtime/bridge/arch/aarch64/
Dcompiled_code_to_interpreter_bridge_aarch64.S162 bne 1f
183 bls 1f
185 cbz w6, 2f
189 b 3f
191 cbz w7, 2f
195 b 3f
218 bne 1f
221 b 3f
226 bls 2f
231 b 3f
Dinterpreter_to_compiled_code_bridge_aarch64.S45 bls 1f
50 bge 2f
59 bge 3f
69 bge 2f
219 bne 1f
224 b 2f
277 beq 1f // tag already in x1
362 cbnz x0, 1f
380 bne 1f
385 b 2f
[all …]
/ark/runtime_core/tests/cts-generator/
Dtest-runner.rb81 opts.on('-e', '--exclude-tag TAG', Array, 'Exclude tags for tests') do |f|
82 options[:exclude_tag] |= [*f]
84 opts.on('-o', '--panda-options OPTION', Array, 'Panda options') do |f|
85 options[:panda_options] |= [*f]
87 opts.on('-i', '--include-tag TAG', Array, 'Include tags for tests') do |f|
88 options[:include_tag] |= [*f]
90 opts.on('-b', '--bug_id BUGID', Array, 'Include tests with specified bug ids') do |f|
91 options[:bug_ids] |= [*f]
/ark/ts2abc/testTs/
Dconfig.py36 ARK_DIR = f"{CODE_ROOT}/out/hi3516dv300/clang_x64/ark/ark"
37 WORK_PATH = f'{CODE_ROOT}/ark/ts2abc'
48 with open(IMPORT_FILE_PATH,'r') as f:
49 content = f.read()
/ark/runtime_core/libpandafile/tests/
Dpanda_cache_test.cpp143 Method *f = cache_->GetMethodFromCache(id); in GetElement() local
144 if (f == nullptr) { in GetElement()
147 return reinterpret_cast<ElementMock *>(f); in GetElement()
152 auto *f = reinterpret_cast<Method *>(m); in SetElement() local
153 cache_->SetMethodCache(id, f); in SetElement()
166 Field *f = cache_->GetFieldFromCache(new_id); in GetElement() local
167 if (f == nullptr) { in GetElement()
170 return reinterpret_cast<ElementMock *>(f); in GetElement()
177 auto *f = reinterpret_cast<Field *>(m); in SetElement() local
178 cache_->SetFieldCache(new_id, f); in SetElement()
/ark/runtime_core/libpandabase/
Dmacros.h230 extern "C" void AnnotateHappensBefore(const char* f, int l, void* addr);
231 extern "C" void AnnotateHappensAfter(const char* f, int l, void* addr);
232 extern "C" void AnnotateIgnoreWritesBegin(const char* f, int l);
233 extern "C" void AnnotateIgnoreWritesEnd(const char* f, int l);
257 extern "C" void AnnotateHappensBefore(const char* f, int l, void* addr);
258 extern "C" void AnnotateHappensAfter(const char* f, int l, void* addr);
259 extern "C" void AnnotateIgnoreWritesBegin(const char* f, int l);
260 extern "C" void AnnotateIgnoreWritesEnd(const char* f, int l);

12345