Index: src/runtime.cc |
=================================================================== |
--- src/runtime.cc (revision 5878) |
+++ src/runtime.cc (working copy) |
@@ -6392,7 +6392,7 @@ |
} |
if (function->shared()->CanGenerateInlineConstructor(*prototype)) { |
ConstructStubCompiler compiler; |
- MaybeObject* code = compiler.CompileConstructStub(function->shared()); |
+ MaybeObject* code = compiler.CompileConstructStub(*function); |
if (!code->IsFailure()) { |
function->shared()->set_construct_stub( |
Code::cast(code->ToObjectUnchecked())); |
@@ -6460,7 +6460,6 @@ |
// track one initial_map at a time, so we force the completion before the |
// function is called as a constructor for the first time. |
shared->CompleteInobjectSlackTracking(); |
- TrySettingInlineConstructStub(function); |
} |
bool first_allocation = !shared->live_objects_may_exist(); |