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

Unified Diff: runtime/vm/assembler_x64.cc

Issue 23510006: - More use of pre-allocated read-only handles. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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/lib/object.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_x64.cc
===================================================================
--- runtime/vm/assembler_x64.cc (revision 27481)
+++ runtime/vm/assembler_x64.cc (working copy)
@@ -78,7 +78,7 @@
// These objects and labels need to be accessible through every pool-pointer
// at the same index.
- object_pool_.Add(Object::Handle(), Heap::kOld);
+ object_pool_.Add(Object::null_object(), Heap::kOld);
patchable_pool_entries_.Add(kNotPatchable);
object_pool_.Add(Bool::True(), Heap::kOld);
@@ -91,7 +91,7 @@
FindExternalLabel(&StubCode::UpdateStoreBufferLabel(), kNotPatchable);
patchable_pool_entries_.Add(kNotPatchable);
} else {
- object_pool_.Add(Object::Handle(), Heap::kOld);
+ object_pool_.Add(Object::null_object(), Heap::kOld);
patchable_pool_entries_.Add(kNotPatchable);
}
@@ -99,7 +99,7 @@
FindExternalLabel(&StubCode::CallToRuntimeLabel(), kNotPatchable);
patchable_pool_entries_.Add(kNotPatchable);
} else {
- object_pool_.Add(Object::Handle(), Heap::kOld);
+ object_pool_.Add(Object::null_object(), Heap::kOld);
patchable_pool_entries_.Add(kNotPatchable);
}
}
« no previous file with comments | « runtime/lib/object.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698