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

Unified Diff: runtime/vm/assembler_x64.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_x64.cc
diff --git a/runtime/vm/assembler_x64.cc b/runtime/vm/assembler_x64.cc
index 45a0754cde9852e760755f48f93c902e2061bc8f..2e336134936d2566f69aa8ae5db6dc14b004ddd4 100644
--- a/runtime/vm/assembler_x64.cc
+++ b/runtime/vm/assembler_x64.cc
@@ -2810,7 +2810,7 @@ void Assembler::LoadWordFromPoolOffset(Register dst, Register pp,
void Assembler::LoadIsolate(Register dst) {
- movq(dst, Immediate(reinterpret_cast<uword>(Isolate::Current())));
+ movq(dst, Address(THR, Thread::isolate_offset()));
}

Powered by Google App Engine
This is Rietveld 408576698