Lines Matching defs:thread
22 JSHandle<JSTaggedValue> TemplateString::GetTemplateObject(JSThread *thread, JSHandle<JSTaggedValue> templateLiteral)
24 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv();
25 JSHandle<JSTaggedValue> rawStringsTag = JSObject::GetProperty(thread, templateLiteral, 0).GetValue();
26 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSTaggedValue, thread);
31 return JSHandle<JSTaggedValue>(thread, templateMap->GetValue(element));
33 JSHandle<JSTaggedValue> cookedStringsTag = JSObject::GetProperty(thread, templateLiteral, 1).GetValue();
34 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSTaggedValue, thread);
38 JSHandle<JSTaggedValue> templateArr = JSArray::ArrayCreate(thread, countNum);
39 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSTaggedValue, thread);
40 JSHandle<JSTaggedValue> rawArr = JSArray::ArrayCreate(thread, countNum);
41 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSTaggedValue, thread);
45 JSHandle<JSTaggedValue> cookedValue = JSObject::GetProperty(thread, cookedStringsTag, i).GetValue();
46 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSTaggedValue, thread);
47 PropertyDescriptor descCooked(thread, cookedValue, true, false, false);
48 JSArray::DefineOwnProperty(thread, templateObj, i, descCooked);
49 JSHandle<JSTaggedValue> rawValue = JSObject::GetProperty(thread, rawStringsTag, i).GetValue();
50 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSTaggedValue, thread);
51 PropertyDescriptor descRaw(thread, rawValue, true, false, false);
52 JSArray::DefineOwnProperty(thread, rawObj, i, descRaw);
54 JSObject::SetIntegrityLevel(thread, rawObj, IntegrityLevel::FROZEN);
55 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory();
57 PropertyDescriptor desc(thread, rawArr, false, false, false);
58 JSArray::DefineOwnProperty(thread, templateObj, raw, desc);
59 JSObject::SetIntegrityLevel(thread, templateObj, IntegrityLevel::FROZEN);
60 TemplateMap::Insert(thread, templateMap, rawStringsTag, templateArr);
61 env->SetTemplateMap(thread, templateMap.GetTaggedValue());