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

Unified Diff: runtime/vm/stub_code_mips.cc

Issue 609593002: - Remove Isolate::CurrentAddress(). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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_ia32.cc ('k') | runtime/vm/stub_code_x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stub_code_mips.cc
===================================================================
--- runtime/vm/stub_code_mips.cc (revision 40623)
+++ runtime/vm/stub_code_mips.cc (working copy)
@@ -874,7 +874,7 @@
// Cache the new Context pointer into CTX while executing Dart code.
__ lw(CTX, Address(A3, VMHandles::kOffsetOfRawPtrInHandle));
- __ LoadImmediate(T2, Isolate::CurrentAddress());
+ __ LoadIsolate(T2);
// Save the current VMTag on the stack.
ASSERT(kSavedVMTagSlotFromEntryFp == -22);
@@ -947,7 +947,7 @@
__ AddImmediate(SP, FP, kSavedContextSlotFromEntryFp * kWordSize);
// Load Isolate pointer into CTX. Drop Context.
- __ LoadImmediate(CTX, Isolate::CurrentAddress());
+ __ LoadIsolate(CTX);
// Restore the current VMTag from the stack.
__ lw(T1, Address(SP, 2 * kWordSize));
@@ -1064,7 +1064,7 @@
// V0: new object.
// T1: number of context variables.
// T2: isolate, not an object.
- __ LoadImmediate(T2, Isolate::CurrentAddress());
+ __ LoadIsolate(T2);
__ sw(T2, FieldAddress(V0, Context::isolate_offset()));
__ LoadImmediate(T7, reinterpret_cast<intptr_t>(Object::null()));
@@ -1145,7 +1145,7 @@
// Load the isolate.
// Spilled: T1, T2, T3.
// T0: Address being stored.
- __ LoadImmediate(T1, Isolate::CurrentAddress());
+ __ LoadIsolate(T1);
// Load the StoreBuffer block out of the isolate. Then load top_ out of the
// StoreBufferBlock and add the address to the pointers_.
@@ -1176,7 +1176,7 @@
// Setup frame, push callee-saved registers.
__ EnterCallRuntimeFrame(1 * kWordSize);
- __ LoadImmediate(A0, Isolate::CurrentAddress());
+ __ LoadIsolate(A0);
__ CallRuntime(kStoreBufferBlockProcessRuntimeEntry, 1);
__ TraceSimMsg("UpdateStoreBufferStub return");
// Restore callee-saved registers, tear down frame.
@@ -1499,7 +1499,7 @@
// Check single stepping.
Label stepping, done_stepping;
- __ LoadImmediate(T0, Isolate::CurrentAddress());
+ __ LoadIsolate(T0);
__ lbu(T0, Address(T0, Isolate::single_step_offset()));
__ BranchNotEqual(T0, 0, &stepping);
__ Bind(&done_stepping);
@@ -1755,7 +1755,7 @@
// Check single stepping.
Label stepping, done_stepping;
- __ LoadImmediate(T0, Isolate::CurrentAddress());
+ __ LoadIsolate(T0);
__ lbu(T0, Address(T0, Isolate::single_step_offset()));
__ BranchNotEqual(T0, 0, &stepping);
__ Bind(&done_stepping);
« no previous file with comments | « runtime/vm/stub_code_ia32.cc ('k') | runtime/vm/stub_code_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698