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

Unified Diff: runtime/vm/assembler_ia32.cc

Issue 1210033007: Cache some global constants in Thread, to allow access via THR register. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Remove unused define. Created 5 years, 5 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
« no previous file with comments | « runtime/vm/assembler_ia32.h ('k') | runtime/vm/dart.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_ia32.cc
diff --git a/runtime/vm/assembler_ia32.cc b/runtime/vm/assembler_ia32.cc
index 249fba089e486e0fd03a0974c1726f857a3922f1..13dfb9b590437967eb8f1632491386012468c23d 100644
--- a/runtime/vm/assembler_ia32.cc
+++ b/runtime/vm/assembler_ia32.cc
@@ -2157,6 +2157,16 @@ void Assembler::LoadIsolate(Register dst) {
}
+void Assembler::LoadBoolTrue(Register dst) {
+ movl(dst, Address(THR, Thread::bool_true_offset()));
+}
+
+
+void Assembler::LoadBoolFalse(Register dst) {
+ movl(dst, Address(THR, Thread::bool_false_offset()));
+}
+
+
void Assembler::LoadObject(Register dst, const Object& object) {
if (object.IsSmi() || object.InVMHeap()) {
movl(dst, Immediate(reinterpret_cast<int32_t>(object.raw())));
« no previous file with comments | « runtime/vm/assembler_ia32.h ('k') | runtime/vm/dart.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698