Chromium Code Reviews| Index: runtime/vm/stub_code.cc |
| =================================================================== |
| --- runtime/vm/stub_code.cc (revision 40325) |
| +++ runtime/vm/stub_code.cc (working copy) |
| @@ -118,8 +118,10 @@ |
| if (stub.IsNull()) { |
| Assembler assembler; |
| const char* name = cls.ToCString(); |
| - uword patch_code_offset = |
| - StubCode::GenerateAllocationStubForClass(&assembler, cls); |
| + uword patch_code_offset = 0;; |
|
koda
2014/09/16 22:01:30
Stray semicolon.
|
| + uword entry_patch_offset = 0; |
| + StubCode::GenerateAllocationStubForClass( |
| + &assembler, cls, &entry_patch_offset, &patch_code_offset); |
| stub ^= Code::FinalizeCode(name, &assembler); |
| stub.set_owner(cls); |
| cls.set_allocation_stub(stub); |
| @@ -129,7 +131,7 @@ |
| stub.Disassemble(&formatter); |
| OS::Print("}\n"); |
| } |
| - stub.set_entry_patch_pc_offset(0); |
| + stub.set_entry_patch_pc_offset(entry_patch_offset); |
| stub.set_patch_code_pc_offset(patch_code_offset); |
| } |
| return stub.raw(); |