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

Unified Diff: runtime/vm/assembler_ia32.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_ia32.cc
diff --git a/runtime/vm/assembler_ia32.cc b/runtime/vm/assembler_ia32.cc
index d876feb77f784077d02a36cbdabc5abe19c07c57..6e6d0d6d4db7ffff304b1a603239e0da9764f7cd 100644
--- a/runtime/vm/assembler_ia32.cc
+++ b/runtime/vm/assembler_ia32.cc
@@ -2124,7 +2124,7 @@ void Assembler::Drop(intptr_t stack_elements) {
void Assembler::LoadIsolate(Register dst) {
- movl(dst, Immediate(reinterpret_cast<uword>(Isolate::Current())));
+ movl(dst, Address(THR, Thread::isolate_offset()));
}

Powered by Google App Engine
This is Rietveld 408576698