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

Unified Diff: vm/code_descriptors.cc

Issue 11648006: Create read only handles for empty_array and sentinel objects (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years 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 | « vm/class_finalizer_test.cc ('k') | vm/code_descriptors_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/code_descriptors.cc
===================================================================
--- vm/code_descriptors.cc (revision 16415)
+++ vm/code_descriptors.cc (working copy)
@@ -65,7 +65,7 @@
ASSERT(Verify());
intptr_t num_entries = Length();
if (num_entries == 0) {
- return Object::empty_array();
+ return Object::empty_array().raw();
}
uword entry_point = code.EntryPoint();
for (intptr_t i = 0; i < num_entries; i++) {
« no previous file with comments | « vm/class_finalizer_test.cc ('k') | vm/code_descriptors_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698