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

Unified Diff: runtime/vm/constants_ia32.h

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/constants_ia32.h
diff --git a/runtime/vm/constants_ia32.h b/runtime/vm/constants_ia32.h
index d609b8a1d5feb5089f74cc82add6a9bfc6d28665..f1edc353f10136ef3e4d7ac8258f40a1bd757bf4 100644
--- a/runtime/vm/constants_ia32.h
+++ b/runtime/vm/constants_ia32.h
@@ -68,6 +68,7 @@ const Register SPREG = ESP; // Stack pointer register.
const Register FPREG = EBP; // Frame pointer register.
const Register ICREG = ECX; // IC data register.
const Register ARGS_DESC_REG = EDX; // Arguments descriptor register.
+const Register THR = ESI; // Caches current thread in generated code.
// Exception object is passed in this register to the catch handlers when an
// exception is thrown.

Powered by Google App Engine
This is Rietveld 408576698