Index: src/ia32/assembler-ia32.cc |
=================================================================== |
--- src/ia32/assembler-ia32.cc (revision 5696) |
+++ src/ia32/assembler-ia32.cc (working copy) |
@@ -120,10 +120,15 @@ |
CodeDesc desc; |
assm.GetCode(&desc); |
- Object* code = Heap::CreateCode(desc, |
- Code::ComputeFlags(Code::STUB), |
- Handle<Code>::null()); |
+ |
+ Object* code; |
+ { MaybeObject* maybe_code = Heap::CreateCode(desc, |
+ Code::ComputeFlags(Code::STUB), |
+ Handle<Code>::null()); |
+ if (!maybe_code->ToObject(&code)) return; |
+ } |
if (!code->IsCode()) return; |
+ |
PROFILE(CodeCreateEvent(Logger::BUILTIN_TAG, |
Code::cast(code), "CpuFeatures::Probe")); |
typedef uint64_t (*F0)(); |