Home
last modified time | relevance | path

Searched refs:JSFunctionBase (Results 1 – 25 of 29) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/
Djs_function.h29 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 …]
Djs_function.cpp590 JSHandle<JSTaggedValue> JSFunctionBase::GetFunctionName(JSThread *thread, const JSHandle<JSFunction… in GetFunctionName()
597 bool JSFunctionBase::SetFunctionName(JSThread *thread, const JSHandle<JSFunctionBase> &func, in SetFunctionName()
Djs_object.cpp82 value = JSFunctionBase::ConstCast(obj)->GetMethod(); in GetCallTarget()
2263 JSFunctionBase *func = JSFunctionBase::Cast(objConstructor.GetTaggedObject()); in ExtractConstructorAndRecordName()
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_function_test.cpp166 …JSFunction::SetFunctionName(thread, JSHandle<JSFunctionBase>(jsFunction), JSHandle<JSTaggedValue>(… in HWTEST_F_L0()
168 JSFunctionBase::GetFunctionName(thread, JSHandle<JSFunctionBase>(jsFunction)); in HWTEST_F_L0()
Ddump_test.cpp458 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/
Dpanda_file_translator_test.cpp91 …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()
Djs_pandafile_manager_test.cpp271 …JSHandle<JSTaggedValue> funcName = JSFunction::GetFunctionName(thread, JSHandle<JSFunctionBase>(ma… in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/patch/
Dpatch_loader.cpp217 JSFunctionBase *func = JSFunctionBase::Cast(value.GetTaggedObject()); in GetPatchMethod()
304 JSFunctionBase *func = JSFunctionBase::Cast(literalItem.GetTaggedObject()); in FindAndReplaceSameMethod()
/arkcompiler/ets_runtime/ecmascript/compiler/trampoline/x64/
Doptimized_fast_call.cpp118 __ 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()
Doptimized_call.cpp125 __ 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()
Dasm_interpreter_call.cpp94 __ 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/
Dbuiltins_function_test.cpp171 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/
Dbuiltins_function.cpp272 status = JSFunction::SetFunctionName(thread, JSHandle<JSFunctionBase>(boundFunction), in FunctionPrototypeBind()
275 status = JSFunction::SetFunctionName(thread, JSHandle<JSFunctionBase>(boundFunction), in FunctionPrototypeBind()
Dbuiltins.cpp604 …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 …]
Dbuiltins_ark_tools.cpp742 …e<JSTaggedValue> funcName = JSFunction::GetFunctionName(thread, JSHandle<JSFunctionBase>(funcObj)); in FunctionGetInferredName()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dinterpreter_stub.cpp508 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 …]
Dstub_builder-inl.h321 … 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/
Druntime_stubs-inl.h1103 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/
Dcontainers_private.cpp180 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/
Djsnapi.cpp126 using ecmascript::JSFunctionBase;
Djsnapi_expo.cpp123 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/
Dheap_snapshot.cpp1076 JSFunctionBase *func = JSFunctionBase::Cast(obj); in ParseFunctionName()
/arkcompiler/ets_runtime/ecmascript/mem/
Dobject_xray.h157 auto jsFunctionBase = JSFunctionBase::Cast(object); in VisitObjectBody()
/arkcompiler/ets_runtime/ecmascript/compiler/trampoline/aarch64/
Dasm_interpreter_call.cpp750 __ 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/
Djs_stackinfo.cpp492 value += JSFunctionBase::METHOD_OFFSET; in ArkCheckAndGetMethod()

12