Lines Matching defs:thread

21 void GlobalIndexMap::Initialize(const JSThread *thread,
25 InitGlobalIndexMap(thread, globalIndexMap);
28 InitGlobalConst(thread, globalIndexMap);
29 InitGlobalEnv(thread, globalIndexMap);
30 InitBuiltinEntries(thread, globalIndexMap);
33 void GlobalIndexMap::InitGlobalIndexMap(const JSThread *thread,
39 globalIndexMap.Update(PointerToIndexDictionary::Create(thread));
42 void GlobalIndexMap::InitGlobalConst(const JSThread *thread,
46 auto globalConst = const_cast<GlobalEnvConstants *>(thread->GlobalConstants());
48 JSMutableHandle<PointerToIndexDictionary> globalIndexMapHandle(thread, globalIndexMap);
49 JSMutableHandle<JSTaggedValue> keyHandle(thread, JSTaggedValue::Undefined());
50 JSMutableHandle<JSTaggedValue> valueHandle(thread, JSTaggedValue::Undefined());
60 PointerToIndexDictionary::PutIfAbsent(thread, globalIndexMapHandle, keyHandle, valueHandle);
67 void GlobalIndexMap::InitGlobalEnv(const JSThread *thread,
71 auto globalEnv = thread->GetEcmaVM()->GetGlobalEnv();
73 JSMutableHandle<PointerToIndexDictionary> globalIndexMapHandle(thread, globalIndexMap);
74 JSMutableHandle<JSTaggedValue> keyHandle(thread, JSTaggedValue::Undefined());
75 JSMutableHandle<JSTaggedValue> valueHandle(thread, JSTaggedValue::Undefined());
85 PointerToIndexDictionary::PutIfAbsent(thread, globalIndexMapHandle, keyHandle, valueHandle);
92 void GlobalIndexMap::InitBuiltinEntries(const JSThread *thread,
96 auto builtinEntries = thread->GetBuiltinEntries();
98 JSMutableHandle<PointerToIndexDictionary> globalIndexMapHandle(thread, globalIndexMap);
99 JSMutableHandle<JSTaggedValue> keyHandle(thread, JSTaggedValue::Undefined());
100 JSMutableHandle<JSTaggedValue> valueHandle(thread, JSTaggedValue::Undefined());
109 PointerToIndexDictionary::PutIfAbsent(thread, globalIndexMapHandle, keyHandle, valueHandle);