Commit 52b2aa6d authored by jgruber's avatar jgruber Committed by Commit Bot

[builtins] Mark ObjectConstructor eager

TBR=yangguo@chromium.org,verwaest@chromium.org

Bug: v8:6624,v8:6787
Change-Id: I6fbad17cb2e9d6238b84fc96a518e545a7156769
Reviewed-on: https://chromium-review.googlesource.com/655168
Commit-Queue: Jakob Gruber <jgruber@chromium.org>
Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
Cr-Commit-Position: refs/heads/master@{#47891}
parent ab43c76d
...@@ -696,7 +696,7 @@ void Genesis::CreateObjectFunction(Handle<JSFunction> empty_function) { ...@@ -696,7 +696,7 @@ void Genesis::CreateObjectFunction(Handle<JSFunction> empty_function) {
factory->null_value(), Builtins::kObjectConstructor); factory->null_value(), Builtins::kObjectConstructor);
object_fun->shared()->set_length(1); object_fun->shared()->set_length(1);
object_fun->shared()->DontAdaptArguments(); object_fun->shared()->DontAdaptArguments();
object_fun->shared()->set_construct_stub( object_fun->shared()->SetConstructStub(
*BUILTIN_CODE(isolate_, ObjectConstructor_ConstructStub)); *BUILTIN_CODE(isolate_, ObjectConstructor_ConstructStub));
native_context()->set_object_function(*object_fun); native_context()->set_object_function(*object_fun);
...@@ -1240,7 +1240,7 @@ static void InstallError(Isolate* isolate, Handle<JSObject> global, ...@@ -1240,7 +1240,7 @@ static void InstallError(Isolate* isolate, Handle<JSObject> global,
factory->the_hole_value(), Builtins::kErrorConstructor, DONT_ENUM); factory->the_hole_value(), Builtins::kErrorConstructor, DONT_ENUM);
error_fun->shared()->set_instance_class_name(*factory->Error_string()); error_fun->shared()->set_instance_class_name(*factory->Error_string());
error_fun->shared()->DontAdaptArguments(); error_fun->shared()->DontAdaptArguments();
error_fun->shared()->set_construct_stub( error_fun->shared()->SetConstructStub(
*BUILTIN_CODE(isolate, ErrorConstructor)); *BUILTIN_CODE(isolate, ErrorConstructor));
error_fun->shared()->set_length(1); error_fun->shared()->set_length(1);
......
...@@ -257,6 +257,7 @@ bool Builtins::IsLazy(int index) { ...@@ -257,6 +257,7 @@ bool Builtins::IsLazy(int index) {
case kInterpreterEnterBytecodeAdvance: case kInterpreterEnterBytecodeAdvance:
case kInterpreterEnterBytecodeDispatch: case kInterpreterEnterBytecodeDispatch:
case kInterpreterEntryTrampoline: case kInterpreterEntryTrampoline:
case kObjectConstructor_ConstructStub: // https://crbug.com/v8/6787.
case kProxyConstructor_ConstructStub: // https://crbug.com/v8/6787. case kProxyConstructor_ConstructStub: // https://crbug.com/v8/6787.
case kProxyConstructor: // https://crbug.com/v8/6787. case kProxyConstructor: // https://crbug.com/v8/6787.
case kThrowWasmTrapDivByZero: // Required by wasm. case kThrowWasmTrapDivByZero: // Required by wasm.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment