Home
last modified time | relevance | path

Searched refs:JSFunctionBase (Results 1 – 25 of 26) 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…
69 static_assert((JSFunctionBase::SIZE % static_cast<uint8_t>(MemAlignment::MEM_ALIGN_OBJECT)) == 0);
70 static_assert(JSFunctionBase::METHOD_OFFSET == JSProxy::METHOD_OFFSET);
72 class JSFunction : public JSFunctionBase {
227 static constexpr size_t PROTO_OR_DYNCLASS_OFFSET = JSFunctionBase::SIZE;
234 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSFunctionBase, PROTO_OR_DYNCLASS_OFFSET, SIZE)
255 class JSBoundFunction : public JSFunctionBase {
[all …]
Djs_function.cpp478 JSHandle<JSTaggedValue> JSFunctionBase::GetFunctionName(JSThread *thread, const JSHandle<JSFunction… in GetFunctionName()
485 bool JSFunctionBase::SetFunctionName(JSThread *thread, const JSHandle<JSFunctionBase> &func, in SetFunctionName()
Dobject_factory.h40 class JSFunctionBase; variable
Ddump.cpp682 JSFunctionBase::Cast(obj)->Dump(os); in DumpObject()
3629 void JSFunctionBase::Dump(std::ostream &os) const in Dump()
Djs_object.cpp67 value = JSFunctionBase::ConstCast(obj)->GetMethod(); in GetCallTarget()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dprofiler_stub_builder.cpp62 GateRef method = Load(VariableType::JS_ANY(), func, IntPtr(JSFunctionBase::METHOD_OFFSET)); in ProfileOpType()
97 … GateRef method = Load(VariableType::JS_ANY(), func, IntPtr(JSFunctionBase::METHOD_OFFSET)); in ProfileOpType()
115 GateRef method = Load(VariableType::JS_ANY(), func, IntPtr(JSFunctionBase::METHOD_OFFSET)); in ProfileDefineClass()
158 GateRef method = Load(VariableType::JS_ANY(), func, IntPtr(JSFunctionBase::METHOD_OFFSET)); in ProfileCreateObject()
179 GateRef method = Load(VariableType::JS_ANY(), func, IntPtr(JSFunctionBase::METHOD_OFFSET)); in ProfileObjLayout()
209 … GateRef method = Load(VariableType::JS_ANY(), func, IntPtr(JSFunctionBase::METHOD_OFFSET)); in ProfileCall()
Dinterpreter_stub.cpp2321 IntPtr(JSFunctionBase::METHOD_OFFSET)); in DECLARE_ASM_HANDLER()
2349 … GateRef method = Load(VariableType::JS_ANY(), function, IntPtr(JSFunctionBase::METHOD_OFFSET)); in DECLARE_ASM_HANDLER()
2384 IntPtr(JSFunctionBase::METHOD_OFFSET)); in DECLARE_ASM_HANDLER()
2413 … GateRef method = Load(VariableType::JS_ANY(), function, IntPtr(JSFunctionBase::METHOD_OFFSET)); in DECLARE_ASM_HANDLER()
2460 IntPtr(JSFunctionBase::METHOD_OFFSET)); in DECLARE_ASM_HANDLER()
2488 … GateRef method = Load(VariableType::JS_ANY(), function, IntPtr(JSFunctionBase::METHOD_OFFSET)); in DECLARE_ASM_HANDLER()
2534 IntPtr(JSFunctionBase::METHOD_OFFSET)); in DECLARE_ASM_HANDLER()
2562 … GateRef method = Load(VariableType::JS_ANY(), function, IntPtr(JSFunctionBase::METHOD_OFFSET)); in DECLARE_ASM_HANDLER()
2866 IntPtr(JSFunctionBase::METHOD_OFFSET)); in DECLARE_ASM_HANDLER()
2894 … GateRef method = Load(VariableType::JS_ANY(), function, IntPtr(JSFunctionBase::METHOD_OFFSET)); in DECLARE_ASM_HANDLER()
[all …]
Dstub_builder-inl.h300 … GateRef method = Load(VariableType::JS_ANY(), function, IntPtr(JSFunctionBase::METHOD_OFFSET)); in SaveHotnessCounterIfNeeded()
2165 methodOffset = IntPtr(JSFunctionBase::METHOD_OFFSET); in GetMethodFromJSFunction()
2438 GateRef method = Load(VariableType::JS_ANY(), jsFunc, IntPtr(JSFunctionBase::METHOD_OFFSET)); in LoadPfHeaderFromConstPool()
/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.cpp444 CHECK_DUMP_FIELDS(JSObject::SIZE, JSFunctionBase::SIZE, 1U); in HWTEST_F_L0()
448 CHECK_DUMP_FIELDS(JSFunctionBase::SIZE, JSFunction::SIZE, 4U); in HWTEST_F_L0()
544 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.cpp177 JSFunctionBase *func = JSFunctionBase::Cast(value.GetTaggedObject()); in UnloadPatchInternal()
282 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()
353 __ Mov(Operand(jsFuncReg, JSFunctionBase::METHOD_OFFSET), method); // get method in GenJSCall()
392 __ Mov(Operand(jsFuncReg, JSFunctionBase::METHOD_OFFSET), method); // get method in GenJSCall()
831 __ Movq(Operand(jsfunc, JSFunctionBase::METHOD_OFFSET), tmp); in PushArgsWithArgV()
1037 __ Mov(Operand(jsFuncReg, JSFunctionBase::METHOD_OFFSET), method); // get method in CallOptimized()
1090 __ Movq(Operand(callTargetRegister, JSFunctionBase::METHOD_OFFSET), methodRegister); in DeoptEnterAsmInterp()
Dasm_interpreter_call.cpp94 __ Movq(Operand(callTargetRegister, JSFunctionBase::METHOD_OFFSET), methodRegister); in GeneratorReEnterAsmInterpDispatch()
1025 __ Movq(Operand(temp, JSFunctionBase::METHOD_OFFSET), temp); in ResumeRspAndDispatch()
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_function.cpp228 …status = JSFunction::SetFunctionName(thread, JSHandle<JSFunctionBase>(boundFunction), emptyString,… in FunctionPrototypeBind()
230 …status = JSFunction::SetFunctionName(thread, JSHandle<JSFunctionBase>(boundFunction), targetName, … in FunctionPrototypeBind()
Dbuiltins.cpp479 …JSFunction::SetFunctionName(thread_, JSHandle<JSFunctionBase>(funcFuncPrototype), emptyString, und… in InitializeFunction()
1028 JSFunction::SetFunctionName(thread_, JSHandle<JSFunctionBase>(ctor), nameString, in InitializeExoticConstructor()
1285 JSFunction::SetFunctionName(thread_, JSHandle<JSFunctionBase>(ctor), nameString, in InitializeCtor()
2947 JSFunction::SetFunctionName(thread_, JSHandle<JSFunctionBase>(ctor), nameString, in NewBuiltinCjsCtor()
2963 JSHandle<JSFunctionBase> baseFunction(function); in NewFunction()
3006 JSHandle<JSFunctionBase> baseFunction(function); in SetFunctionAtSymbol()
3041 JSFunction::SetFunctionName(thread_, JSHandle<JSFunctionBase>(function), funcName, prefix); in CreateGetter()
3052 JSFunction::SetFunctionName(thread_, JSHandle<JSFunctionBase>(function), funcName, prefix); in CreateSetter()
3106 JSHandle<JSFunctionBase> baseFunction(function); in SetFuncToObjAndGlobal()
3346 JSFunction::SetFunctionName(thread_, JSHandle<JSFunctionBase>(ctor), nameString, in ITERATE_INTL()
/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/stubs/
Druntime_stubs-inl.h1005 JSFunctionBase::SetFunctionName(thread, JSHandle<JSFunctionBase>::Cast(value), propKey, in RuntimeStOwnByValueWithNameSet()
1046 JSFunctionBase::SetFunctionName(thread, JSHandle<JSFunctionBase>::Cast(valueHandle), propKey, in RuntimeStOwnByNameWithNameSet()
2058 JSFunctionBase::SetFunctionName(thread, JSHandle<JSFunctionBase>::Cast(getter), propKey, in RuntimeDefineGetterSetterByValue()
2067 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/mem/
Dobject_xray.h149 auto jsFunctionBase = JSFunctionBase::Cast(object); in VisitObjectBody()
/arkcompiler/ets_runtime/ecmascript/napi/
Djsnapi.cpp124 using ecmascript::JSFunctionBase;
1822 JSHandle<JSFunctionBase> func(thread, JSNApiHelper::ToJSTaggedValue(this)); in GetName()
1823 JSHandle<JSTaggedValue> name = JSFunctionBase::GetFunctionName(thread, func); in GetName()
1833 JSHandle<JSFunctionBase> func(thread, JSNApiHelper::ToJSTaggedValue(this)); in GetSourceCode()
1869 JSHandle<JSFunctionBase> func(thread, JSNApiHelper::ToJSTaggedValue(this)); in IsNative()
/arkcompiler/ets_runtime/ecmascript/compiler/trampoline/aarch64/
Dasm_interpreter_call.cpp728 __ Ldr(temp, MemoryOperand(temp, JSFunctionBase::METHOD_OFFSET)); in ResumeRspAndDispatch()
945 __ Ldr(method, MemoryOperand(callTarget, JSFunctionBase::METHOD_OFFSET)); in GeneratorReEnterAsmInterpDispatch()
Doptimized_call.cpp1086 __ Ldr(methodRegister, MemoryOperand(callTargetRegister, JSFunctionBase::METHOD_OFFSET)); in DeoptEnterAsmInterp()

12