| Index: src/bootstrapper.cc
|
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
|
| index 52370bdbee846015e1e33fea8b9f0f624b8154d9..8a96ac0412952df70157ca93263aee63de0e4703 100644
|
| --- a/src/bootstrapper.cc
|
| +++ b/src/bootstrapper.cc
|
| @@ -1127,8 +1127,8 @@
|
| CacheInitialJSArrayMaps(native_context(), initial_strong_map);
|
|
|
| SimpleInstallFunction(array_function,
|
| - isolate->factory()->InternalizeUtf8String("isArray"),
|
| - Builtins::kArrayIsArray, 1, true);
|
| + factory->NewStringFromAsciiChecked("isArray"),
|
| + Builtins::kArrayIsArray, 1, true);
|
| }
|
|
|
| { // --- N u m b e r ---
|
| @@ -1232,62 +1232,6 @@
|
| initial_map->set_unused_property_fields(0);
|
| initial_map->set_instance_size(initial_map->instance_size() +
|
| num_fields * kPointerSize);
|
| - }
|
| -
|
| - { // -- E r r o r
|
| - Handle<JSFunction> error_fun = InstallFunction(
|
| - global, "Error", JS_OBJECT_TYPE, JSObject::kHeaderSize,
|
| - isolate->initial_object_prototype(), Builtins::kIllegal);
|
| - InstallWithIntrinsicDefaultProto(isolate, error_fun,
|
| - Context::ERROR_FUNCTION_INDEX);
|
| - }
|
| -
|
| - { // -- E v a l E r r o r
|
| - Handle<JSFunction> eval_error_fun = InstallFunction(
|
| - global, "EvalError", JS_OBJECT_TYPE, JSObject::kHeaderSize,
|
| - isolate->initial_object_prototype(), Builtins::kIllegal);
|
| - InstallWithIntrinsicDefaultProto(isolate, eval_error_fun,
|
| - Context::EVAL_ERROR_FUNCTION_INDEX);
|
| - }
|
| -
|
| - { // -- R a n g e E r r o r
|
| - Handle<JSFunction> range_error_fun = InstallFunction(
|
| - global, "RangeError", JS_OBJECT_TYPE, JSObject::kHeaderSize,
|
| - isolate->initial_object_prototype(), Builtins::kIllegal);
|
| - InstallWithIntrinsicDefaultProto(isolate, range_error_fun,
|
| - Context::RANGE_ERROR_FUNCTION_INDEX);
|
| - }
|
| -
|
| - { // -- R e f e r e n c e E r r o r
|
| - Handle<JSFunction> reference_error_fun = InstallFunction(
|
| - global, "ReferenceError", JS_OBJECT_TYPE, JSObject::kHeaderSize,
|
| - isolate->initial_object_prototype(), Builtins::kIllegal);
|
| - InstallWithIntrinsicDefaultProto(isolate, reference_error_fun,
|
| - Context::REFERENCE_ERROR_FUNCTION_INDEX);
|
| - }
|
| -
|
| - { // -- S y n t a x E r r o r
|
| - Handle<JSFunction> syntax_error_fun = InstallFunction(
|
| - global, "SyntaxError", JS_OBJECT_TYPE, JSObject::kHeaderSize,
|
| - isolate->initial_object_prototype(), Builtins::kIllegal);
|
| - InstallWithIntrinsicDefaultProto(isolate, syntax_error_fun,
|
| - Context::SYNTAX_ERROR_FUNCTION_INDEX);
|
| - }
|
| -
|
| - { // -- T y p e E r r o r
|
| - Handle<JSFunction> type_error_fun = InstallFunction(
|
| - global, "TypeError", JS_OBJECT_TYPE, JSObject::kHeaderSize,
|
| - isolate->initial_object_prototype(), Builtins::kIllegal);
|
| - InstallWithIntrinsicDefaultProto(isolate, type_error_fun,
|
| - Context::TYPE_ERROR_FUNCTION_INDEX);
|
| - }
|
| -
|
| - { // -- U R I E r r o r
|
| - Handle<JSFunction> uri_error_fun = InstallFunction(
|
| - global, "URIError", JS_OBJECT_TYPE, JSObject::kHeaderSize,
|
| - isolate->initial_object_prototype(), Builtins::kIllegal);
|
| - InstallWithIntrinsicDefaultProto(isolate, uri_error_fun,
|
| - Context::URI_ERROR_FUNCTION_INDEX);
|
| }
|
|
|
| // Initialize the embedder data slot.
|
| @@ -2720,7 +2664,8 @@
|
| Handle<JSGlobalObject> global(JSGlobalObject::cast(
|
| native_context->global_object()));
|
|
|
| - Handle<JSObject> Error = isolate->error_function();
|
| + Handle<JSObject> Error = Handle<JSObject>::cast(
|
| + Object::GetProperty(isolate, global, "Error").ToHandleChecked());
|
| Handle<String> name =
|
| factory->InternalizeOneByteString(STATIC_CHAR_VECTOR("stackTraceLimit"));
|
| Handle<Smi> stack_trace_limit(Smi::FromInt(FLAG_stack_trace_limit), isolate);
|
|
|