Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(467)

Unified Diff: runtime/vm/stub_code.cc

Issue 1192103004: VM: New calling convention for generated code. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: fixed comments Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/stub_code.h ('k') | runtime/vm/stub_code_arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stub_code.cc
diff --git a/runtime/vm/stub_code.cc b/runtime/vm/stub_code.cc
index 65a4966f2e2f149b19b099afb2770eed18d891d4..df7773d933ce2b18b94101480d7c24b672b7b220 100644
--- a/runtime/vm/stub_code.cc
+++ b/runtime/vm/stub_code.cc
@@ -104,10 +104,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);
@@ -117,12 +114,9 @@ RawCode* StubCode::GetAllocationStubForClass(const Class& cls) {
DisassembleToStdout formatter;
stub.Disassemble(&formatter);
THR_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();
}
@@ -155,8 +149,7 @@ RawCode* StubCode::Generate(const char* name,
DisassembleToStdout formatter;
code.Disassemble(&formatter);
THR_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();
« no previous file with comments | « runtime/vm/stub_code.h ('k') | runtime/vm/stub_code_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698