| Index: src/code-stubs.cc
|
| ===================================================================
|
| --- src/code-stubs.cc (revision 5559)
|
| +++ src/code-stubs.cc (working copy)
|
| @@ -138,9 +138,11 @@
|
| Code::Flags flags = Code::ComputeFlags(
|
| static_cast<Code::Kind>(GetCodeKind()),
|
| InLoop(),
|
| + Object* new_object;
|
| + { TryAllocation t = Heap::CreateCode(desc, flags, masm.CodeObject());
|
| + if (!t->ToObject(&new_object)) return t;
|
| + }
|
| GetICState());
|
| - Object* new_object = Heap::CreateCode(desc, flags, masm.CodeObject());
|
| - if (new_object->IsFailure()) return new_object;
|
| code = Code::cast(new_object);
|
| RecordCodeGeneration(code, &masm);
|
|
|
|
|