| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_function.h | 29 class JSFunctionBase : public JSObject { 31 CAST_CHECK(JSFunctionBase, IsJSFunctionBase); 39 static bool SetFunctionName(JSThread *thread, const JSHandle<JSFunctionBase> &func, 41 …static JSHandle<JSTaggedValue> GetFunctionName(JSThread *thread, const JSHandle<JSFunctionBase> &f… 76 static_assert((JSFunctionBase::SIZE % static_cast<uint8_t>(MemAlignment::MEM_ALIGN_OBJECT)) == 0); 77 static_assert(JSFunctionBase::METHOD_OFFSET == JSProxy::METHOD_OFFSET); 79 class JSFunction : public JSFunctionBase { 241 static constexpr size_t PROTO_OR_DYNCLASS_OFFSET = JSFunctionBase::SIZE; 249 …DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSFunctionBase, PROTO_OR_DYNCLASS_OFFSET, WORK_NODE_POINTER_OFFSET) 270 class JSBoundFunction : public JSFunctionBase { [all …]
|
| D | js_function.cpp | 590 JSHandle<JSTaggedValue> JSFunctionBase::GetFunctionName(JSThread *thread, const JSHandle<JSFunction… in GetFunctionName() 597 bool JSFunctionBase::SetFunctionName(JSThread *thread, const JSHandle<JSFunctionBase> &func, in SetFunctionName()
|
| D | js_object.cpp | 82 value = JSFunctionBase::ConstCast(obj)->GetMethod(); in GetCallTarget() 2263 JSFunctionBase *func = JSFunctionBase::Cast(objConstructor.GetTaggedObject()); in ExtractConstructorAndRecordName()
|
| /arkcompiler/ets_runtime/ecmascript/tests/ |
| D | js_function_test.cpp | 166 …JSFunction::SetFunctionName(thread, JSHandle<JSFunctionBase>(jsFunction), JSHandle<JSTaggedValue>(… in HWTEST_F_L0() 168 JSFunctionBase::GetFunctionName(thread, JSHandle<JSFunctionBase>(jsFunction)); in HWTEST_F_L0()
|
| D | dump_test.cpp | 458 CHECK_DUMP_FIELDS(JSObject::SIZE, JSFunctionBase::SIZE, 2U); in HWTEST_F_L0() 463 CHECK_DUMP_FIELDS(JSFunctionBase::SIZE, JSFunction::SIZE, 4U); in HWTEST_F_L0() 575 CHECK_DUMP_FIELDS(JSFunctionBase::SIZE, JSBoundFunction::SIZE, 3U); in HWTEST_F_L0()
|
| /arkcompiler/ets_runtime/ecmascript/jspandafile/tests/ |
| D | panda_file_translator_test.cpp | 91 …JSHandle<JSTaggedValue> funcName1 = JSFunction::GetFunctionName(thread, JSHandle<JSFunctionBase>(m… in HWTEST_F_L0() 97 …JSHandle<JSTaggedValue> funcName2 = JSFunction::GetFunctionName(thread, JSHandle<JSFunctionBase>(m… in HWTEST_F_L0()
|
| D | js_pandafile_manager_test.cpp | 271 …JSHandle<JSTaggedValue> funcName = JSFunction::GetFunctionName(thread, JSHandle<JSFunctionBase>(ma… in HWTEST_F_L0()
|
| /arkcompiler/ets_runtime/ecmascript/patch/ |
| D | patch_loader.cpp | 217 JSFunctionBase *func = JSFunctionBase::Cast(value.GetTaggedObject()); in GetPatchMethod() 304 JSFunctionBase *func = JSFunctionBase::Cast(literalItem.GetTaggedObject()); in FindAndReplaceSameMethod()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/trampoline/x64/ |
| D | optimized_fast_call.cpp | 118 __ Mov(Operand(jsFuncReg, JSFunctionBase::METHOD_OFFSET), method); // get method in OptimizedFastCallAndPushUndefined() 264 __ Mov(Operand(jsFuncReg, JSFunctionBase::METHOD_OFFSET), method); // get method in JSFastCallWithArgV() 379 __ Mov(Operand(jsFuncReg, JSFunctionBase::METHOD_OFFSET), method); // get method in JSFastCallWithArgVAndPushUndefined()
|
| D | optimized_call.cpp | 125 __ Mov(Operand(jsFuncReg, JSFunctionBase::METHOD_OFFSET), method); // get method in OptimizedCallAndPushUndefined() 354 __ Mov(Operand(jsFuncReg, JSFunctionBase::METHOD_OFFSET), method); // get method in GenJSCall() 396 __ Mov(Operand(jsFuncReg, JSFunctionBase::METHOD_OFFSET), method); // get method in GenJSCall() 655 __ Mov(Operand(rsi, JSFunctionBase::METHOD_OFFSET), method); // get method in JSBoundFunctionCallInternal() 843 __ Movq(Operand(jsfunc, JSFunctionBase::METHOD_OFFSET), tmp); in PushArgsWithArgV() 1049 __ Mov(Operand(jsFuncReg, JSFunctionBase::METHOD_OFFSET), method); // get method in CallOptimized() 1102 __ Movq(Operand(callTargetRegister, JSFunctionBase::METHOD_OFFSET), methodRegister); in DeoptEnterAsmInterp()
|
| D | asm_interpreter_call.cpp | 94 __ Movq(Operand(callTargetRegister, JSFunctionBase::METHOD_OFFSET), methodRegister); in GeneratorReEnterAsmInterpDispatch() 1049 __ Movq(Operand(temp, JSFunctionBase::METHOD_OFFSET), temp); in ResumeRspAndDispatch()
|
| /arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
| D | builtins_function_test.cpp | 171 JSFunction::SetFunctionName(thread, JSHandle<JSFunctionBase>(target), in HWTEST_F_L0() 217 JSFunction::SetFunctionName(thread, JSHandle<JSFunctionBase>(target), in HWTEST_F_L0() 438 JSHandle<JSFunctionBase> baseFunction(func); in HWTEST_F_L0()
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_function.cpp | 272 status = JSFunction::SetFunctionName(thread, JSHandle<JSFunctionBase>(boundFunction), in FunctionPrototypeBind() 275 status = JSFunction::SetFunctionName(thread, JSHandle<JSFunctionBase>(boundFunction), in FunctionPrototypeBind()
|
| D | builtins.cpp | 604 …JSFunction::SetFunctionName(thread_, JSHandle<JSFunctionBase>(funcFuncPrototype), emptyString, und… in InitializeFunction() 1053 JSFunction::SetFunctionName(thread_, JSHandle<JSFunctionBase>(ctor), nameString, in InitializeExoticConstructor() 1328 JSFunction::SetFunctionName(thread_, JSHandle<JSFunctionBase>(ctor), nameString, in InitializeCtor() 2658 JSFunction::SetFunctionName(thread_, JSHandle<JSFunctionBase>(ctor), nameString, in NewBuiltinCjsCtor() 2674 JSHandle<JSFunctionBase> baseFunction(function); in NewFunction() 2734 JSHandle<JSFunctionBase> baseFunction(function); in SetFunctionAtSymbol() 2765 JSHandle<JSFunctionBase> baseFunction(function); in SetAndReturnFunctionAtSymbol() 2808 JSFunction::SetFunctionName(thread_, JSHandle<JSFunctionBase>(function), key, prefix); in CreateGetter() 2825 JSFunction::SetFunctionName(thread_, JSHandle<JSFunctionBase>(function), key, prefix); in CreateSetter() 2883 JSHandle<JSFunctionBase> baseFunction(function); in SetFuncToObjAndGlobal() [all …]
|
| D | builtins_ark_tools.cpp | 742 …e<JSTaggedValue> funcName = JSFunction::GetFunctionName(thread, JSHandle<JSFunctionBase>(funcObj)); in FunctionGetInferredName()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/ |
| D | interpreter_stub.cpp | 508 GateRef method = Load(VariableType::JS_ANY(), func, IntPtr(JSFunctionBase::METHOD_OFFSET)); in DECLARE_ASM_HANDLER() 2504 IntPtr(JSFunctionBase::METHOD_OFFSET)); in DECLARE_ASM_HANDLER() 2532 … GateRef method = Load(VariableType::JS_ANY(), function, IntPtr(JSFunctionBase::METHOD_OFFSET)); in DECLARE_ASM_HANDLER() 2575 IntPtr(JSFunctionBase::METHOD_OFFSET)); in DECLARE_ASM_HANDLER() 2604 … GateRef method = Load(VariableType::JS_ANY(), function, IntPtr(JSFunctionBase::METHOD_OFFSET)); in DECLARE_ASM_HANDLER() 2658 IntPtr(JSFunctionBase::METHOD_OFFSET)); in DECLARE_ASM_HANDLER() 2686 … GateRef method = Load(VariableType::JS_ANY(), function, IntPtr(JSFunctionBase::METHOD_OFFSET)); in DECLARE_ASM_HANDLER() 2738 IntPtr(JSFunctionBase::METHOD_OFFSET)); in DECLARE_ASM_HANDLER() 2766 … GateRef method = Load(VariableType::JS_ANY(), function, IntPtr(JSFunctionBase::METHOD_OFFSET)); in DECLARE_ASM_HANDLER() 3059 IntPtr(JSFunctionBase::METHOD_OFFSET)); in DECLARE_ASM_HANDLER() [all …]
|
| D | stub_builder-inl.h | 321 … GateRef method = Load(VariableType::JS_ANY(), function, IntPtr(JSFunctionBase::METHOD_OFFSET)); in SaveHotnessCounterIfNeeded() 2582 methodOffset = IntPtr(JSFunctionBase::METHOD_OFFSET); in GetMethodFromJSFunction() 2629 GateRef offset = IntPtr(JSFunctionBase::METHOD_OFFSET); in SetMethodToFunction() 2635 GateRef offset = IntPtr(JSFunctionBase::LENGTH_OFFSET); in SetLengthToFunction() 3012 GateRef method = Load(VariableType::JS_ANY(), jsFunc, IntPtr(JSFunctionBase::METHOD_OFFSET)); in LoadPfHeaderFromConstPool() 3025 GateRef method = Load(VariableType::JS_ANY(), jsFunc, IntPtr(JSFunctionBase::METHOD_OFFSET)); in LoadHCIndexInfosFromConstPool()
|
| /arkcompiler/ets_runtime/ecmascript/stubs/ |
| D | runtime_stubs-inl.h | 1103 JSFunctionBase::SetFunctionName(thread, JSHandle<JSFunctionBase>::Cast(value), propKey, in RuntimeStOwnByValueWithNameSet() 1144 JSFunctionBase::SetFunctionName(thread, JSHandle<JSFunctionBase>::Cast(valueHandle), propKey, in RuntimeStOwnByNameWithNameSet() 2303 JSFunctionBase::SetFunctionName(thread, JSHandle<JSFunctionBase>::Cast(getter), propKey, in RuntimeDefineGetterSetterByValue() 2312 JSFunctionBase::SetFunctionName(thread, JSHandle<JSFunctionBase>::Cast(setter), propKey, in RuntimeDefineGetterSetterByValue()
|
| /arkcompiler/ets_runtime/ecmascript/containers/ |
| D | containers_private.cpp | 180 JSFunction::SetFunctionName(thread, JSHandle<JSFunctionBase>(ctor), nameString, in NewContainerConstructor() 221 JSHandle<JSFunctionBase> baseFunction(function); in NewFunction() 235 JSFunction::SetFunctionName(thread, JSHandle<JSFunctionBase>(function), funcName, prefix); in CreateGetter() 257 JSHandle<JSFunctionBase> baseFunction(function); in SetFunctionAtSymbol()
|
| /arkcompiler/ets_runtime/ecmascript/napi/ |
| D | jsnapi.cpp | 126 using ecmascript::JSFunctionBase;
|
| D | jsnapi_expo.cpp | 123 using ecmascript::JSFunctionBase; 2327 JSHandle<JSFunctionBase> func(thread, JSNApiHelper::ToJSTaggedValue(this)); in GetName() 2328 JSHandle<JSTaggedValue> name = JSFunctionBase::GetFunctionName(thread, func); in GetName() 2337 JSHandle<JSFunctionBase> func(thread, JSNApiHelper::ToJSTaggedValue(this)); in GetSourceCode() 2371 JSHandle<JSFunctionBase> func(thread, JSNApiHelper::ToJSTaggedValue(this)); in IsNative()
|
| /arkcompiler/ets_runtime/ecmascript/dfx/hprof/ |
| D | heap_snapshot.cpp | 1076 JSFunctionBase *func = JSFunctionBase::Cast(obj); in ParseFunctionName()
|
| /arkcompiler/ets_runtime/ecmascript/mem/ |
| D | object_xray.h | 157 auto jsFunctionBase = JSFunctionBase::Cast(object); in VisitObjectBody()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/trampoline/aarch64/ |
| D | asm_interpreter_call.cpp | 750 __ Ldr(temp, MemoryOperand(temp, JSFunctionBase::METHOD_OFFSET)); in ResumeRspAndDispatch() 1016 __ Ldr(method, MemoryOperand(callTarget, JSFunctionBase::METHOD_OFFSET)); in GeneratorReEnterAsmInterpDispatch()
|
| /arkcompiler/ets_runtime/ecmascript/dfx/stackinfo/ |
| D | js_stackinfo.cpp | 492 value += JSFunctionBase::METHOD_OFFSET; in ArkCheckAndGetMethod()
|