Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 9c23c2c9670a448c820266086fd664e8bbf5af20..632899a214b056f0fe27d67c480ed2d0d81fb769 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -8185,13 +8185,10 @@ static void TrySettingInlineConstructStub(Isolate* isolate, |
prototype = Handle<Object>(function->instance_prototype(), isolate); |
} |
if (function->shared()->CanGenerateInlineConstructor(*prototype)) { |
- HandleScope scope(isolate); |
ConstructStubCompiler compiler(isolate); |
- MaybeObject* code = compiler.CompileConstructStub(*function); |
- if (!code->IsFailure()) { |
- function->shared()->set_construct_stub( |
- Code::cast(code->ToObjectUnchecked())); |
- } |
+ Handle<Code> code = compiler.CompileConstructStub(function); |
+ function->shared()->set_construct_stub( |
+ Code::cast(code->ToObjectUnchecked())); |
Kevin Millikin (Chromium)
2011/10/27 12:35:24
...->set_construct_stub(*code);
|
} |
} |