Home
last modified time | relevance | path

Searched refs:env (Results 1 – 25 of 418) sorted by relevance

12345678910>>...17

/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins.h46 …void Initialize(const JSHandle<GlobalEnv> &env, JSThread *thread, bool lazyInit = false, bool isRe…
54 …JSHandle<JSFunction> NewBuiltinConstructor(const JSHandle<GlobalEnv> &env, const JSHandle<JSObject…
59 JSHandle<JSFunction> NewBuiltinCjsCtor(const JSHandle<GlobalEnv> &env,
63 …JSHandle<JSFunction> NewFunction(const JSHandle<GlobalEnv> &env, const JSHandle<JSTaggedValue> &ke…
71 void InitializeCtor(const JSHandle<GlobalEnv> &env, const JSHandle<JSObject> &prototype,
74 …void InitializeGlobalObject(const JSHandle<GlobalEnv> &env, const JSHandle<JSObject> &globalObject…
76 void InitializeFunctionHclassForOptimized(const JSHandle<GlobalEnv> &env) const;
78 …void InitializeFunction(const JSHandle<GlobalEnv> &env, const JSHandle<JSHClass> &emptyFuncClass) …
80 … void InitializeObject(const JSHandle<GlobalEnv> &env, const JSHandle<JSObject> &objFuncPrototype,
83 void InitializeNumber(const JSHandle<GlobalEnv> &env, const JSHandle<JSObject> &globalObject,
[all …]
Dbuiltins.cpp188 void Builtins::Initialize(const JSHandle<GlobalEnv> &env, JSThread *thread, bool lazyInit, bool isR… in Initialize() argument
206 env->SetObjectFunctionClass(thread_, objFuncClass); in Initialize()
223 env->SetJSGlobalObject(thread_, globalObject); in Initialize()
227 env->SetGlobalPatch(thread, globalPatch); in Initialize()
230 InitializeFunction(env, emptyFuncClass); in Initialize()
234 … JSType::JS_ASYNC_AWAIT_STATUS_FUNCTION, env->GetFunctionPrototype()); in Initialize()
235 env->SetAsyncAwaitStatusFunctionClass(thread_, asyncAwaitStatusFuncClass); in Initialize()
240 env->GetFunctionPrototype()); in Initialize()
243 env->SetAsyncGeneratorResNextRetProRstFtnClass(thread_, asyncGeneratorResNextRetProRstFtnClass); in Initialize()
246 JSProxyRevocFunction::SIZE, JSType::JS_PROXY_REVOC_FUNCTION, env->GetFunctionPrototype()); in Initialize()
[all …]
Dbuiltins_lazy_callback.cpp30 auto env = vm->GetGlobalEnv(); in Date() local
32 JSHandle<JSHClass> objFuncClass(env->GetObjectFunctionClass()); in Date()
34 builtin.InitializeDate(env, objFuncClass); in Date()
35 return env->GetDateFunction().GetTaggedValue(); in Date()
44 auto env = vm->GetGlobalEnv(); in Set() local
47 JSHandle<JSHClass> objFuncClass(env->GetObjectFunctionClass()); in Set()
48 builtin.InitializeSet(env, objFuncClass); in Set()
49 return env->GetBuiltinsSetFunction().GetTaggedValue(); in Set()
58 auto env = vm->GetGlobalEnv(); in Map() local
61 JSHandle<JSHClass> objFuncClass(env->GetObjectFunctionClass()); in Map()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/
Doperations_stub_builder.cpp24 auto env = GetEnvironment(); in Equal() local
25 Label entry(env); in Equal()
26 env->SubCfgEntry(&entry); in Equal()
27 Label exit(env); in Equal()
28 Label isHole(env); in Equal()
40 env->SubCfgExit(); in Equal()
46 auto env = GetEnvironment(); in NotEqual() local
47 Label entry(env); in NotEqual()
48 env->SubCfgEntry(&entry); in NotEqual()
49 Label exit(env); in NotEqual()
[all …]
Dstub_builder.cpp115 auto env = GetEnvironment(); in FindElementWithCache() local
116 Label subEntry(env); in FindElementWithCache()
117 env->SubCfgEntry(&subEntry); in FindElementWithCache()
120 Label exit(env); in FindElementWithCache()
121 Label notExceedUpper(env); in FindElementWithCache()
122 Label exceedUpper(env); in FindElementWithCache()
123 Label afterExceedCon(env); in FindElementWithCache()
128 Label loopHead(env); in FindElementWithCache()
129 Label loopEnd(env); in FindElementWithCache()
130 Label afterLoop(env); in FindElementWithCache()
[all …]
Dtyped_array_stub_builder.cpp24 auto env = GetEnvironment(); in IsDetachedBuffer() local
25 Label entryPass(env); in IsDetachedBuffer()
26 env->SubCfgEntry(&entryPass); in IsDetachedBuffer()
27 Label isNull(env); in IsDetachedBuffer()
28 Label exit(env); in IsDetachedBuffer()
29 Label isByteArray(env); in IsDetachedBuffer()
30 Label notByteArray(env); in IsDetachedBuffer()
49 env->SubCfgExit(); in IsDetachedBuffer()
55 auto env = GetEnvironment(); in GetDataPointFromBuffer() local
56 Label entryPass(env); in GetDataPointFromBuffer()
[all …]
Daccess_object_stub_builder.cpp26 auto env = GetEnvironment(); in LoadObjByName() local
27 Label entry(env); in LoadObjByName()
28 env->SubCfgEntry(&entry); in LoadObjByName()
29 Label exit(env); in LoadObjByName()
30 Label tryFastPath(env); in LoadObjByName()
31 Label slowPath(env); in LoadObjByName()
42 Label notHole(env); in LoadObjByName()
60 env->SubCfgExit(); in LoadObjByName()
67 auto env = GetEnvironment(); in DeprecatedLoadObjByName() local
68 Label entry(env); in DeprecatedLoadObjByName()
[all …]
Dprofiler_stub_builder.cpp52 auto env = GetEnvironment(); in ProfileOpType() local
53 Label subEntry(env); in ProfileOpType()
54 env->SubCfgEntry(&subEntry); in ProfileOpType()
56 Label exit(env); in ProfileOpType()
57 Label profiler(env); in ProfileOpType()
58 Label slowpath(env); in ProfileOpType()
71 Label uninitialize(env); in ProfileOpType()
72 Label compareLabel(env); in ProfileOpType()
73 Label updateSlot(env); in ProfileOpType()
74 Label updateProfile(env); in ProfileOpType()
[all …]
Dnew_object_stub_builder.cpp30 auto env = GetEnvironment(); in NewLexicalEnv() local
34 Label afterAllocate(env); in NewLexicalEnv()
38 Label hasPendingException(env); in NewLexicalEnv()
39 Label noException(env); in NewLexicalEnv()
46 Label afterInitialize(env); in NewLexicalEnv()
64 auto env = GetEnvironment(); in NewJSArrayWithSize() local
65 Label entry(env); in NewJSArrayWithSize()
66 Label exit(env); in NewJSArrayWithSize()
67 env->SubCfgEntry(&entry); in NewJSArrayWithSize()
74 env->SubCfgExit(); in NewJSArrayWithSize()
[all …]
Dic_stub_builder.cpp21 auto env = GetEnvironment(); in NamedICAccessor() local
22 Label receiverIsHeapObject(env); in NamedICAccessor()
23 Label tryIC(env); in NamedICAccessor()
31 Label isHeapObject(env); in NamedICAccessor()
32 Label notHeapObject(env); in NamedICAccessor()
38 Label tryPoly(env); in NamedICAccessor()
59 auto env = GetEnvironment(); in ValuedICAccessor() local
60 Label receiverIsHeapObject(env); in ValuedICAccessor()
65 Label tryIC(env); in ValuedICAccessor()
69 Label isHeapObject(env); in ValuedICAccessor()
[all …]
Dinterpreter_stub.cpp123 …GateRef iVecOffset = IntPtr(JSThread::GlueData::GetInterruptVectorOffset(env->IsArch32Bit())); …
126 …Label callRuntime(env); …
271 auto env = GetEnvironment(); in DECLARE_ASM_HANDLER() local
277 Label newArgumentsObj(env); in DECLARE_ASM_HANDLER()
278 Label checkException(env); in DECLARE_ASM_HANDLER()
279 Label dispatch(env); in DECLARE_ASM_HANDLER()
280 Label slowPath(env); in DECLARE_ASM_HANDLER()
283 Label afterArgumentsList(env); in DECLARE_ASM_HANDLER()
288 Label afterArgumentsObj(env); in DECLARE_ASM_HANDLER()
594 auto env = GetEnvironment(); in DECLARE_ASM_HANDLER() local
[all …]
Dcommon_stubs.cpp264 auto env = GetEnvironment(); in GenerateCircuit() local
272 Label afterNew(env); in GenerateCircuit()
280 auto env = GetEnvironment(); in GenerateCircuit() local
286 Label afterArgumentsList(env); in GenerateCircuit()
287 Label newArgumentsObj(env); in GenerateCircuit()
288 Label exit(env); in GenerateCircuit()
488 auto env = GetEnvironment(); in GenerateCircuit() local
494 Label receiverIsHeapObject(env); in GenerateCircuit()
495 Label receiverNotHeapObject(env); in GenerateCircuit()
496 Label hclassEqualFirstValue(env); in GenerateCircuit()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/
Dbuiltins_string_stub_builder.cpp24 auto env = GetEnvironment(); in StringAt() local
25 Label entry(env); in StringAt()
26 env->SubCfgEntry(&entry); in StringAt()
29 Label exit(env); in StringAt()
30 Label isUtf16(env); in StringAt()
31 Label isUtf8(env); in StringAt()
32 Label doIntOp(env); in StringAt()
33 Label leftIsNumber(env); in StringAt()
34 Label rightIsNumber(env); in StringAt()
51 env->SubCfgExit(); in StringAt()
[all …]
Dcontainers_stub_builder.cpp24 auto env = GetEnvironment(); in ContainersCommonFuncCall() local
31 Label valueIsJSAPIVector(env); in ContainersCommonFuncCall()
32 Label valueNotJSAPIVector(env); in ContainersCommonFuncCall()
33 Label objIsJSProxy(env); in ContainersCommonFuncCall()
34 Label objNotJSProxy(env); in ContainersCommonFuncCall()
35 Label objIsJSAPIVector(env); in ContainersCommonFuncCall()
36 Label thisArgUndefined(env); in ContainersCommonFuncCall()
37 Label thisArgNotUndefined(env); in ContainersCommonFuncCall()
38 Label callbackUndefined(env); in ContainersCommonFuncCall()
39 Label callbackNotUndefined(env); in ContainersCommonFuncCall()
[all …]
Dbuiltins_stubs.cpp65 auto env = GetEnvironment(); in GetArg() local
66 Label entry(env); in GetArg()
67 env->SubCfgEntry(&entry); in GetArg()
69 Label validIndex(env); in GetArg()
70 Label exit(env); in GetArg()
80 env->SubCfgExit(); in GetArg()
87 auto env = GetEnvironment(); in CallSlowPath() local
88 Label entry(env); in CallSlowPath()
89 env->SubCfgEntry(&entry); in CallSlowPath()
90 Label exit(env); in CallSlowPath()
[all …]
Dbuiltins_stubs.h30 BuiltinsStubBuilder(CallSignature *callSignature, Environment *env) in BuiltinsStubBuilder() argument
31 : StubBuilder(callSignature, env) {} in BuiltinsStubBuilder()
69 auto env = GetEnvironment(); in GetCallArg0() local
70 Label subentry(env); in GetCallArg0()
71 env->SubCfgEntry(&subentry); in GetCallArg0()
73 Label isValid(env); in GetCallArg0()
74 Label exit(env); in GetCallArg0()
83 env->SubCfgExit(); in GetCallArg0()
89 auto env = GetEnvironment(); in GetCallArg1() local
90 Label subentry(env); in GetCallArg1()
[all …]
Dcontainers_queue_stub_builder.h33 auto env = GetEnvironment(); in GetArrayLength() local
34 Label entry(env); in GetArrayLength()
35 env->SubCfgEntry(&entry); in GetArrayLength()
36 Label exit(env); in GetArrayLength()
37 Label endGreatBeging(env); in GetArrayLength()
38 Label endNotGreatBeging(env); in GetArrayLength()
58 env->SubCfgExit(); in GetArrayLength()
/arkcompiler/ets_runtime/ecmascript/base/
Dtyped_array_helper-inl.h97 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in GetConstructor() local
101 return env->GetInt8ArrayFunction(); in GetConstructor()
103 return env->GetUint8ArrayFunction(); in GetConstructor()
105 return env->GetUint8ClampedArrayFunction(); in GetConstructor()
107 return env->GetInt16ArrayFunction(); in GetConstructor()
109 return env->GetUint16ArrayFunction(); in GetConstructor()
111 return env->GetInt32ArrayFunction(); in GetConstructor()
113 return env->GetUint32ArrayFunction(); in GetConstructor()
115 return env->GetFloat32ArrayFunction(); in GetConstructor()
117 return env->GetFloat64ArrayFunction(); in GetConstructor()
[all …]
/arkcompiler/ets_runtime/ecmascript/tests/
Dbuiltins_test.cpp60 JSHandle<GlobalEnv> env = ecmaVM->GetGlobalEnv(); in HWTEST_F_L0() local
62 JSHandle<JSFunction> objectFunction(env->GetObjectFunction()); in HWTEST_F_L0()
69 JSHandle<GlobalEnv> env = ecmaVM->GetGlobalEnv(); in HWTEST_F_L0() local
71 JSHandle<JSFunction> functionFunction(env->GetFunctionFunction()); in HWTEST_F_L0()
78 JSHandle<GlobalEnv> env = ecmaVM->GetGlobalEnv(); in HWTEST_F_L0() local
80 JSHandle<JSFunction> numberFunction(env->GetNumberFunction()); in HWTEST_F_L0()
87 JSHandle<GlobalEnv> env = ecmaVM->GetGlobalEnv(); in HWTEST_F_L0() local
89 JSHandle<JSFunction> setFunction(env->GetBuiltinsSetFunction()); in HWTEST_F_L0()
96 JSHandle<GlobalEnv> env = ecmaVM->GetGlobalEnv(); in HWTEST_F_L0() local
98 JSHandle<JSFunction> mapFunction(env->GetBuiltinsMapFunction()); in HWTEST_F_L0()
[all …]
Djs_generator_object_test.cpp63 auto env = vm->GetGlobalEnv(); in HWTEST_F_L0() local
64 …JSHandle<JSGeneratorObject> genOjb = factory->NewJSGeneratorObject(env->GetGeneratorFunctionFuncti… in HWTEST_F_L0()
72 auto env = vm->GetGlobalEnv(); in HWTEST_F_L0() local
74 … SlowRuntimeStub::CreateGeneratorObj(thread, env->GetGeneratorFunctionFunction().GetTaggedValue()); in HWTEST_F_L0()
84 auto env = vm->GetGlobalEnv(); in HWTEST_F_L0() local
86 …factory->NewEcmaHClass(JSObject::SIZE, JSType::JS_GENERATOR_OBJECT, env->GetGeneratorFunctionProto… in HWTEST_F_L0()
107 auto env = vm->GetGlobalEnv(); in HWTEST_F_L0() local
111 … SlowRuntimeStub::CreateGeneratorObj(thread, env->GetGeneratorFunctionFunction().GetTaggedValue()); in HWTEST_F_L0()
133 auto env = vm->GetGlobalEnv(); in HWTEST_F_L0() local
137 … SlowRuntimeStub::CreateGeneratorObj(thread, env->GetGeneratorFunctionFunction().GetTaggedValue()); in HWTEST_F_L0()
Djs_finalization_registry_test.cpp70 auto env = vm->GetGlobalEnv(); in CreateFinalizationRegistry() local
72 JSHandle<JSFunction> finaRegFunc(env->GetBuiltinsFinalizationRegistryFunction()); in CreateFinalizationRegistry()
73 JSHandle<JSFunction> callbackFunc = factory->NewJSFunction(env, reinterpret_cast<void *>( in CreateFinalizationRegistry()
102 auto env = vm->GetGlobalEnv(); in HWTEST_F_L0() local
104 JSHandle<JSTaggedValue> objectFunc = env->GetObjectFunction(); in HWTEST_F_L0()
124 JSHandle<JSTaggedValue> finRegLists = env->GetFinRegLists(); in HWTEST_F_L0()
136 auto env = vm->GetGlobalEnv(); in HWTEST_F_L0() local
138 JSHandle<JSTaggedValue> objectFunc = env->GetObjectFunction(); in HWTEST_F_L0()
163 JSHandle<JSTaggedValue> finRegLists = env->GetFinRegLists(); in HWTEST_F_L0()
174 auto env = vm->GetGlobalEnv(); in HWTEST_F_L0() local
[all …]
/arkcompiler/ets_runtime/ecmascript/jobs/tests/
Dpending_job_test.cpp65 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0() local
68 JSHandle<JSFunction> handleFunc = factory->NewJSFunction(env); in HWTEST_F_L0()
75 JSHandle<JSFunction> handleNativeFunc(env->GetTypedArrayFunction()); in HWTEST_F_L0()
89 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0() local
92 JSHandle<JSFunction> handleFunc = factory->NewJSFunction(env); in HWTEST_F_L0()
120 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0() local
121 JSHandle<JSTaggedValue> promiseFunc = env->GetPromiseFunction(); in HWTEST_F_L0()
130 JSHandle<JSFunction> promiseReactionsJob(env->GetPromiseReactionJob()); in HWTEST_F_L0()
155 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0() local
156 JSHandle<JSTaggedValue> promiseFunc = env->GetPromiseFunction(); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_boolean_test.cpp63 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0() local
65 JSHandle<JSFunction> boolean(env->GetBooleanFunction()); in HWTEST_F_L0()
66 JSHandle<JSObject> globalObject(thread, env->GetGlobalObject()); in HWTEST_F_L0()
83 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0() local
85 JSHandle<JSFunction> boolean(env->GetBooleanFunction()); in HWTEST_F_L0()
86 JSHandle<JSObject> globalObject(thread, env->GetGlobalObject()); in HWTEST_F_L0()
103 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0() local
105 JSHandle<JSFunction> boolean(env->GetBooleanFunction()); in HWTEST_F_L0()
106 JSHandle<JSObject> globalObject(thread, env->GetGlobalObject()); in HWTEST_F_L0()
140 JSHandle<GlobalEnv> env = ecmaVM->GetGlobalEnv(); in HWTEST_F_L0() local
[all …]
Dbuiltins_weak_ref_test.cpp71 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in CreateWeakRefConstructor() local
72 JSHandle<JSObject> globalObject(thread, env->GetGlobalObject()); in CreateWeakRefConstructor()
73 JSHandle<JSFunction> weakRef(env->GetBuiltinsWeakRefFunction()); in CreateWeakRefConstructor()
89 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0() local
91 JSHandle<JSTaggedValue> objectFunc(env->GetObjectFunction()); in HWTEST_F_L0()
95 JSHandle<JSFunction> weakRef(env->GetBuiltinsWeakRefFunction()); in HWTEST_F_L0()
96 JSHandle<JSObject> globalObject(thread, env->GetGlobalObject()); in HWTEST_F_L0()
112 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0() local
114 JSHandle<JSTaggedValue> objectFunc(env->GetObjectFunction()); in HWTEST_F_L0()
132 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0() local
[all …]
/arkcompiler/ets_runtime/ecmascript/containers/
Dcontainers_private.cpp172 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in NewContainerConstructor() local
175 …factory->NewJSFunction(env, reinterpret_cast<void *>(ctorFunc), FunctionKind::BUILTIN_CONSTRUCTOR); in NewContainerConstructor()
229 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in CreateGetter() local
231 JSHandle<JSFunction> function = factory->NewJSFunction(env, reinterpret_cast<void *>(func)); in CreateGetter()
249 void ContainersPrivate::SetFunctionAtSymbol(JSThread *thread, const JSHandle<GlobalEnv> &env, in SetFunctionAtSymbol() argument
254 JSHandle<JSFunction> function = factory->NewJSFunction(env, reinterpret_cast<void *>(func)); in SetFunctionAtSymbol()
263 void ContainersPrivate::SetStringTagSymbol(JSThread *thread, const JSHandle<GlobalEnv> &env, in SetStringTagSymbol() argument
268 JSHandle<JSTaggedValue> symbol = env->GetToStringTagSymbol(); in SetStringTagSymbol()
318 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in InitializeArrayList() local
319 SetStringTagSymbol(thread, env, prototype, "ArrayList"); in InitializeArrayList()
[all …]

12345678910>>...17