Home
last modified time | relevance | path

Searched full:target (Results 1 – 25 of 415) sorted by relevance

12345678910>>...17

/arkcompiler/ets_runtime/test/resource/js_runtime/
Dohos_test.xml16 <target name="BaseTest">
20 </target>
21 <target name="BuiltinsInternational_001_Test">
25 </target>
26 <target name="BuiltinsInternational_002_Test">
30 </target>
31 <target name="BuiltinsNaturalTest">
35 </target>
36 <target name="ContainersDequeForEachFuzzTest">
40 </target>
[all …]
/arkcompiler/runtime_core/compiler/optimizer/code_generator/
DBUILD.gn27 "target/asm_printer.cpp",
28 "target/target.cpp",
34 "target/x86/callconv.cpp",
35 "target/x86/encode.cpp",
36 "target/x86/regfile.cpp",
38 include_dirs = [ "$ark_root/compiler/optimizer/code_generator/target/x86" ]
43 "target/aarch64/callconv.cpp",
44 "target/aarch64/encode.cpp",
45 "target/aarch64/regfile.cpp",
53 [ "$ark_root/compiler/optimizer/code_generator/target/aarch64" ]
[all …]
DCMakeLists.txt16 include(${PANDA_ROOT}/compiler/cmake/target.cmake)
26 list(APPEND ENCODE_SOURCES target/${dir}/encode.cpp)
27 list(APPEND ENCODE_SOURCES target/${dir}/callconv.cpp)
28 list(APPEND ENCODE_SOURCES target/${dir}/regfile.cpp)
33 target/target.cpp
34 target/asm_printer.cpp
38 message(STATUS "Encoder: Build amd64 target")
42 message(STATUS "Encoder: Build x86 target")
46 message(STATUS "Encoder: Build aarch64 target")
53 message(STATUS "Encoder: Build aarch32 target")
[all …]
Dtarget_info.h225 using Target = std::conditional_t< member
238 return Target::RETURN_REG; in GetReturnRegId()
242 return Target::FP_RETURN_REG; in GetReturnFpRegId()
261 return Reg(Target::SP_REG, ArchTraits<arch>::IS_64_BITS ? INT64_TYPE : INT32_TYPE); in GetStackReg()
265 return Reg(Target::FP_REG, ArchTraits<arch>::IS_64_BITS ? INT64_TYPE : INT32_TYPE); in GetFrameReg()
269 return Reg(Target::LR_REG, ArchTraits<arch>::IS_64_BITS ? INT64_TYPE : INT32_TYPE); in GetLinkReg()
273 return Reg(Target::ZERO_REG, ArchTraits<arch>::IS_64_BITS ? INT64_TYPE : INT32_TYPE); in GetZeroReg()
277 return Target::LR_REG != INVALID_REG_ID; in SupportLinkReg()
281 return Target::ZERO_REG != INVALID_REG_ID; in SupportZeroReg()
285 return Target::CALL_PARAMS_REGS.size(); in GetParamRegsCount()
[all …]
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_reflect.cpp22 // ecma 26.1.1 Reflect.apply (target, thisArgument, argumentsList)
29 // 1. If IsCallable(target) is false, throw a TypeError exception. in ReflectApply()
30 JSHandle<JSTaggedValue> target = GetCallArg(argv, 0); in ReflectApply() local
31 if (!target->IsCallable()) { in ReflectApply()
32 …THROW_TYPE_ERROR_AND_RETURN(thread, "Reflect.apply target is not callable", JSTaggedValue::Excepti… in ReflectApply()
42 // 4. Return ? Call(target, thisArgument, args). in ReflectApply()
46 EcmaInterpreter::NewRuntimeCallInfo(thread, target, thisArgument, undefined, argsLength); in ReflectApply()
52 // ecma 26.1.2 Reflect.construct (target, argumentsList [ , newTarget])
59 // 1. If IsConstructor(target) is false, throw a TypeError exception. in ReflectConstruct()
60 JSHandle<JSTaggedValue> target = GetCallArg(argv, 0); in ReflectConstruct() local
[all …]
Dbuiltins_weak_ref.cpp33 … THROW_TYPE_ERROR_AND_RETURN(thread, "new target can't be undefined", JSTaggedValue::Exception()); in WeakRefConstructor()
35 // 2. If Type(target) is not Object, throw a TypeError exception. in WeakRefConstructor()
36 JSHandle<JSTaggedValue> target = GetCallArg(argv, 0); in WeakRefConstructor() local
37 if (!target->IsECMAObject()) { in WeakRefConstructor()
38 THROW_TYPE_ERROR_AND_RETURN(thread, "target is not object", JSTaggedValue::Exception()); in WeakRefConstructor()
44 // 4. Perform ! AddToKeptObjects(target). in WeakRefConstructor()
45 thread->GetEcmaVM()->GetHeap()->AddToKeptObjects(target); in WeakRefConstructor()
46 // 5. Set weakRef.[[WeakRefTarget]] to target. in WeakRefConstructor()
49 weakRef->SetToWeak(thread, target.GetTaggedValue()); in WeakRefConstructor()
/arkcompiler/ets_frontend/es2panda/typescript/core/
DtypeRelation.cpp22 bool Checker::IsAllTypesAssignableTo(Type *source, Type *target) in IsAllTypesAssignableTo() argument
28 [this, target](auto *it) { return IsAllTypesAssignableTo(it, target); }); in IsAllTypesAssignableTo()
31 return relation_->IsAssignableTo(source, target); in IsAllTypesAssignableTo()
34 bool Checker::IsTypeIdenticalTo(Type *source, Type *target) in IsTypeIdenticalTo() argument
36 return relation_->IsIdenticalTo(source, target); in IsTypeIdenticalTo()
39 bool Checker::IsTypeIdenticalTo(Type *source, Type *target, const std::string &errMsg, in IsTypeIdenticalTo() argument
42 if (!IsTypeIdenticalTo(source, target)) { in IsTypeIdenticalTo()
49 bool Checker::IsTypeIdenticalTo(Type *source, Type *target, std::initializer_list<TypeErrorMessageE… in IsTypeIdenticalTo() argument
52 if (!IsTypeIdenticalTo(source, target)) { in IsTypeIdenticalTo()
59 bool Checker::IsTypeAssignableTo(Type *source, Type *target) in IsTypeAssignableTo() argument
[all …]
/arkcompiler/runtime_core/plugins/ecmascript/tests/
DCMakeLists.txt30 get_filename_component(target "${ARG_FILE}" NAME)
73 TARGET ${target}-verifier
80 add_dependencies(${suite} ${target}-verifier)
85 TARGET ${target}-stw
96 add_dependencies(${suite} ${target}-stw)
101 TARGET ${target}-gengc
112 add_dependencies(${suite} ${target}-gengc)
118 TARGET ${target}-g1gc
129 add_dependencies(${suite} ${target}-g1gc)
136 TARGET ${target}-enforce-jit-compiler
[all …]
/arkcompiler/ets_frontend/es2panda/typescript/types/
DtypeRelation.cpp51 RelationResult TypeRelation::CacheLookup(const Type *source, const Type *target, const RelationHold… in CacheLookup() argument
58 RelationKey relationKey {source->Id(), target->Id()}; in CacheLookup()
75 bool TypeRelation::IsIdenticalTo(Type *source, Type *target) in IsIdenticalTo() argument
77 if (source == target) { in IsIdenticalTo()
82 result_ = CacheLookup(source, target, checker_->IdenticalResults(), RelationType::IDENTICAL); in IsIdenticalTo()
85 checker_->ResolveStructuredTypeMembers(target); in IsIdenticalTo()
87 target->Identical(this, source); in IsIdenticalTo()
88 …checker_->IdenticalResults().cached.insert({{source->Id(), target->Id()}, {result_, RelationType::… in IsIdenticalTo()
94 bool TypeRelation::IsIdenticalTo(Signature *source, Signature *target) in IsIdenticalTo() argument
96 if (source == target) { in IsIdenticalTo()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/assembler/x64/
Dassembler_x64.cpp527 void AssemblerX64::Callq(Label *target) in Callq() argument
529 if (target->IsBound()) { in Callq()
530 int32_t offset = static_cast<int32_t>(target->GetPos() - GetCurrentPosition()); in Callq()
537 if (target->IsLinked()) { in Callq()
538 emitPos = static_cast<int32_t>(target->GetLinkedPos()); in Callq()
541 target->LinkTo(pos + 1); in Callq()
553 void AssemblerX64::Jmp(Label *target, Distance distance) in Jmp() argument
555 if (target->IsBound()) { in Jmp()
556 int32_t offset = static_cast<int32_t>(target->GetPos() - GetCurrentPosition()); in Jmp()
564 if (target->IsLinkedNear()) { in Jmp()
[all …]
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_reflect_test.cpp97 // Reflect.apply (target, thisArgument, argumentsList)
104 // target in HWTEST_F_L0()
105 …JSHandle<JSFunction> target = factory->NewJSFunction(env, reinterpret_cast<void *>(TestReflectAppl… in HWTEST_F_L0() local
126 ecmaRuntimeCallInfo->SetCallArg(0, target.GetTaggedValue()); in HWTEST_F_L0()
141 // Reflect.construct (target, argumentsList [ , newTarget])
148 // target in HWTEST_F_L0()
149 JSHandle<JSFunction> target = JSHandle<JSFunction>::Cast(env->GetStringFunction()); in HWTEST_F_L0() local
159 ecmaRuntimeCallInfo->SetCallArg(0, target.GetTaggedValue()); in HWTEST_F_L0()
173 // Reflect.defineProperty (target, propertyKey, attributes)
178 // target in HWTEST_F_L0()
[all …]
Dbuiltins_finalization_registry_test.cpp117 // finalizationRegistry.Register(target, heldValue)
127 …JSHandle<JSTaggedValue> target(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objectFunc),… in HWTEST_F_L0() local
130 JSObject::SetProperty(thread, target, key, value); in HWTEST_F_L0()
135 ecmaRuntimeCallInfo->SetCallArg(0, target.GetTaggedValue()); in HWTEST_F_L0()
143 // finalizationRegistry.Register(target, heldValue [ , unregisterToken ])
153 …JSHandle<JSTaggedValue> target(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objectFunc),… in HWTEST_F_L0() local
156 JSObject::SetProperty(thread, target, key, value); in HWTEST_F_L0()
161 ecmaRuntimeCallInfo->SetCallArg(0, target.GetTaggedValue()); in HWTEST_F_L0()
163 ecmaRuntimeCallInfo->SetCallArg(2, target.GetTaggedValue()); in HWTEST_F_L0()
170 // finalizationRegistry.Register(target, heldValue [ , unregisterToken ])
[all …]
Dbuiltins_weak_ref_test.cpp69 JSTaggedValue CreateWeakRefConstructor(JSThread *thread, JSTaggedValue target) in CreateWeakRefConstructor() argument
78 ecmaRuntimeCallInfo->SetCallArg(0, target); in CreateWeakRefConstructor()
86 // new WeakRef(target)
93 …JSHandle<JSObject> target(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objectFunc), obje… in HWTEST_F_L0() local
101 ecmaRuntimeCallInfo->SetCallArg(0, target.GetTaggedValue()); in HWTEST_F_L0()
116 …JSHandle<JSObject> target(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objectFunc), obje… in HWTEST_F_L0() local
117 JSTaggedValue result = CreateWeakRefConstructor(thread, target.GetTaggedValue()); in HWTEST_F_L0()
126 ASSERT_EQ(result1, target.GetTaggedValue()); in HWTEST_F_L0()
138 …JSHandle<JSObject> target(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objectFunc), obje… in HWTEST_F_L0() local
139 JSObject::SetProperty(thread, target, formatStyle, styleKey); in HWTEST_F_L0()
[all …]
/arkcompiler/runtime_core/irtoc/backend/compiler/
Dcodegen_boundary.cpp95 auto target = Target(GetGraph()->GetArch()); in CreateFrameInfo() local
99 …(CFrameLayout::HEADER_SIZE - (target.SupportLinkReg() ? 0 : 1) + GetCalleeRegsCount(target.GetArch… in CreateFrameInfo()
100 GetCalleeRegsCount(target.GetArch(), true) + GetCallerRegsCount(target.GetArch(), false) + in CreateFrameInfo()
101 GetCallerRegsCount(target.GetArch(), true) + spills_count) * in CreateFrameInfo()
102 target.WordSize(); in CreateFrameInfo()
103 if (target.SupportLinkReg()) { in CreateFrameInfo()
104 padding = RoundUp(frame_size, target.GetSpAlignment()) - frame_size; in CreateFrameInfo()
106 if ((frame_size % target.GetSpAlignment()) == 0) { in CreateFrameInfo()
107 padding = target.GetSpAlignment() - target.WordSize(); in CreateFrameInfo()
110 CHECK_EQ(padding % target.WordSize(), 0U); in CreateFrameInfo()
[all …]
/arkcompiler/runtime_core/compiler/cmake/
Dbenchmark_coverage.cmake32 add_custom_command(TARGET benchmark_coverage_arm64_aot POST_BUILD
34 …coverage.sh --binary-dir=${PANDA_BINARY_ROOT} --root-dir=${PANDA_ROOT} --target-arch=arm64 --paoc-…
37 add_custom_command(TARGET benchmark_coverage_arm64_jit POST_BUILD
39 …coverage.sh --binary-dir=${PANDA_BINARY_ROOT} --root-dir=${PANDA_ROOT} --target-arch=arm64 --paoc-…
42 add_custom_command(TARGET benchmark_coverage_arm64_osr POST_BUILD
44 …coverage.sh --binary-dir=${PANDA_BINARY_ROOT} --root-dir=${PANDA_ROOT} --target-arch=arm64 --paoc-…
47 add_custom_command(TARGET benchmark_coverage_x86_64_jit POST_BUILD
49 …coverage.sh --binary-dir=${PANDA_BINARY_ROOT} --root-dir=${PANDA_ROOT} --target-arch=x86_64 --paoc…
52 add_custom_command(TARGET benchmark_coverage_x86_64_aot POST_BUILD
54 …coverage.sh --binary-dir=${PANDA_BINARY_ROOT} --root-dir=${PANDA_ROOT} --target-arch=x86_64 --paoc…
[all …]
/arkcompiler/runtime_core/disassembler/
DCMakeLists.txt61 panda_add_to_clang_tidy(TARGET ark_disasm CHECKS
68 panda_add_sanitizers(TARGET arkdisassembler SANITIZERS ${PANDA_SANITIZERS_LIST})
69 panda_add_sanitizers(TARGET ark_disasm SANITIZERS ${PANDA_SANITIZERS_LIST})
127 set(singleValueArgs TARGET FILE_SRC FILE_DST)
133 message(FATAL_ERROR "TARGET argument is missing")
155 compile_pre_build(TARGET disasm_binaries-labels1
158 compile_pre_build(TARGET disasm_binaries-labels2
161 compile_pre_build(TARGET disasm_binaries-exceptions
170 compile_pre_build(TARGET disasm_binaries-record_with_fields
173 compile_pre_build(TARGET disasm_binaries-record_in_record
[all …]
/arkcompiler/ets_runtime/docs/
Denvironment-setup-and-compilation.md21 …./build.sh --product-name rk3568 --build-target ark_js_host_linux_tools_packages --build-target ar…
26 ./build.sh --product-name ohos_arm64 --build-target ark_js_vm --build-target ld-musl-aarch64.so.1
31 ./build.sh --product-name rk3568 --build-target ark_js_runtime --build-target ld-musl-arm.so.1
37 ./build.sh --product-name hispark_taurus_standard --build-target ark_ts2abc_build
Denvironment-setup-and-compilation-zh.md25 …h --product-name hispark_taurus_standard --build-target ark_js_host_linux_tools_packages --build-t…
30 …oduct-name hispark_taurus_standard --gn-args use_musl=true --target-cpu arm64 --build-target ark_j…
35 ./build.sh --product-name hispark_taurus_standard --build-target ark_js_runtime
41 ./build.sh --product-name hispark_taurus_standard --build-target ark_ts2abc_build
/arkcompiler/ets_runtime/ecmascript/
Djs_weak_ref.h34 // 1. Let target be weakRef.[[WeakRefTarget]]. in WeakRefDeref()
35 // 2. If target is not empty, then in WeakRefDeref()
36 // a. Perform ! AddToKeptObjects(target). in WeakRefDeref()
37 // b. Return target. in WeakRefDeref()
39 JSHandle<JSTaggedValue> target(thread, weakRef->GetFromWeak()); in WeakRefDeref()
40 if (!target->IsUndefined()) { in WeakRefDeref()
41 thread->GetEcmaVM()->GetHeap()->AddToKeptObjects(target); in WeakRefDeref()
43 return target.GetTaggedValue(); in WeakRefDeref()
Djs_proxy.cpp26 // ES6 9.5.15 ProxyCreate(target, handler)
27 JSHandle<JSProxy> JSProxy::ProxyCreate(JSThread *thread, const JSHandle<JSTaggedValue> &target, in ProxyCreate() argument
30 // 1. If Type(target) is not Object, throw a TypeError exception. in ProxyCreate()
31 if (!target->IsECMAObject()) { in ProxyCreate()
32 THROW_TYPE_ERROR_AND_RETURN(thread, "ProxyCreate: target is not Object", in ProxyCreate()
42 // 6. If IsCallable(target) is true, then P.[[Call]] as specified in 9.5.12. in ProxyCreate()
44 // 8. Set the [[ProxyTarget]] internal slot of P to target. in ProxyCreate()
46 return thread->GetEcmaVM()->GetFactory()->NewJSProxy(target, handler); in ProxyCreate()
61 // 4. Let target be the value of the [[ProxyTarget]] internal slot of O. in GetPrototype()
69 // 7. If trap is undefined, then Return target.[[GetPrototypeOf]](). in GetPrototype()
[all …]
/arkcompiler/runtime_core/compiler/tests/amd64/
Dcallconv64_test.cpp21 #include "target/amd64/target.h"
93 Target target(Arch::X86_64); in TEST_F() local
99 EXPECT_EQ(std::get<Reg>(ret).GetId(), target.GetParamRegId(0)); in TEST_F()
100 EXPECT_EQ(std::get<Reg>(ret), Reg(target.GetParamRegId(0), INT8_TYPE)); in TEST_F()
105 EXPECT_EQ(std::get<Reg>(ret).GetId(), target.GetParamRegId(i)); in TEST_F()
106 EXPECT_EQ(std::get<Reg>(ret), Reg(target.GetParamRegId(i), INT8_TYPE)); in TEST_F()
115 EXPECT_EQ(std::get<Reg>(ret).GetId(), target.GetParamRegId(0)); in TEST_F()
116 EXPECT_EQ(std::get<Reg>(ret), Reg(target.GetParamRegId(0), INT32_TYPE)); in TEST_F()
121 EXPECT_EQ(std::get<Reg>(ret).GetId(), target.GetParamRegId(i)); in TEST_F()
122 EXPECT_EQ(std::get<Reg>(ret), Reg(target.GetParamRegId(i), INT32_TYPE)); in TEST_F()
[all …]
/arkcompiler/runtime_core/cmake/
DTemplateBasedGen.cmake17 # Adds targets for every template. Also adds a target for the whole function invocation
63 add_custom_target(${GEN_ARG_TARGET_NAME}) # Umbrella target for all generated files
68 string(REPLACE "\." "_" TARGET ${NAME})
69 string(REPLACE "/" "_" TARGET ${TARGET})
70 set(TARGET ${PROJECT_NAME}_${TARGET}) variable
80 add_custom_target(${TARGET} DEPENDS ${OUTPUT_FILE})
81 add_dependencies(${GEN_ARG_TARGET_NAME} ${TARGET})
86 # Adds targets for every template. Also adds a target for the whole function invocation
152 # Create an options header using a YAML file for the target
155 # TARGET -- target
[all …]
DPandaAssembly.cmake18 # add_panda_assembly(TARGET <name> SOURCE <source> INDIR <input directory> OUTDIR <output directo…
20 # Adds a panda assembly target called <name> to be build from <source> file
25 set(singleValues TARGET SOURCE INDIR OUTDIR TARGETNAME)
33 message(FATAL_ERROR "Mandatory TARGET argument is not defined.")
58 if (TARGET ARG_TARGET)
59 message(FATAL_ERROR "Target ${ARG_TARGET} is already defined.")
93 # TARGET <target>
110 # Adds a target <target> which assembles the assembly file <source>
120 # Full path to directory with artifacts: ${CMAKE_CURRENT_BINARY_DIR}/<subdir>/<target>
133 # Creates additional independent target `${TARGET}-stats`.
[all …]
/arkcompiler/runtime_core/verification/
DVerification.cmake56 set(singleValues TARGET)
65 message(FATAL_ERROR "Mandatory TARGET argument is not defined.")
79 set(singleValues TARGET)
88 message(FATAL_ERROR "Mandatory TARGET argument is not defined.")
99 set(singleValues TARGET)
108 message(FATAL_ERROR "Mandatory TARGET argument is not defined.")
111 add_verification_sources(TARGET ${ARG_TARGET})
112 add_verification_includes(TARGET ${ARG_TARGET})
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_finalization_registry_test.cpp90 …* @tc.desc: Register the target object to the JSFinalizationRegistry object, and call the callback…
91 …* target object is garbage collected. And a unregistration token, which is passed to the…
105 …JSHandle<JSTaggedValue> target(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objectFunc),… in HWTEST_F_L0() local
108 JSObject::SetProperty(thread, target, key, value); in HWTEST_F_L0()
116 cellRecord->SetToWeakRefTarget(thread, target.GetTaggedValue()); in HWTEST_F_L0()
122 JSFinalizationRegistry::Register(thread, target, heldValue, unregisterToken, finaRegObj); in HWTEST_F_L0()
139 …JSHandle<JSTaggedValue> target(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objectFunc),… in HWTEST_F_L0() local
142 JSObject::SetProperty(thread, target, key, value); in HWTEST_F_L0()
144 JSHandle<JSTaggedValue> unregisterToken = target; in HWTEST_F_L0()
150 cellRecord->SetToWeakRefTarget(thread, target.GetTaggedValue()); in HWTEST_F_L0()
[all …]

12345678910>>...17