Index: runtime/vm/stub_code.cc |
diff --git a/runtime/vm/stub_code.cc b/runtime/vm/stub_code.cc |
index 486531a327fd6d00d69afe28b076a9c2fc17983e..4f7cda6adfc71b96acffe53e35e07f9cab48101a 100644 |
--- a/runtime/vm/stub_code.cc |
+++ b/runtime/vm/stub_code.cc |
@@ -85,10 +85,7 @@ RawCode* StubCode::GetAllocationStubForClass(const Class& cls) { |
if (stub.IsNull()) { |
Assembler assembler; |
const char* name = cls.ToCString(); |
- uword patch_code_offset = 0; |
- uword entry_patch_offset = 0; |
- StubCode::GenerateAllocationStubForClass( |
- &assembler, cls, &entry_patch_offset, &patch_code_offset); |
+ StubCode::GenerateAllocationStubForClass(&assembler, cls); |
stub ^= Code::FinalizeCode(name, &assembler); |
stub.set_owner(cls); |
cls.set_allocation_stub(stub); |
@@ -98,12 +95,9 @@ RawCode* StubCode::GetAllocationStubForClass(const Class& cls) { |
DisassembleToStdout formatter; |
stub.Disassemble(&formatter); |
ISL_Print("}\n"); |
- const ObjectPool& object_pool = ObjectPool::Handle( |
- Instructions::Handle(stub.instructions()).object_pool()); |
+ const ObjectPool& object_pool = ObjectPool::Handle(stub.object_pool()); |
object_pool.DebugPrint(); |
} |
- stub.set_entry_patch_pc_offset(entry_patch_offset); |
- stub.set_patch_code_pc_offset(patch_code_offset); |
} |
return stub.raw(); |
} |
@@ -136,8 +130,7 @@ RawCode* StubCode::Generate(const char* name, |
DisassembleToStdout formatter; |
code.Disassemble(&formatter); |
ISL_Print("}\n"); |
- const ObjectPool& object_pool = ObjectPool::Handle( |
- Instructions::Handle(code.instructions()).object_pool()); |
+ const ObjectPool& object_pool = ObjectPool::Handle(code.object_pool()); |
object_pool.DebugPrint(); |
} |
return code.raw(); |