Lines Matching defs:realm
287 // error and symbol need to be shared when initialize realm
788 void Builtins::InitializeSymbolWithRealm(const JSHandle<GlobalEnv> &realm,
803 NewBuiltinConstructor(realm, symbolFuncPrototype, Symbol::SymbolConstructor, "Symbol", FunctionLength::ZERO));
814 SetFunction(realm, symbolFunction, entry.GetName(), entry.GetEntrypoint(),
820 realm->Set##Name##Symbol(thread_, env->Get##Name##Symbol());
822 realm->SetSymbolFunction(thread_, symbolFunction);
829 JSHandle<JSTaggedValue> getter(factory_->NewJSFunction(realm, reinterpret_cast<void *>(Symbol::DescriptionGetter)));
833 SetFunctionAtSymbol<JSSymbol::SYMBOL_TO_PRIMITIVE_TYPE>(realm, symbolFuncPrototype, env->GetToPrimitiveSymbol(),
838 SetFunction(realm, symbolFuncPrototype, entry.GetName(), entry.GetEntrypoint(),
842 SetStringTagSymbol(realm, symbolFuncPrototype, "Symbol");
845 realm->SetHoleySymbol(thread_, holeySymbol.GetTaggedValue());
847 realm->SetElementICSymbol(thread_, elementIcSymbol.GetTaggedValue());
895 void Builtins::InitializeBigIntWithRealm(const JSHandle<GlobalEnv> &realm) const
899 realm->SetBigIntFunction(thread_, env->GetBigIntFunction());
902 JSHandle<JSObject> globalObject(thread_, realm->GetGlobalObject());
1127 void Builtins::InitializeAllTypeErrorWithRealm(const JSHandle<GlobalEnv> &realm) const
1131 realm->SetErrorFunction(thread_, env->GetErrorFunction());
1132 realm->SetNativeErrorFunctionClass(thread_, env->GetNativeErrorFunctionClass());
1134 SetErrorWithRealm(realm, JSType::JS_RANGE_ERROR);
1135 SetErrorWithRealm(realm, JSType::JS_REFERENCE_ERROR);
1136 SetErrorWithRealm(realm, JSType::JS_TYPE_ERROR);
1137 SetErrorWithRealm(realm, JSType::JS_AGGREGATE_ERROR);
1138 SetErrorWithRealm(realm, JSType::JS_URI_ERROR);
1139 SetErrorWithRealm(realm, JSType::JS_SYNTAX_ERROR);
1140 SetErrorWithRealm(realm, JSType::JS_EVAL_ERROR);
1141 SetErrorWithRealm(realm, JSType::JS_OOM_ERROR);
1142 SetErrorWithRealm(realm, JSType::JS_TERMINATION_ERROR);
1145 void Builtins::SetErrorWithRealm(const JSHandle<GlobalEnv> &realm, const JSType &errorTag) const
1148 JSHandle<JSObject> globalObject(thread_, realm->GetGlobalObject());
1155 realm->SetRangeErrorFunction(thread_, nativeErrorFunction);
1160 realm->SetEvalErrorFunction(thread_, nativeErrorFunction);
1165 realm->SetReferenceErrorFunction(thread_, nativeErrorFunction);
1170 realm->SetTypeErrorFunction(thread_, nativeErrorFunction);
1171 realm->SetThrowTypeError(thread_, env->GetThrowTypeError());
1176 realm->SetAggregateErrorFunction(thread_, nativeErrorFunction);
1181 realm->SetURIErrorFunction(thread_, nativeErrorFunction);
1186 realm->SetSyntaxErrorFunction(thread_, nativeErrorFunction);
1191 realm->SetOOMErrorFunction(thread_, nativeErrorFunction);
1196 realm->SetTerminationErrorFunction(thread_, nativeErrorFunction);