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

Unified Diff: runtime/vm/assembler_mips.cc

Issue 1156593002: Cache current thread in a reserved register and use it in LoadIsolate (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Address review comments. Created 5 years, 7 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
Index: runtime/vm/assembler_mips.cc
diff --git a/runtime/vm/assembler_mips.cc b/runtime/vm/assembler_mips.cc
index 292e1409289b45821e9371e776d5f19aecc60e03..ef1857c71d20c77a13a0745ec69f92db92edcece 100644
--- a/runtime/vm/assembler_mips.cc
+++ b/runtime/vm/assembler_mips.cc
@@ -626,7 +626,7 @@ void Assembler::StoreIntoObjectNoBarrierOffset(Register object,
void Assembler::LoadIsolate(Register result) {
- LoadImmediate(result, reinterpret_cast<uword>(Isolate::Current()));
+ lw(result, Address(THR, Thread::isolate_offset()));
}

Powered by Google App Engine
This is Rietveld 408576698