Lines Matching refs:Builtins
211 Handle<JSFunction> InstallInternalArray(Handle<JSBuiltinsObject> builtins,
257 bool InstallJSBuiltins(Handle<JSBuiltinsObject> builtins);
315 // prototype for the processing of JS builtins. Later the function maps are
372 Builtins::Name call) {
376 Handle<Code> call_code = Handle<Code>(isolate->builtins()->builtin(call));
467 // of builtins.
517 Handle<Code> code(isolate->builtins()->builtin(Builtins::kEmptyFunction));
610 Handle<Code> code(isolate()->builtins()->builtin(
611 Builtins::kStrictModePoisonPill));
626 Handle<Code> code(isolate()->builtins()->builtin(
627 Builtins::kGeneratorPoisonPill));
658 // only for processing of builtins.
782 Handle<Code> code = Handle<Code>(isolate()->builtins()->builtin(
783 Builtins::kIllegal));
816 Handle<Code> code = Handle<Code>(isolate()->builtins()->builtin(
817 Builtins::kIllegal));
864 Handle<JSBuiltinsObject> builtins_global(native_context()->builtins());
872 // Set up the reference from the global object to the builtins object.
907 empty_function, Builtins::kIllegal);
913 Builtins::kArrayCode);
957 Builtins::kIllegal);
965 Builtins::kIllegal);
973 Builtins::kIllegal);
975 isolate->builtins()->builtin(Builtins::kStringConstructCode));
997 isolate->initial_object_prototype(), Builtins::kIllegal);
1006 Builtins::kIllegal);
1017 Builtins::kIllegal);
1119 Builtins::kIllegal);
1143 Builtins::kIllegal);
1149 isolate->initial_object_prototype(), Builtins::kIllegal);
1153 isolate->initial_object_prototype(), Builtins::kIllegal);
1187 isolate->initial_object_prototype(), Builtins::kIllegal);
1190 isolate->initial_object_prototype(), Builtins::kIllegal);
1197 Handle<Code> code(isolate->builtins()->builtin(Builtins::kIllegal));
1297 isolate->builtins()->builtin(Builtins::kIllegal));
1312 Handle<Code>(isolate->builtins()->builtin(
1313 Builtins::kHandleApiCallAsFunction));
1323 Handle<Code>(isolate->builtins()->builtin(
1324 Builtins::kHandleApiCallAsConstructor));
1345 isolate()->initial_object_prototype(), Builtins::kIllegal);
1363 Handle<JSObject> builtins(native_context()->builtins());
1369 Runtime::DefineObjectProperty(builtins, factory()->harmony_regexps_string(),
1458 ? top_context->builtins()
1502 Object::GetProperty(handle(native_context()->builtins()), var##_name) \
1594 Handle<JSBuiltinsObject> builtins,
1598 // An array constructor on the builtins object that works like
1601 // To be used only for internal work by builtins. Instances
1606 builtins, name, JS_ARRAY_TYPE, JSArray::kSize,
1607 prototype, Builtins::kInternalArrayCode);
1640 // Create a function for the builtins object. Allocate space for the
1641 // JavaScript builtins, a reference to the builtins object
1644 isolate()->builtins()->builtin(Builtins::kIllegal));
1650 factory()->InternalizeOneByteString(STATIC_CHAR_VECTOR("builtins"));
1655 // Allocate the builtins object.
1656 Handle<JSBuiltinsObject> builtins =
1658 builtins->set_builtins(*builtins);
1659 builtins->set_native_context(*native_context());
1660 builtins->set_global_context(*native_context());
1661 builtins->set_global_proxy(native_context()->global_proxy());
1664 // Set up the 'global' properties of the builtins object. The
1666 // way to get from code running in the builtins context to the
1673 JSObject::AddProperty(builtins, global_string, global_obj, attributes);
1675 factory()->InternalizeOneByteString(STATIC_CHAR_VECTOR("builtins"));
1676 JSObject::AddProperty(builtins, builtins_string, builtins, attributes);
1678 // Set up the reference from the global object to the builtins object.
1680 set_builtins(*builtins);
1686 // Allocate the builtins context.
1689 context->set_global_object(*builtins); // override builtins global object
1696 builtins, "Script", JS_VALUE_TYPE, JSValue::kSize,
1697 isolate()->initial_object_prototype(), Builtins::kIllegal);
1838 builtins, "OpaqueReference", JS_VALUE_TYPE, JSValue::kSize,
1839 isolate()->initial_object_prototype(), Builtins::kIllegal);
1853 InstallInternalArray(builtins, "InternalArray", FAST_HOLEY_ELEMENTS);
1858 InstallInternalArray(builtins, "InternalPackedArray", FAST_ELEMENTS);
1863 builtins, "SetIterator", JS_SET_ITERATOR_TYPE, JSSetIterator::kSize,
1864 isolate()->initial_object_prototype(), Builtins::kIllegal);
1871 builtins, "MapIterator", JS_MAP_ITERATOR_TYPE, JSMapIterator::kSize,
1872 isolate()->initial_object_prototype(), Builtins::kIllegal);
1878 // Create generator meta-objects and install them on the builtins object.
1879 Handle<JSObject> builtins(native_context()->builtins());
1883 InstallFunction(builtins, "GeneratorFunctionPrototype",
1885 generator_object_prototype, Builtins::kIllegal);
1886 InstallFunction(builtins, "GeneratorFunction", JS_FUNCTION_TYPE,
1888 Builtins::kIllegal);
1948 // functions on the builtins object after compiling and running
1950 if (!InstallJSBuiltins(builtins)) return false;
1975 MaybeHandle<JSObject>(), Builtins::kFunctionCall);
1978 MaybeHandle<JSObject>(), Builtins::kFunctionApply);
2091 builtins->ObjectVerify();
2229 JSObject::AddProperty(global, natives, handle(global->builtins()),
2236 handle(native_context->builtins(), isolate),
2401 bool Genesis::InstallJSBuiltins(Handle<JSBuiltinsObject> builtins) {
2403 for (int i = 0; i < Builtins::NumberOfJavaScriptBuiltins(); i++) {
2404 BuiltinsBuiltins::JavaScript>(i);
2406 isolate(), builtins, Builtins::GetName(id)).ToHandleChecked();
2408 builtins->set_javascript_builtin(id, *function);
2411 // builtins from full-codegen.
2416 builtins->set_javascript_builtin_code(id, function->shared()->code());
2576 // created with read-only prototype for JS builtins processing.
2644 native_context()->builtins()->set_global_proxy(
2690 Handle<JSBuiltinsObject> builtins(native_context()->builtins());
2691 Runtime::DefineObjectProperty(builtins, factory()->InternalizeOneByteString(
2705 builtins,