Lines Matching defs:global
205 // Creates the global objects using the global proxy and the template passed
210 // rest of the context snapshot. At the end we link the global proxy and the
215 // Similarly, we want to use the global that has been created by the templates
216 // passed through the API. The global from the snapshot is detached from the
219 // Hooks the given global proxy into the context in the case we do not
220 // replace the global object from the deserialized native context.
224 // global proxy.
1257 // and the global object, but in order to create those, we need the
1353 // Step 2: (re)initialize the global proxy object.
1374 // Set the global object as the (hidden) __proto__ of the global proxy after
1378 // Set the native context for the global object.
1381 // Set the native context of the global proxy.
1383 // Set the global proxy of the native context. If the native context has been
1384 // deserialized, the global proxy is already correctly set up by the
1396 // Re-initialize the global proxy with the global proxy function from the
1434 static void InstallError(Isolate* isolate, Handle<JSObject> global,
1450 isolate, global, name, JS_ERROR_TYPE, kErrorObjectSize,
1506 // Set extension and global object.
1508 // Security setup: Set the security token of the native context to the global
1510 // by default even in case of global object reinitialization.
1656 Handle<JSObject> global(native_context()->global_object(), isolate());
1661 InstallFunction(isolate_, global, "Function", JS_FUNCTION_TYPE,
1715 isolate_, global, "Array", JS_ARRAY_TYPE, JSArray::kHeaderSize, 0,
1902 isolate_, global, "Number", JS_PRIMITIVE_WRAPPER_TYPE,
1980 InstallConstant(isolate_, global, "Infinity", factory->infinity_value());
1981 InstallConstant(isolate_, global, "NaN", factory->nan_value());
1982 InstallConstant(isolate_, global, "undefined", factory->undefined_value());
1987 isolate_, global, "Boolean", JS_PRIMITIVE_WRAPPER_TYPE,
2014 isolate_, global, "String", JS_PRIMITIVE_WRAPPER_TYPE,
2215 InstallFunction(isolate_, global, "Symbol", JS_PRIMITIVE_WRAPPER_TYPE,
2277 isolate_, global, "Date", JS_DATE_TYPE, JSDate::kHeaderSize, 0,
2411 isolate_, global, "Promise", JS_PROMISE_TYPE,
2479 isolate_, global, "RegExp", JS_REG_EXP_TYPE,
2697 InstallError(isolate_, global, factory->Error_string(),
2701 InstallError(isolate_, global, factory->AggregateError_string(),
2706 InstallError(isolate_, global, factory->EvalError_string(),
2710 InstallError(isolate_, global, factory->RangeError_string(),
2714 InstallError(isolate_, global, factory->ReferenceError_string(),
2718 InstallError(isolate_, global, factory->SyntaxError_string(),
2722 InstallError(isolate_, global, factory->TypeError_string(),
2726 InstallError(isolate_, global, factory->URIError_string(),
2756 JSObject::AddProperty(isolate_, global, factory->globalThis_string(),
2763 JSObject::AddProperty(isolate_, global, "JSON", json_object, DONT_ENUM);
2774 JSObject::AddProperty(isolate_, global, "Math", math, DONT_ENUM);
2849 JSObject::AddProperty(isolate_, global, "Intl", intl, DONT_ENUM);
3260 JSObject::AddProperty(isolate_, global, name, array_buffer_fun, DONT_ENUM);
3424 isolate_, global, "DataView", JS_DATA_VIEW_TYPE,
3491 isolate_, global, "Map", JS_MAP_TYPE, JSMap::kHeaderSize, 0,
3552 InstallFunction(isolate_, global, "BigInt", JS_PRIMITIVE_WRAPPER_TYPE,
3590 isolate_, global, "Set", JS_SET_TYPE, JSSet::kHeaderSize, 0,
3697 isolate_, global, "WeakMap", JS_WEAK_MAP_TYPE, JSWeakMap::kHeaderSize,
3736 isolate_, global, "WeakSet", JS_WEAK_SET_TYPE, JSWeakSet::kHeaderSize,
3787 JSObject::AddProperty(isolate_, global, name, proxy_function, DONT_ENUM);
3799 JSObject::AddProperty(isolate_, global, reflect_string, reflect, DONT_ENUM);
3876 isolate_, global, factory->FinalizationRegistry_string(),
3912 isolate_, global, "WeakRef", JS_WEAK_REF_TYPE, JSWeakRef::kHeaderSize,
4052 Handle<JSObject> global =
4059 isolate(), global, name, JS_TYPED_ARRAY_TYPE,
4157 // Call function using either the runtime object or the global
4337 // there's one global (per native context) map here that is used for the
4415 Handle<JSGlobalObject> global(context->global_object(), isolate());
4430 JSObject::AddProperty(isolate_, global, name, console, DONT_ENUM);
4501 Handle<JSGlobalObject> global(native_context()->global_object(), isolate());
4503 InstallFunction(isolate_, global, "ShadowRealm", JS_SHADOW_REALM_TYPE,
4560 Handle<JSGlobalObject> global(native_context()->global_object(), isolate());
4571 JSObject::AddProperty(isolate(), global, "SharedStructType",
4644 Handle<JSGlobalObject> global(native_context()->global_object(), isolate());
4646 JSObject::AddProperty(isolate_, global, "SharedArrayBuffer",
4653 Handle<JSGlobalObject> global(native_context()->global_object(), isolate());
4655 JSObject::AddProperty(isolate_, global, "Atomics",
4764 Handle<JSGlobalObject> global(native_context()->global_object(), isolate());
4765 JSObject::AddProperty(isolate_, global, "Temporal", temporal, DONT_ENUM);
5500 // example, global object setup done in this function could likely move to
5907 // the global object.
6054 // Configure the global proxy object.
6059 // Configure the global object.
6107 // it is likely due to both global objects sharing property name(s).
6108 // Merging those two global objects is impossible.
6109 // The global template must not create properties that already exist
6110 // in the snapshotted global object.
6248 // Find global.Array.prototype to inherit from.
6301 // The deserializer needs to hook up references to the global proxy.
6302 // Create an uninitialized global proxy now if we don't have one
6308 // The global proxy function to reinitialize this global proxy is in the
6309 // context that is yet to be deserialized. We need to prepare a global
6343 // If no global proxy template was passed in, simply use the global in the
6344 // snapshot. If a global proxy template was passed in it's used to recreate
6345 // the global object and its prototype chain, and the data and the accessor
6346 // properties from the deserialized global are copied onto it.
6353 // The global proxy needs to be integrated into the native context.
6447 // Create a remote object as the global object.
6460 // (Re)initialize the global proxy object.
6468 // A remote global proxy has no native context.
6471 // Configure the hidden prototype chain of the global proxy.