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); |