Index: src/x64/assembler-x64.cc |
=================================================================== |
--- src/x64/assembler-x64.cc (revision 5696) |
+++ src/x64/assembler-x64.cc (working copy) |
@@ -118,9 +118,11 @@ |
CodeDesc desc; |
assm.GetCode(&desc); |
- Object* code = Heap::CreateCode(desc, |
- Code::ComputeFlags(Code::STUB), |
- Handle<Object>()); |
+ MaybeObject* maybe_code = Heap::CreateCode(desc, |
+ Code::ComputeFlags(Code::STUB), |
+ Handle<Object>()); |
+ Object* code; |
+ if (!maybe_code->ToObject(&code)) return; |
if (!code->IsCode()) return; |
PROFILE(CodeCreateEvent(Logger::BUILTIN_TAG, |
Code::cast(code), "CpuFeatures::Probe")); |