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

Unified Diff: runtime/vm/constants_mips.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_mips.h
diff --git a/runtime/vm/constants_mips.h b/runtime/vm/constants_mips.h
index e9a76a49f43003d04c59054febda8a6626d0a4ea..5c721b39105e634c62c14e4101f3e2676ad6ebe5 100644
--- a/runtime/vm/constants_mips.h
+++ b/runtime/vm/constants_mips.h
@@ -185,6 +185,7 @@ const Register FPREG = FP; // Frame pointer register.
const Register LRREG = RA; // Link register.
const Register ICREG = S5; // IC data register.
const Register ARGS_DESC_REG = S4;
+const Register THR = S3; // Caches current thread in generated code.
// The code that generates a comparison can be far away from the code that
// generates the branch that uses the result of that comparison. In this case,

Powered by Google App Engine
This is Rietveld 408576698