Lines Matching refs:isolate_

124     : isolate_(isolate),
129 extensions_cache_.Initialize(isolate_, create_heap_objects);
160 extensions_cache_.Initialize(isolate_, false); // Yes, symmetrical
174 Isolate* isolate() const { return isolate_; }
175 Factory* factory() const { return isolate_->factory(); }
176 Builtins* builtins() const { return isolate_->builtins(); }
177 Heap* heap() const { return isolate_->heap(); }
304 Isolate* isolate_;
327 HandleScope scope(isolate_);
330 Genesis genesis(isolate_, maybe_global_proxy, global_proxy_template,
339 isolate_->heap()->NotifyBootstrapComplete();
346 HandleScope scope(isolate_);
349 Genesis genesis(isolate_, maybe_global_proxy, global_proxy_template);
358 if (!FLAG_log_maps || isolate_->initialized_from_snapshot()) return;
362 LOG(isolate_, LogAllMaps());
721 Factory* factory = isolate_->factory();
785 Factory* factory = isolate_->factory();
827 Factory* factory = isolate_->factory();
834 isolate_, factory->Object_string(), JS_OBJECT_TYPE, instance_size,
862 Handle<Map> empty_function_map(empty_function->map(), isolate_);
872 Handle<Map> map(object_fun->initial_map(), isolate_);
919 isolate_->initial_object_prototype()->map().ptr());
1143 Map::Copy(isolate_, proxy_map, "callable Proxy");
1149 Map::Copy(isolate_, proxy_callable_map, "constructor Proxy");
1157 Map::EnsureDescriptorSlack(isolate_, map, 2);
1513 Factory* factory = isolate_->factory();
1561 Handle<JSFunction> object_function = isolate_->object_function();
1562 JSObject::AddProperty(isolate_, global_object, object_name, object_function,
1565 SimpleInstallFunction(isolate_, object_function, "assign",
1567 SimpleInstallFunction(isolate_, object_function, "getOwnPropertyDescriptor",
1569 SimpleInstallFunction(isolate_, object_function,
1572 SimpleInstallFunction(isolate_, object_function, "getOwnPropertyNames",
1574 SimpleInstallFunction(isolate_, object_function, "getOwnPropertySymbols",
1576 SimpleInstallFunction(isolate_, object_function, "is", Builtin::kObjectIs,
1578 SimpleInstallFunction(isolate_, object_function, "preventExtensions",
1580 SimpleInstallFunction(isolate_, object_function, "seal",
1583 SimpleInstallFunction(isolate_, object_function, "create",
1586 SimpleInstallFunction(isolate_, object_function, "defineProperties",
1589 SimpleInstallFunction(isolate_, object_function, "defineProperty",
1592 SimpleInstallFunction(isolate_, object_function, "freeze",
1595 SimpleInstallFunction(isolate_, object_function, "getPrototypeOf",
1597 SimpleInstallFunction(isolate_, object_function, "setPrototypeOf",
1600 SimpleInstallFunction(isolate_, object_function, "isExtensible",
1602 SimpleInstallFunction(isolate_, object_function, "isFrozen",
1605 SimpleInstallFunction(isolate_, object_function, "isSealed",
1608 SimpleInstallFunction(isolate_, object_function, "keys",
1610 SimpleInstallFunction(isolate_, object_function, "entries",
1612 SimpleInstallFunction(isolate_, object_function, "fromEntries",
1614 SimpleInstallFunction(isolate_, object_function, "values",
1617 SimpleInstallFunction(isolate_, isolate_->initial_object_prototype(),
1620 SimpleInstallFunction(isolate_, isolate_->initial_object_prototype(),
1623 SimpleInstallFunction(isolate_, isolate_->initial_object_prototype(),
1626 SimpleInstallFunction(isolate_, isolate_->initial_object_prototype(),
1629 SimpleInstallFunction(isolate_, isolate_->initial_object_prototype(),
1632 SimpleInstallFunction(isolate_, isolate_->initial_object_prototype(),
1636 isolate_, isolate_->initial_object_prototype(), "propertyIsEnumerable",
1639 isolate_, isolate_->initial_object_prototype(), "toString",
1643 isolate_, isolate_->initial_object_prototype(), "valueOf",
1648 isolate_, isolate_->initial_object_prototype(), factory->proto_string(),
1651 SimpleInstallFunction(isolate_, isolate_->initial_object_prototype(),
1661 InstallFunction(isolate_, global, "Function", JS_FUNCTION_TYPE,
1665 function_fun->set_prototype_or_initial_map(*isolate_->sloppy_function_map(),
1669 InstallWithIntrinsicDefaultProto(isolate_, function_fun,
1674 JSObject::AddProperty(isolate_, prototype, factory->constructor_string(),
1677 SimpleInstallFunction(isolate_, prototype, "apply",
1680 SimpleInstallFunction(isolate_, prototype, "bind",
1682 SimpleInstallFunction(isolate_, prototype, "call",
1685 SimpleInstallFunction(isolate_, prototype, "toString",
1691 isolate_, prototype, factory->has_instance_symbol(),
1698 isolate_->sloppy_function_map()->SetConstructor(*function_fun);
1699 isolate_->sloppy_function_with_name_map()->SetConstructor(*function_fun);
1700 isolate_->sloppy_function_with_readonly_prototype_map()->SetConstructor(
1703 isolate_->strict_function_map()->SetConstructor(*function_fun);
1704 isolate_->strict_function_with_name_map()->SetConstructor(*function_fun);
1705 isolate_->strict_function_with_readonly_prototype_map()->SetConstructor(
1708 isolate_->class_function_map()->SetConstructor(*function_fun);
1715 isolate_, global, "Array", JS_ARRAY_TYPE, JSArray::kHeaderSize, 0,
1716 isolate_->initial_object_prototype(), Builtin::kArrayConstructor);
1728 Map::EnsureDescriptorSlack(isolate_, initial_map, 1);
1740 InstallWithIntrinsicDefaultProto(isolate_, array_function,
1742 InstallSpeciesGetter(isolate_, array_function);
1747 InitializeJSArrayMaps(isolate_, native_context(), initial_map);
1758 InitializeJSArrayMaps(isolate_, native_context(),
1760 handle(array_function->initial_map(), isolate_));
1762 SimpleInstallFunction(isolate_, array_function, "isArray",
1764 SimpleInstallFunction(isolate_, array_function, "from", Builtin::kArrayFrom,
1766 SimpleInstallFunction(isolate_, array_function, "of", Builtin::kArrayOf, 0,
1768 SetConstructorInstanceType(isolate_, array_function,
1771 JSObject::AddProperty(isolate_, proto, factory->constructor_string(),
1774 SimpleInstallFunction(isolate_, proto, "concat",
1776 SimpleInstallFunction(isolate_, proto, "copyWithin",
1778 SimpleInstallFunction(isolate_, proto, "fill", Builtin::kArrayPrototypeFill,
1780 SimpleInstallFunction(isolate_, proto, "find", Builtin::kArrayPrototypeFind,
1782 SimpleInstallFunction(isolate_, proto, "findIndex",
1784 SimpleInstallFunction(isolate_, proto, "lastIndexOf",
1786 SimpleInstallFunction(isolate_, proto, "pop", Builtin::kArrayPrototypePop,
1788 SimpleInstallFunction(isolate_, proto, "push", Builtin::kArrayPrototypePush,
1790 SimpleInstallFunction(isolate_, proto, "reverse",
1792 SimpleInstallFunction(isolate_, proto, "shift",
1794 SimpleInstallFunction(isolate_, proto, "unshift",
1796 SimpleInstallFunction(isolate_, proto, "slice",
1798 SimpleInstallFunction(isolate_, proto, "sort", Builtin::kArrayPrototypeSort,
1800 SimpleInstallFunction(isolate_, proto, "splice",
1802 SimpleInstallFunction(isolate_, proto, "includes", Builtin::kArrayIncludes,
1804 SimpleInstallFunction(isolate_, proto, "indexOf", Builtin::kArrayIndexOf, 1,
1806 SimpleInstallFunction(isolate_, proto, "join", Builtin::kArrayPrototypeJoin,
1811 isolate_, proto, "keys", Builtin::kArrayPrototypeKeys, 0, true);
1815 isolate_, proto, "entries", Builtin::kArrayPrototypeEntries, 0, true);
1819 isolate_, proto, "values", Builtin::kArrayPrototypeValues, 0, true);
1820 JSObject::AddProperty(isolate_, proto, factory->iterator_symbol(), values,
1826 isolate_, proto, "forEach", Builtin::kArrayForEach, 1, false);
1828 SimpleInstallFunction(isolate_, proto, "filter", Builtin::kArrayFilter, 1,
1830 SimpleInstallFunction(isolate_, proto, "flat", Builtin::kArrayPrototypeFlat,
1832 SimpleInstallFunction(isolate_, proto, "flatMap",
1834 SimpleInstallFunction(isolate_, proto, "map", Builtin::kArrayMap, 1, false);
1835 SimpleInstallFunction(isolate_, proto, "every", Builtin::kArrayEvery, 1,
1837 SimpleInstallFunction(isolate_, proto, "some", Builtin::kArraySome, 1,
1839 SimpleInstallFunction(isolate_, proto, "reduce", Builtin::kArrayReduce, 1,
1841 SimpleInstallFunction(isolate_, proto, "reduceRight",
1843 SimpleInstallFunction(isolate_, proto, "toLocaleString",
1846 SimpleInstallFunction(isolate_, proto, "toString",
1850 InstallTrueValuedProperty(isolate_, unscopables, "copyWithin");
1851 InstallTrueValuedProperty(isolate_, unscopables, "entries");
1852 InstallTrueValuedProperty(isolate_, unscopables, "fill");
1853 InstallTrueValuedProperty(isolate_, unscopables, "find");
1854 InstallTrueValuedProperty(isolate_, unscopables, "findIndex");
1855 InstallTrueValuedProperty(isolate_, unscopables, "flat");
1856 InstallTrueValuedProperty(isolate_, unscopables, "flatMap");
1857 InstallTrueValuedProperty(isolate_, unscopables, "includes");
1858 InstallTrueValuedProperty(isolate_, unscopables, "keys");
1859 InstallTrueValuedProperty(isolate_, unscopables, "values");
1862 isolate_, proto, factory->unscopables_symbol(), unscopables,
1865 Handle<Map> map(proto->map(), isolate_);
1866 Map::SetShouldBeFastPrototypeMap(map, true, isolate_);
1874 factory->NewJSObject(isolate_->object_function(), AllocationType::kOld);
1878 isolate_->initial_object_prototype()->map().ptr());
1882 InstallToStringTag(isolate_, array_iterator_prototype,
1885 InstallFunctionWithBuiltinId(isolate_, array_iterator_prototype, "next",
1889 CreateFunction(isolate_, factory->ArrayIterator_string(),
1902 isolate_, global, "Number", JS_PRIMITIVE_WRAPPER_TYPE,
1904 isolate_->initial_object_prototype(), Builtin::kNumberConstructor);
1907 InstallWithIntrinsicDefaultProto(isolate_, number_fun,
1917 JSObject::AddProperty(isolate_, prototype, factory->constructor_string(),
1921 SimpleInstallFunction(isolate_, prototype, "toExponential",
1923 SimpleInstallFunction(isolate_, prototype, "toFixed",
1925 SimpleInstallFunction(isolate_, prototype, "toPrecision",
1927 SimpleInstallFunction(isolate_, prototype, "toString",
1929 SimpleInstallFunction(isolate_, prototype, "valueOf",
1932 SimpleInstallFunction(isolate_, prototype, "toLocaleString",
1936 SimpleInstallFunction(isolate_, number_fun, "isFinite",
1938 SimpleInstallFunction(isolate_, number_fun, "isInteger",
1940 SimpleInstallFunction(isolate_, number_fun, "isNaN", Builtin::kNumberIsNaN,
1942 SimpleInstallFunction(isolate_, number_fun, "isSafeInteger",
1947 SimpleInstallFunction(isolate_, number_fun, "parseFloat",
1949 JSObject::AddProperty(isolate_, global_object, "parseFloat",
1955 isolate_, number_fun, "parseInt", Builtin::kNumberParseInt, 2, true);
1956 JSObject::AddProperty(isolate_, global_object, "parseInt", parse_int_fun,
1965 InstallConstant(isolate_, number_fun, "MAX_VALUE",
1967 InstallConstant(isolate_, number_fun, "MIN_VALUE",
1969 InstallConstant(isolate_, number_fun, "NaN", factory->nan_value());
1970 InstallConstant(isolate_, number_fun, "NEGATIVE_INFINITY",
1972 InstallConstant(isolate_, number_fun, "POSITIVE_INFINITY",
1974 InstallConstant(isolate_, number_fun, "MAX_SAFE_INTEGER",
1976 InstallConstant(isolate_, number_fun, "MIN_SAFE_INTEGER",
1978 InstallConstant(isolate_, number_fun, "EPSILON", factory->NewNumber(kEPS));
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,
1989 isolate_->initial_object_prototype(), Builtin::kBooleanConstructor);
1992 InstallWithIntrinsicDefaultProto(isolate_, boolean_fun,
1998 prototype->set_value(ReadOnlyRoots(isolate_).false_value());
2002 JSObject::AddProperty(isolate_, prototype, factory->constructor_string(),
2006 SimpleInstallFunction(isolate_, prototype, "toString",
2008 SimpleInstallFunction(isolate_, prototype, "valueOf",
2014 isolate_, global, "String", JS_PRIMITIVE_WRAPPER_TYPE,
2016 isolate_->initial_object_prototype(), Builtin::kStringConstructor);
2019 InstallWithIntrinsicDefaultProto(isolate_, string_fun,
2025 Map::EnsureDescriptorSlack(isolate_, string_map, 1);
2037 SimpleInstallFunction(isolate_, string_fun, "fromCharCode",
2041 SimpleInstallFunction(isolate_, string_fun, "fromCodePoint",
2045 SimpleInstallFunction(isolate_, string_fun, "raw", Builtin::kStringRaw, 1,
2051 prototype->set_value(ReadOnlyRoots(isolate_).empty_string());
2056 JSObject::AddProperty(isolate_, prototype, factory->constructor_string(),
2060 SimpleInstallFunction(isolate_, prototype, "anchor",
2062 SimpleInstallFunction(isolate_, prototype, "big",
2064 SimpleInstallFunction(isolate_, prototype, "blink",
2066 SimpleInstallFunction(isolate_, prototype, "bold",
2068 SimpleInstallFunction(isolate_, prototype, "charAt",
2070 SimpleInstallFunction(isolate_, prototype, "charCodeAt",
2072 SimpleInstallFunction(isolate_, prototype, "codePointAt",
2074 SimpleInstallFunction(isolate_, prototype, "concat",
2076 SimpleInstallFunction(isolate_, prototype, "endsWith",
2078 SimpleInstallFunction(isolate_, prototype, "fontcolor",
2080 SimpleInstallFunction(isolate_, prototype, "fontsize",
2082 SimpleInstallFunction(isolate_, prototype, "fixed",
2084 SimpleInstallFunction(isolate_, prototype, "includes",
2086 SimpleInstallFunction(isolate_, prototype, "indexOf",
2088 SimpleInstallFunction(isolate_, prototype, "italics",
2090 SimpleInstallFunction(isolate_, prototype, "lastIndexOf",
2092 SimpleInstallFunction(isolate_, prototype, "link",
2095 SimpleInstallFunction(isolate_, prototype, "localeCompare",
2098 SimpleInstallFunction(isolate_, prototype, "localeCompare",
2101 SimpleInstallFunction(isolate_, prototype, "match",
2103 SimpleInstallFunction(isolate_, prototype, "matchAll",
2106 SimpleInstallFunction(isolate_, prototype, "normalize",
2109 SimpleInstallFunction(isolate_, prototype, "normalize",
2112 SimpleInstallFunction(isolate_, prototype, "padEnd",
2114 SimpleInstallFunction(isolate_, prototype, "padStart",
2116 SimpleInstallFunction(isolate_, prototype, "repeat",
2118 SimpleInstallFunction(isolate_, prototype, "replace",
2122 SimpleInstallFunction(isolate_, prototype, "search",
2124 SimpleInstallFunction(isolate_, prototype, "slice",
2126 SimpleInstallFunction(isolate_, prototype, "small",
2128 SimpleInstallFunction(isolate_, prototype, "split",
2130 SimpleInstallFunction(isolate_, prototype, "strike",
2132 SimpleInstallFunction(isolate_, prototype, "sub",
2134 SimpleInstallFunction(isolate_, prototype, "substr",
2136 SimpleInstallFunction(isolate_, prototype, "substring",
2138 SimpleInstallFunction(isolate_, prototype, "sup",
2140 SimpleInstallFunction(isolate_, prototype, "startsWith",
2142 SimpleInstallFunction(isolate_, prototype, "toString",
2144 SimpleInstallFunction(isolate_, prototype, "trim",
2149 SimpleInstallFunction(isolate_, prototype, "trimStart",
2151 JSObject::AddProperty(isolate_, prototype, "trimLeft", trim_start_fun,
2156 SimpleInstallFunction(isolate_, prototype, "trimEnd",
2158 JSObject::AddProperty(isolate_, prototype, "trimRight", trim_end_fun,
2161 SimpleInstallFunction(isolate_, prototype, "toLocaleLowerCase",
2163 SimpleInstallFunction(isolate_, prototype, "toLocaleUpperCase",
2166 SimpleInstallFunction(isolate_, prototype, "toLowerCase",
2168 SimpleInstallFunction(isolate_, prototype, "toUpperCase",
2171 SimpleInstallFunction(isolate_, prototype, "toLowerCase",
2173 SimpleInstallFunction(isolate_, prototype, "toUpperCase",
2176 SimpleInstallFunction(isolate_, prototype, "valueOf",
2180 isolate_, prototype, factory->iterator_symbol(), "[Symbol.iterator]",
2189 factory->NewJSObject(isolate_->object_function(), AllocationType::kOld);
2193 isolate_->initial_object_prototype()->map().ptr());
2196 InstallToStringTag(isolate_, string_iterator_prototype, "String Iterator");
2198 InstallFunctionWithBuiltinId(isolate_, string_iterator_prototype, "next",
2203 isolate_, factory->InternalizeUtf8String("StringIterator"),
2215 InstallFunction(isolate_, global, "Symbol", JS_PRIMITIVE_WRAPPER_TYPE,
2223 SimpleInstallFunction(isolate_, symbol_fun, "for", Builtin::kSymbolFor, 1,
2225 SimpleInstallFunction(isolate_, symbol_fun, "keyFor",
2229 InstallConstant(isolate_, symbol_fun, "asyncIterator",
2231 InstallConstant(isolate_, symbol_fun, "hasInstance",
2233 InstallConstant(isolate_, symbol_fun, "isConcatSpreadable",
2235 InstallConstant(isolate_, symbol_fun, "iterator",
2237 InstallConstant(isolate_, symbol_fun, "match", factory->match_symbol());
2238 InstallConstant(isolate_, symbol_fun, "matchAll",
2240 InstallConstant(isolate_, symbol_fun, "replace", factory->replace_symbol());
2241 InstallConstant(isolate_, symbol_fun, "search", factory->search_symbol());
2242 InstallConstant(isolate_, symbol_fun, "species", factory->species_symbol());
2243 InstallConstant(isolate_, symbol_fun, "split", factory->split_symbol());
2244 InstallConstant(isolate_, symbol_fun, "toPrimitive",
2246 InstallConstant(isolate_, symbol_fun, "toStringTag",
2248 InstallConstant(isolate_, symbol_fun, "unscopables",
2255 InstallToStringTag(isolate_, prototype, "Symbol");
2258 InstallFunctionWithBuiltinId(isolate_, prototype, "toString",
2260 InstallFunctionWithBuiltinId(isolate_, prototype, "valueOf",
2264 SimpleInstallGetter(isolate_, prototype,
2270 isolate_, prototype, factory->to_primitive_symbol(),
2277 isolate_, global, "Date", JS_DATE_TYPE, JSDate::kHeaderSize, 0,
2279 InstallWithIntrinsicDefaultProto(isolate_, date_fun,
2285 SimpleInstallFunction(isolate_, date_fun, "now", Builtin::kDateNow, 0,
2287 SimpleInstallFunction(isolate_, date_fun, "parse", Builtin::kDateParse, 1,
2289 SimpleInstallFunction(isolate_, date_fun, "UTC", Builtin::kDateUTC, 7,
2297 SimpleInstallFunction(isolate_, prototype, "toString",
2299 SimpleInstallFunction(isolate_, prototype, "toDateString",
2301 SimpleInstallFunction(isolate_, prototype, "toTimeString",
2303 SimpleInstallFunction(isolate_, prototype, "toISOString",
2306 SimpleInstallFunction(isolate_, prototype, "toUTCString",
2308 JSObject::AddProperty(isolate_, prototype, "toGMTString", to_utc_string,
2310 SimpleInstallFunction(isolate_, prototype, "getDate",
2312 SimpleInstallFunction(isolate_, prototype, "setDate",
2314 SimpleInstallFunction(isolate_, prototype, "getDay",
2316 SimpleInstallFunction(isolate_, prototype, "getFullYear",
2318 SimpleInstallFunction(isolate_, prototype, "setFullYear",
2320 SimpleInstallFunction(isolate_, prototype, "getHours",
2322 SimpleInstallFunction(isolate_, prototype, "setHours",
2324 SimpleInstallFunction(isolate_, prototype, "getMilliseconds",
2326 SimpleInstallFunction(isolate_, prototype, "setMilliseconds",
2328 SimpleInstallFunction(isolate_, prototype, "getMinutes",
2330 SimpleInstallFunction(isolate_, prototype, "setMinutes",
2332 SimpleInstallFunction(isolate_, prototype, "getMonth",
2334 SimpleInstallFunction(isolate_, prototype, "setMonth",
2336 SimpleInstallFunction(isolate_, prototype, "getSeconds",
2338 SimpleInstallFunction(isolate_, prototype, "setSeconds",
2340 SimpleInstallFunction(isolate_, prototype, "getTime",
2342 SimpleInstallFunction(isolate_, prototype, "setTime",
2344 SimpleInstallFunction(isolate_, prototype, "getTimezoneOffset",
2346 SimpleInstallFunction(isolate_, prototype, "getUTCDate",
2348 SimpleInstallFunction(isolate_, prototype, "setUTCDate",
2350 SimpleInstallFunction(isolate_, prototype, "getUTCDay",
2352 SimpleInstallFunction(isolate_, prototype, "getUTCFullYear",
2354 SimpleInstallFunction(isolate_, prototype, "setUTCFullYear",
2356 SimpleInstallFunction(isolate_, prototype, "getUTCHours",
2358 SimpleInstallFunction(isolate_, prototype, "setUTCHours",
2360 SimpleInstallFunction(isolate_, prototype, "getUTCMilliseconds",
2362 SimpleInstallFunction(isolate_, prototype, "setUTCMilliseconds",
2364 SimpleInstallFunction(isolate_, prototype, "getUTCMinutes",
2366 SimpleInstallFunction(isolate_, prototype, "setUTCMinutes",
2368 SimpleInstallFunction(isolate_, prototype, "getUTCMonth",
2370 SimpleInstallFunction(isolate_, prototype, "setUTCMonth",
2372 SimpleInstallFunction(isolate_, prototype, "getUTCSeconds",
2374 SimpleInstallFunction(isolate_, prototype, "setUTCSeconds",
2376 SimpleInstallFunction(isolate_, prototype, "valueOf",
2378 SimpleInstallFunction(isolate_, prototype, "getYear",
2380 SimpleInstallFunction(isolate_, prototype, "setYear",
2382 SimpleInstallFunction(isolate_, prototype, "toJSON",
2386 SimpleInstallFunction(isolate_, prototype, "toLocaleString",
2388 SimpleInstallFunction(isolate_, prototype, "toLocaleDateString",
2390 SimpleInstallFunction(isolate_, prototype, "toLocaleTimeString",
2394 SimpleInstallFunction(isolate_, prototype, "toLocaleString",
2396 SimpleInstallFunction(isolate_, prototype, "toLocaleDateString",
2398 SimpleInstallFunction(isolate_, prototype, "toLocaleTimeString",
2404 isolate_, prototype, factory->to_primitive_symbol(),
2411 isolate_, global, "Promise", JS_PROMISE_TYPE,
2414 InstallWithIntrinsicDefaultProto(isolate_, promise_fun,
2417 Handle<SharedFunctionInfo> shared(promise_fun->shared(), isolate_);
2421 InstallSpeciesGetter(isolate_, promise_fun);
2424 isolate_, promise_fun, "all", Builtin::kPromiseAll, 1, true);
2428 InstallFunctionWithBuiltinId(isolate_, promise_fun, "allSettled",
2433 isolate_, promise_fun, "any", Builtin::kPromiseAny, 1, true);
2436 InstallFunctionWithBuiltinId(isolate_, promise_fun, "race",
2439 InstallFunctionWithBuiltinId(isolate_, promise_fun, "resolve",
2442 InstallFunctionWithBuiltinId(isolate_, promise_fun, "reject",
2445 SetConstructorInstanceType(isolate_, promise_fun,
2453 InstallToStringTag(isolate_, prototype, factory->Promise_string());
2456 isolate_, prototype, "then", Builtin::kPromisePrototypeThen, 2, true);
2459 InstallFunctionWithBuiltinId(isolate_, prototype, "catch",
2462 InstallFunctionWithBuiltinId(isolate_, prototype, "finally",
2468 Map::SetShouldBeFastPrototypeMap(prototype_map, true, isolate_);
2470 isolate_->initial_object_prototype()->map().ptr());
2479 isolate_, global, "RegExp", JS_REG_EXP_TYPE,
2483 InstallWithIntrinsicDefaultProto(isolate_, regexp_fun,
2485 Handle<SharedFunctionInfo> shared(regexp_fun->shared(), isolate_);
2497 SimpleInstallFunction(isolate_, prototype, "exec",
2504 SimpleInstallGetter(isolate_, prototype, factory->dotAll_string(),
2506 SimpleInstallGetter(isolate_, prototype, factory->flags_string(),
2508 SimpleInstallGetter(isolate_, prototype, factory->global_string(),
2512 SimpleInstallGetter(isolate_, prototype, factory->ignoreCase_string(),
2514 SimpleInstallGetter(isolate_, prototype, factory->multiline_string(),
2516 SimpleInstallGetter(isolate_, prototype, factory->source_string(),
2518 SimpleInstallGetter(isolate_, prototype, factory->sticky_string(),
2520 SimpleInstallGetter(isolate_, prototype, factory->unicode_string(),
2523 SimpleInstallFunction(isolate_, prototype, "compile",
2525 SimpleInstallFunction(isolate_, prototype, "toString",
2527 SimpleInstallFunction(isolate_, prototype, "test",
2532 isolate_, prototype, factory->match_symbol(), "[Symbol.match]",
2541 isolate_, prototype, factory->match_all_symbol(),
2550 isolate_, prototype, factory->replace_symbol(), "[Symbol.replace]",
2559 isolate_, prototype, factory->search_symbol(), "[Symbol.search]",
2568 isolate_, prototype, factory->split_symbol(), "[Symbol.split]",
2576 Map::SetShouldBeFastPrototypeMap(prototype_map, true, isolate_);
2578 isolate_->initial_object_prototype()->map().ptr());
2589 InstallSpeciesGetter(isolate_, regexp_fun);
2593 SimpleInstallGetterSetter(isolate_, regexp_fun, factory->input_string(),
2596 SimpleInstallGetterSetter(isolate_, regexp_fun, "$_",
2600 SimpleInstallGetterSetter(isolate_, regexp_fun, "lastMatch",
2603 SimpleInstallGetterSetter(isolate_, regexp_fun, "$&",
2607 SimpleInstallGetterSetter(isolate_, regexp_fun, "lastParen",
2610 SimpleInstallGetterSetter(isolate_, regexp_fun, "$+",
2614 SimpleInstallGetterSetter(isolate_, regexp_fun, "leftContext",
2617 SimpleInstallGetterSetter(isolate_, regexp_fun, "$`",
2621 SimpleInstallGetterSetter(isolate_, regexp_fun, "rightContext",
2624 SimpleInstallGetterSetter(isolate_, regexp_fun, "$'",
2629 SimpleInstallGetterSetter(isolate_, regexp_fun, "$" #i, \
2643 SetConstructorInstanceType(isolate_, regexp_fun,
2651 Map::EnsureDescriptorSlack(isolate_, initial_map, 1);
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(),
2730 Handle<JSObject> dummy = factory->NewJSObject(isolate_->object_function());
2731 InstallError(isolate_, dummy, factory->CompileError_string(),
2735 InstallError(isolate_, dummy, factory->LinkError_string(),
2739 InstallError(isolate_, dummy, factory->RuntimeError_string(),
2743 InstallError(isolate_, dummy, factory->WebAssemblyException_string(),
2755 isolate_);
2756 JSObject::AddProperty(isolate_, global, factory->globalThis_string(),
2762 factory->NewJSObject(isolate_->object_function(), AllocationType::kOld);
2763 JSObject::AddProperty(isolate_, global, "JSON", json_object, DONT_ENUM);
2764 SimpleInstallFunction(isolate_, json_object, "parse", Builtin::kJsonParse,
2766 SimpleInstallFunction(isolate_, json_object, "stringify",
2768 InstallToStringTag(isolate_, json_object, "JSON");
2773 factory->NewJSObject(isolate_->object_function(), AllocationType::kOld);
2774 JSObject::AddProperty(isolate_, global, "Math", math, DONT_ENUM);
2775 SimpleInstallFunction(isolate_, math, "abs", Builtin::kMathAbs, 1, true);
2776 SimpleInstallFunction(isolate_, math, "acos", Builtin::kMathAcos, 1, true);
2777 SimpleInstallFunction(isolate_, math, "acosh", Builtin::kMathAcosh, 1,
2779 SimpleInstallFunction(isolate_, math, "asin", Builtin::kMathAsin, 1, true);
2780 SimpleInstallFunction(isolate_, math, "asinh", Builtin::kMathAsinh, 1,
2782 SimpleInstallFunction(isolate_, math, "atan", Builtin::kMathAtan, 1, true);
2783 SimpleInstallFunction(isolate_, math, "atanh", Builtin::kMathAtanh, 1,
2785 SimpleInstallFunction(isolate_, math, "atan2", Builtin::kMathAtan2, 2,
2787 SimpleInstallFunction(isolate_, math, "ceil", Builtin::kMathCeil, 1, true);
2788 SimpleInstallFunction(isolate_, math, "cbrt", Builtin::kMathCbrt, 1, true);
2789 SimpleInstallFunction(isolate_, math, "expm1", Builtin::kMathExpm1, 1,
2791 SimpleInstallFunction(isolate_, math, "clz32", Builtin::kMathClz32, 1,
2793 SimpleInstallFunction(isolate_, math, "cos", Builtin::kMathCos, 1, true);
2794 SimpleInstallFunction(isolate_, math, "cosh", Builtin::kMathCosh, 1, true);
2795 SimpleInstallFunction(isolate_, math, "exp", Builtin::kMathExp, 1, true);
2796 SimpleInstallFunction(isolate_, math, "floor", Builtin::kMathFloor, 1,
2798 SimpleInstallFunction(isolate_, math, "fround", Builtin::kMathFround, 1,
2800 SimpleInstallFunction(isolate_, math, "hypot", Builtin::kMathHypot, 2,
2802 SimpleInstallFunction(isolate_, math, "imul", Builtin::kMathImul, 2, true);
2803 SimpleInstallFunction(isolate_, math, "log", Builtin::kMathLog, 1, true);
2804 SimpleInstallFunction(isolate_, math, "log1p", Builtin::kMathLog1p, 1,
2806 SimpleInstallFunction(isolate_, math, "log2", Builtin::kMathLog2, 1, true);
2807 SimpleInstallFunction(isolate_, math, "log10", Builtin::kMathLog10, 1,
2809 SimpleInstallFunction(isolate_, math, "max", Builtin::kMathMax, 2, false);
2810 SimpleInstallFunction(isolate_, math, "min", Builtin::kMathMin, 2, false);
2811 SimpleInstallFunction(isolate_, math, "pow", Builtin::kMathPow, 2, true);
2812 SimpleInstallFunction(isolate_, math, "random", Builtin::kMathRandom, 0,
2814 SimpleInstallFunction(isolate_, math, "round", Builtin::kMathRound, 1,
2816 SimpleInstallFunction(isolate_, math, "sign", Builtin::kMathSign, 1, true);
2817 SimpleInstallFunction(isolate_, math, "sin", Builtin::kMathSin, 1, true);
2818 SimpleInstallFunction(isolate_, math, "sinh", Builtin::kMathSinh, 1, true);
2819 SimpleInstallFunction(isolate_, math, "sqrt", Builtin::kMathSqrt, 1, true);
2820 SimpleInstallFunction(isolate_, math, "tan", Builtin::kMathTan, 1, true);
2821 SimpleInstallFunction(isolate_, math, "tanh", Builtin::kMathTanh, 1, true);
2822 SimpleInstallFunction(isolate_, math, "trunc", Builtin::kMathTrunc, 1,
2828 InstallConstant(isolate_, math, "E", factory->NewNumber(kE));
2829 InstallConstant(isolate_, math, "LN10",
2831 InstallConstant(isolate_, math, "LN2",
2833 InstallConstant(isolate_, math, "LOG10E",
2835 InstallConstant(isolate_, math, "LOG2E",
2837 InstallConstant(isolate_, math, "PI", factory->NewNumber(kPI));
2838 InstallConstant(isolate_, math, "SQRT1_2",
2840 InstallConstant(isolate_, math, "SQRT2",
2842 InstallToStringTag(isolate_, math, "Math");
2848 factory->NewJSObject(isolate_->object_function(), AllocationType::kOld);
2849 JSObject::AddProperty(isolate_, global, "Intl", intl, DONT_ENUM);
2854 InstallToStringTag(isolate_, intl, "Intl");
2864 isolate_, intl, "DateTimeFormat", JS_DATE_TIME_FORMAT_TYPE,
2870 isolate_, date_time_format_constructor,
2878 JSObject::cast(date_time_format_constructor->prototype()), isolate_);
2880 InstallToStringTag(isolate_, prototype, "Intl.DateTimeFormat");
2882 SimpleInstallFunction(isolate_, prototype, "resolvedOptions",
2886 SimpleInstallFunction(isolate_, prototype, "formatToParts",
2890 SimpleInstallGetter(isolate_, prototype, factory->format_string(),
2893 SimpleInstallFunction(isolate_, prototype, "formatRange",
2896 SimpleInstallFunction(isolate_, prototype, "formatRangeToParts",
2903 isolate_, intl, "NumberFormat", JS_NUMBER_FORMAT_TYPE,
2909 isolate_, number_format_constructor,
2917 JSObject::cast(number_format_constructor->prototype()), isolate_);
2919 InstallToStringTag(isolate_, prototype, "Intl.NumberFormat");
2921 SimpleInstallFunction(isolate_, prototype, "resolvedOptions",
2925 SimpleInstallFunction(isolate_, prototype, "formatToParts",
2928 SimpleInstallGetter(isolate_, prototype, factory->format_string(),
2934 isolate_, intl, "Collator", JS_COLLATOR_TYPE, JSCollator::kHeaderSize,
2937 InstallWithIntrinsicDefaultProto(isolate_, collator_constructor,
2945 JSObject::cast(collator_constructor->prototype()), isolate_);
2947 InstallToStringTag(isolate_, prototype, "Intl.Collator");
2949 SimpleInstallFunction(isolate_, prototype, "resolvedOptions",
2953 SimpleInstallGetter(isolate_, prototype, factory->compare_string(),
2959 isolate_, intl, "v8BreakIterator", JS_V8_BREAK_ITERATOR_TYPE,
2965 isolate_, v8_break_iterator_constructor, "supportedLocalesOf",
2969 JSObject::cast(v8_break_iterator_constructor->prototype()), isolate_);
2971 InstallToStringTag(isolate_, prototype, factory->Object_string());
2973 SimpleInstallFunction(isolate_, prototype, "resolvedOptions",
2977 SimpleInstallGetter(isolate_, prototype, factory->adoptText_string(),
2980 SimpleInstallGetter(isolate_, prototype, factory->first_string(),
2983 SimpleInstallGetter(isolate_, prototype, factory->next_string(),
2986 SimpleInstallGetter(isolate_, prototype, factory->current_string(),
2989 SimpleInstallGetter(isolate_, prototype, factory->breakType_string(),
2995 isolate_, intl, "PluralRules", JS_PLURAL_RULES_TYPE,
3000 isolate_, plural_rules_constructor,
3008 JSObject::cast(plural_rules_constructor->prototype()), isolate_);
3010 InstallToStringTag(isolate_, prototype, "Intl.PluralRules");
3012 SimpleInstallFunction(isolate_, prototype, "resolvedOptions",
3016 SimpleInstallFunction(isolate_, prototype, "select",
3028 isolate_, relative_time_format_fun,
3061 isolate_, list_format_fun, Context::INTL_LIST_FORMAT_FUNCTION_INDEX);
3182 InstallWithIntrinsicDefaultProto(isolate_, segmenter_fun,
3218 InstallFunctionAtSymbol(isolate_, prototype, factory->iterator_symbol(),
3260 JSObject::AddProperty(isolate_, global, name, array_buffer_fun, DONT_ENUM);
3261 InstallWithIntrinsicDefaultProto(isolate_, array_buffer_fun,
3263 InstallSpeciesGetter(isolate_, array_buffer_fun);
3266 isolate_,
3277 InstallWithIntrinsicDefaultProto(isolate_, shared_array_buffer_fun,
3279 InstallSpeciesGetter(isolate_, shared_array_buffer_fun);
3284 factory->NewJSObject(isolate_->object_function(), AllocationType::kOld);
3287 SimpleInstallFunction(isolate_, atomics_object, "load",
3289 SimpleInstallFunction(isolate_, atomics_object, "store",
3291 SimpleInstallFunction(isolate_, atomics_object, "add", Builtin::kAtomicsAdd,
3293 SimpleInstallFunction(isolate_, atomics_object, "sub", Builtin::kAtomicsSub,
3295 SimpleInstallFunction(isolate_, atomics_object, "and", Builtin::kAtomicsAnd,
3297 SimpleInstallFunction(isolate_, atomics_object, "or", Builtin::kAtomicsOr,
3299 SimpleInstallFunction(isolate_, atomics_object, "xor", Builtin::kAtomicsXor,
3301 SimpleInstallFunction(isolate_, atomics_object, "exchange",
3303 SimpleInstallFunction(isolate_, atomics_object, "compareExchange",
3305 SimpleInstallFunction(isolate_, atomics_object, "isLockFree",
3307 SimpleInstallFunction(isolate_, atomics_object, "wait",
3311 SimpleInstallFunction(isolate_, atomics_object, "notify",
3317 isolate_, factory->InternalizeUtf8String("TypedArray"),
3322 InstallSpeciesGetter(isolate_, typed_array_fun);
3325 SimpleInstallFunction(isolate_, typed_array_fun, "of",
3327 SimpleInstallFunction(isolate_, typed_array_fun, "from",
3337 SimpleInstallGetter(isolate_, prototype, factory->buffer_string(),
3339 SimpleInstallGetter(isolate_, prototype, factory->byte_length_string(),
3341 SimpleInstallGetter(isolate_, prototype, factory->byte_offset_string(),
3343 SimpleInstallGetter(isolate_, prototype, factory->length_string(),
3345 SimpleInstallGetter(isolate_, prototype, factory->to_string_tag_symbol(),
3349 InstallFunctionWithBuiltinId(isolate_, prototype, "entries",
3352 InstallFunctionWithBuiltinId(isolate_, prototype, "keys",
3356 isolate_, prototype, "values", Builtin::kTypedArrayPrototypeValues, 0,
3358 JSObject::AddProperty(isolate_, prototype, factory->iterator_symbol(),
3362 SimpleInstallFunction(isolate_, prototype, "copyWithin",
3364 SimpleInstallFunction(isolate_, prototype, "every",
3366 SimpleInstallFunction(isolate_, prototype, "fill",
3368 SimpleInstallFunction(isolate_, prototype, "filter",
3370 SimpleInstallFunction(isolate_, prototype, "find",
3372 SimpleInstallFunction(isolate_, prototype, "findIndex",
3374 SimpleInstallFunction(isolate_, prototype, "forEach",
3376 SimpleInstallFunction(isolate_, prototype, "includes",
3378 SimpleInstallFunction(isolate_, prototype, "indexOf",
3380 SimpleInstallFunction(isolate_, prototype, "join",
3382 SimpleInstallFunction(isolate_, prototype, "lastIndexOf",
3384 SimpleInstallFunction(isolate_, prototype, "map",
3386 SimpleInstallFunction(isolate_, prototype, "reverse",
3388 SimpleInstallFunction(isolate_, prototype, "reduce",
3390 SimpleInstallFunction(isolate_, prototype, "reduceRight",
3392 SimpleInstallFunction(isolate_, prototype, "set",
3394 SimpleInstallFunction(isolate_, prototype, "slice",
3396 SimpleInstallFunction(isolate_, prototype, "some",
3398 SimpleInstallFunction(isolate_, prototype, "sort",
3400 SimpleInstallFunction(isolate_, prototype, "subarray",
3402 SimpleInstallFunction(isolate_, prototype, "toLocaleString",
3405 JSObject::AddProperty(isolate_, prototype, factory->toString_string(),
3415 InstallWithIntrinsicDefaultProto(isolate_, fun, \
3424 isolate_, global, "DataView", JS_DATA_VIEW_TYPE,
3427 InstallWithIntrinsicDefaultProto(isolate_, data_view_fun,
3436 InstallToStringTag(isolate_, prototype, "DataView");
3440 SimpleInstallGetter(isolate_, prototype, factory->buffer_string(),
3442 SimpleInstallGetter(isolate_, prototype, factory->byte_length_string(),
3444 SimpleInstallGetter(isolate_, prototype, factory->byte_offset_string(),
3447 SimpleInstallFunction(isolate_, prototype, "getInt8",
3449 SimpleInstallFunction(isolate_, prototype, "setInt8",
3451 SimpleInstallFunction(isolate_, prototype, "getUint8",
3453 SimpleInstallFunction(isolate_, prototype, "setUint8",
3455 SimpleInstallFunction(isolate_, prototype, "getInt16",
3457 SimpleInstallFunction(isolate_, prototype, "setInt16",
3459 SimpleInstallFunction(isolate_, prototype, "getUint16",
3461 SimpleInstallFunction(isolate_, prototype, "setUint16",
3463 SimpleInstallFunction(isolate_, prototype, "getInt32",
3465 SimpleInstallFunction(isolate_, prototype, "setInt32",
3467 SimpleInstallFunction(isolate_, prototype, "getUint32",
3469 SimpleInstallFunction(isolate_, prototype, "setUint32",
3471 SimpleInstallFunction(isolate_, prototype, "getFloat32",
3473 SimpleInstallFunction(isolate_, prototype, "setFloat32",
3475 SimpleInstallFunction(isolate_, prototype, "getFloat64",
3477 SimpleInstallFunction(isolate_, prototype, "setFloat64",
3479 SimpleInstallFunction(isolate_, prototype, "getBigInt64",
3481 SimpleInstallFunction(isolate_, prototype, "setBigInt64",
3483 SimpleInstallFunction(isolate_, prototype, "getBigUint64",
3485 SimpleInstallFunction(isolate_, prototype, "setBigUint64",
3491 isolate_, global, "Map", JS_MAP_TYPE, JSMap::kHeaderSize, 0,
3493 InstallWithIntrinsicDefaultProto(isolate_, js_map_fun,
3496 Handle<SharedFunctionInfo> shared(js_map_fun->shared(), isolate_);
3504 InstallToStringTag(isolate_, prototype, factory->Map_string());
3507 isolate_, prototype, "get", Builtin::kMapPrototypeGet, 1, true);
3511 isolate_, prototype, "set", Builtin::kMapPrototypeSet, 2, true);
3518 isolate_, prototype, "has", Builtin::kMapPrototypeHas, 1, true);
3522 isolate_, prototype, "delete", Builtin::kMapPrototypeDelete, 1, true);
3525 SimpleInstallFunction(isolate_, prototype, "clear",
3528 isolate_, prototype, "entries", Builtin::kMapPrototypeEntries, 0, true);
3529 JSObject::AddProperty(isolate_, prototype, factory->iterator_symbol(),
3531 SimpleInstallFunction(isolate_, prototype, "forEach",
3533 SimpleInstallFunction(isolate_, prototype, "keys",
3535 SimpleInstallGetter(isolate_, prototype,
3538 SimpleInstallFunction(isolate_, prototype, "values",
3543 InstallSpeciesGetter(isolate_, js_map_fun);
3552 InstallFunction(isolate_, global, "BigInt", JS_PRIMITIVE_WRAPPER_TYPE,
3557 InstallWithIntrinsicDefaultProto(isolate_, bigint_fun,
3562 SimpleInstallFunction(isolate_, bigint_fun, "asUintN",
3565 SimpleInstallFunction(isolate_, bigint_fun, "asIntN",
3570 isolate_);
3576 SimpleInstallFunction(isolate_, prototype, "toLocaleString",
3579 SimpleInstallFunction(isolate_, prototype, "toString",
3582 SimpleInstallFunction(isolate_, prototype, "valueOf",
3585 InstallToStringTag(isolate_, prototype, factory->BigInt_string());
3590 isolate_, global, "Set", JS_SET_TYPE, JSSet::kHeaderSize, 0,
3592 InstallWithIntrinsicDefaultProto(isolate_, js_set_fun,
3595 Handle<SharedFunctionInfo> shared(js_set_fun->shared(), isolate_);
3603 InstallToStringTag(isolate_, prototype, factory->Set_string());
3606 isolate_, prototype, "has", Builtin::kSetPrototypeHas, 1, true);
3610 isolate_, prototype, "add", Builtin::kSetPrototypeAdd, 1, true);
3617 isolate_, prototype, "delete", Builtin::kSetPrototypeDelete, 1, true);
3620 SimpleInstallFunction(isolate_, prototype, "clear",
3622 SimpleInstallFunction(isolate_, prototype, "entries",
3624 SimpleInstallFunction(isolate_, prototype, "forEach",
3626 SimpleInstallGetter(isolate_, prototype,
3630 isolate_, prototype, "values", Builtin::kSetPrototypeValues, 0, true);
3631 JSObject::AddProperty(isolate_, prototype, factory->keys_string(), values,
3633 JSObject::AddProperty(isolate_, prototype, factory->iterator_symbol(),
3639 InstallSpeciesGetter(isolate_, js_set_fun);
3645 isolate_->initial_object_prototype()->map().ptr());
3654 Map::SetPrototype(isolate(), map, isolate_->factory()->null_value());
3655 Map::EnsureDescriptorSlack(isolate_, map, 1);
3697 isolate_, global, "WeakMap", JS_WEAK_MAP_TYPE, JSWeakMap::kHeaderSize,
3699 InstallWithIntrinsicDefaultProto(isolate_, cons,
3702 Handle<SharedFunctionInfo> shared(cons->shared(), isolate_);
3711 SimpleInstallFunction(isolate_, prototype, "delete",
3716 isolate_, prototype, "get", Builtin::kWeakMapGet, 1, true);
3720 isolate_, prototype, "set", Builtin::kWeakMapPrototypeSet, 2, true);
3726 SimpleInstallFunction(isolate_, prototype, "has",
3729 InstallToStringTag(isolate_, prototype, "WeakMap");
3736 isolate_, global, "WeakSet", JS_WEAK_SET_TYPE, JSWeakSet::kHeaderSize,
3738 InstallWithIntrinsicDefaultProto(isolate_, cons,
3741 Handle<SharedFunctionInfo> shared(cons->shared(), isolate_);
3749 SimpleInstallFunction(isolate_, prototype, "delete",
3751 SimpleInstallFunction(isolate_, prototype, "has",
3755 isolate_, prototype, "add", Builtin::kWeakSetPrototypeAdd, 1, true);
3762 InstallToStringTag(isolate_, prototype,
3773 isolate_, isolate_->strict_function_without_prototype_map(), "Proxy");
3780 isolate_->proxy_map()->SetConstructor(*proxy_function);
3787 JSObject::AddProperty(isolate_, global, name, proxy_function, DONT_ENUM);
3791 SimpleInstallFunction(isolate_, proxy_function, "revocable",
3798 factory->NewJSObject(isolate_->object_function(), AllocationType::kOld);
3799 JSObject::AddProperty(isolate_, global, reflect_string, reflect, DONT_ENUM);
3800 InstallToStringTag(isolate_, reflect, reflect_string);
3802 SimpleInstallFunction(isolate_, reflect, "defineProperty",
3805 SimpleInstallFunction(isolate_, reflect, "deleteProperty",
3809 isolate_, reflect, "apply", Builtin::kReflectApply, 3, false);
3813 isolate_, reflect, "construct", Builtin::kReflectConstruct, 2, false);
3816 SimpleInstallFunction(isolate_, reflect, "get", Builtin::kReflectGet, 2,
3818 SimpleInstallFunction(isolate_, reflect, "getOwnPropertyDescriptor",
3820 SimpleInstallFunction(isolate_, reflect, "getPrototypeOf",
3822 SimpleInstallFunction(isolate_, reflect, "has", Builtin::kReflectHas, 2,
3824 SimpleInstallFunction(isolate_, reflect, "isExtensible",
3826 SimpleInstallFunction(isolate_, reflect, "ownKeys",
3828 SimpleInstallFunction(isolate_, reflect, "preventExtensions",
3830 SimpleInstallFunction(isolate_, reflect, "set", Builtin::kReflectSet, 3,
3832 SimpleInstallFunction(isolate_, reflect, "setPrototypeOf",
3846 Map::EnsureDescriptorSlack(isolate_, map, 2);
3869 map = Map::Copy(isolate_, map, "IsConstructor");
3876 isolate_, global, factory->FinalizationRegistry_string(),
3880 isolate_, finalization_registry_fun,
3890 InstallToStringTag(isolate_, finalization_registry_prototype,
3893 SimpleInstallFunction(isolate_, finalization_registry_prototype, "register",
3896 SimpleInstallFunction(isolate_, finalization_registry_prototype,
3905 isolate_, factory->InternalizeUtf8String("cleanupSome"),
3912 isolate_, global, "WeakRef", JS_WEAK_REF_TYPE, JSWeakRef::kHeaderSize,
3914 InstallWithIntrinsicDefaultProto(isolate_, weak_ref_fun,
3923 InstallToStringTag(isolate_, weak_ref_prototype, factory->WeakRef_string());
3925 SimpleInstallFunction(isolate_, weak_ref_prototype, "deref",
3938 Map::EnsureDescriptorSlack(isolate_, map, 2);
3963 Handle<Map> map = isolate_->sloppy_arguments_map();
3964 map = Map::Copy(isolate_, map, "FastAliasedArguments");
3969 map = Map::Copy(isolate_, map, "SlowAliasedArguments");
3993 Map::EnsureDescriptorSlack(isolate_, map, 2);
4010 *isolate_->initial_object_prototype());
4011 Map::SetPrototype(isolate(), map, isolate_->initial_object_prototype());
4026 isolate_, factory->empty_string(), JS_CONTEXT_EXTENSION_OBJECT_TYPE,
4034 SimpleCreateFunction(isolate_, factory->empty_string(),
4042 SimpleCreateFunction(isolate_, factory->empty_string(),
4079 SetConstructorInstanceType(isolate_, result, constructor_type);
4090 isolate_->initial_object_prototype()->map().ptr());
4169 Isolate* isolate = isolate_;
4246 isolate_->initial_object_prototype()->map().ptr());
4279 isolate_->initial_object_prototype()->map().ptr());
4409 Factory* factory = isolate_->factory();
4414 Handle<NativeContext> context(isolate_->native_context());
4422 Handle<JSObject> empty = factory->NewJSObject(isolate_->object_function());
4428 JSObject::AddProperty(isolate_, extras_binding, name, console, DONT_ENUM);
4430 JSObject::AddProperty(isolate_, global, name, console, DONT_ENUM);
4432 SimpleInstallFunction(isolate_, console, "debug", Builtin::kConsoleDebug, 0,
4434 SimpleInstallFunction(isolate_, console, "error", Builtin::kConsoleError, 0,
4436 SimpleInstallFunction(isolate_, console, "info", Builtin::kConsoleInfo, 0,
4438 SimpleInstallFunction(isolate_, console, "log", Builtin::kConsoleLog, 0,
4440 SimpleInstallFunction(isolate_, console, "warn", Builtin::kConsoleWarn, 0,
4442 SimpleInstallFunction(isolate_, console, "dir", Builtin::kConsoleDir, 0,
4444 SimpleInstallFunction(isolate_, console, "dirxml", Builtin::kConsoleDirXml, 0,
4446 SimpleInstallFunction(isolate_, console, "table", Builtin::kConsoleTable, 0,
4448 SimpleInstallFunction(isolate_, console, "trace", Builtin::kConsoleTrace, 0,
4450 SimpleInstallFunction(isolate_, console, "group", Builtin::kConsoleGroup, 0,
4452 SimpleInstallFunction(isolate_, console, "groupCollapsed",
4454 SimpleInstallFunction(isolate_, console, "groupEnd",
4456 SimpleInstallFunction(isolate_, console, "clear", Builtin::kConsoleClear, 0,
4458 SimpleInstallFunction(isolate_, console, "count", Builtin::kConsoleCount, 0,
4460 SimpleInstallFunction(isolate_, console, "countReset",
4462 SimpleInstallFunction(isolate_, console, "assert",
4464 SimpleInstallFunction(isolate_, console, "profile", Builtin::kConsoleProfile,
4466 SimpleInstallFunction(isolate_, console, "profileEnd",
4468 SimpleInstallFunction(isolate_, console, "time", Builtin::kConsoleTime, 0,
4470 SimpleInstallFunction(isolate_, console, "timeLog", Builtin::kConsoleTimeLog,
4472 SimpleInstallFunction(isolate_, console, "timeEnd", Builtin::kConsoleTimeEnd,
4474 SimpleInstallFunction(isolate_, console, "timeStamp",
4476 SimpleInstallFunction(isolate_, console, "context", Builtin::kConsoleContext,
4478 InstallToStringTag(isolate_, console, "Object");
4503 InstallFunction(isolate_, global, "ShadowRealm", JS_SHADOW_REALM_TYPE,
4513 InstallToStringTag(isolate_, prototype, factory->ShadowRealm_string());
4515 SimpleInstallFunction(isolate_, prototype, "evaluate",
4517 SimpleInstallFunction(isolate_, prototype, "importValue",
4532 Map::EnsureDescriptorSlack(isolate_, map, 2);
4584 SimpleInstallFunction(isolate_, array_prototype, "findLast",
4586 SimpleInstallFunction(isolate_, array_prototype, "findLastIndex",
4594 InstallTrueValuedProperty(isolate_, unscopables, "findLast");
4595 InstallTrueValuedProperty(isolate_, unscopables, "findLastIndex");
4601 SimpleInstallFunction(isolate_, prototype, "findLast",
4603 SimpleInstallFunction(isolate_, prototype, "findLastIndex",
4616 SimpleInstallFunction(isolate_, array_prototype, "groupBy",
4618 SimpleInstallFunction(isolate_, array_prototype, "groupByToMap",
4626 InstallTrueValuedProperty(isolate_, unscopables, "groupBy");
4627 InstallTrueValuedProperty(isolate_, unscopables, "groupByToMap");
4633 Handle<JSFunction> object_function = isolate_->object_function();
4634 SimpleInstallFunction(isolate_, object_function, "hasOwn",
4646 JSObject::AddProperty(isolate_, global, "SharedArrayBuffer",
4655 JSObject::AddProperty(isolate_, global, "Atomics",
4657 InstallToStringTag(isolate_, isolate()->atomics_object(), "Atomics");
4763 factory()->NewJSObject(isolate_->object_function(), AllocationType::kOld);
4765 JSObject::AddProperty(isolate_, global, "Temporal", temporal, DONT_ENUM);
4770 InstallToStringTag(isolate_, temporal, "Temporal");
4774 Handle<JSObject> now = factory()->NewJSObject(isolate_->object_function(),
4776 JSObject::AddProperty(isolate_, temporal, "Now", now, DONT_ENUM);
4777 InstallToStringTag(isolate_, now, "Temporal.Now");
4806 InstallWithIntrinsicDefaultProto(isolate_, obj_func, \
4848 SimpleInstallGetter(isolate(), prototype, isolate_->factory()->p##_string(), \
4912 SimpleInstallGetter(isolate(), prototype, isolate_->factory()->p##_string(), \
4981 SimpleInstallGetter(isolate(), prototype, isolate_->factory()->p##_string(), \
5066 SimpleInstallGetter(isolate(), prototype, isolate_->factory()->p##_string(), \
5130 SimpleInstallGetter(isolate(), prototype, isolate_->factory()->p##_string(), \
5179 SimpleInstallGetter(isolate(), prototype, isolate_->factory()->p##_string(), \
5235 SimpleInstallGetter(isolate(), prototype, isolate_->factory()->p##_string(), \
5279 SimpleInstallGetter(isolate(), prototype, isolate_->factory()->p##_string(), \
5391 isolate_,
5400 isolate_,
5888 if (isolate_->serializer_enabled()) return true;
5890 SaveAndSwitchContext saved_context(isolate_, *native_context);
5891 return Genesis::InstallExtensions(isolate_, native_context, extensions) &&
5892 Genesis::InstallSpecialObjects(isolate_, native_context);
6292 : isolate_(isolate), active_(isolate->bootstrapper()) {
6431 : isolate_(isolate), active_(isolate->bootstrapper()) {