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

Unified Diff: runtime/vm/assembler_arm.cc

Issue 365983002: Make isolate specific stub code accessors instance methods instead (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 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 | « no previous file | runtime/vm/assembler_arm64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_arm.cc
===================================================================
--- runtime/vm/assembler_arm.cc (revision 37923)
+++ runtime/vm/assembler_arm.cc (working copy)
@@ -1615,7 +1615,8 @@
if (object != R0) {
mov(R0, Operand(object));
}
- BranchLink(&StubCode::UpdateStoreBufferLabel());
+ StubCode* stub_code = Isolate::Current()->stub_code();
+ BranchLink(&stub_code->UpdateStoreBufferLabel());
PopList(regs);
Bind(&done);
}
@@ -3167,10 +3168,11 @@
void Assembler::Stop(const char* message) {
if (FLAG_print_stop_message) {
+ StubCode* stub_code = Isolate::Current()->stub_code();
PushList((1 << R0) | (1 << IP) | (1 << LR)); // Preserve R0, IP, LR.
LoadImmediate(R0, reinterpret_cast<int32_t>(message));
// PrintStopMessage() preserves all registers.
- BranchLink(&StubCode::PrintStopMessageLabel()); // Passing message in R0.
+ BranchLink(&stub_code->PrintStopMessageLabel()); // Passing message in R0.
PopList((1 << R0) | (1 << IP) | (1 << LR)); // Restore R0, IP, LR.
}
// Emit the message address before the svc instruction, so that we can
« no previous file with comments | « no previous file | runtime/vm/assembler_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698