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

Unified Diff: vm/dart_api_state.h

Issue 11745022: - Make Boolean 'true' and 'false' singleton VM isolate objects. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 7 years, 12 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 | « vm/dart_api_message.cc ('k') | vm/flow_graph_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/dart_api_state.h
===================================================================
--- vm/dart_api_state.h (revision 16591)
+++ vm/dart_api_state.h (working copy)
@@ -610,9 +610,8 @@
if (true_ == NULL) {
DARTSCOPE(Isolate::Current());
- const Object& true_object = Object::Handle(Bool::True());
true_ = persistent_handles().AllocateHandle();
- true_->set_raw(true_object);
+ true_->set_raw(Bool::True());
}
return true_;
}
@@ -620,9 +619,8 @@
if (false_ == NULL) {
DARTSCOPE(Isolate::Current());
- const Object& false_object = Object::Handle(Bool::False());
false_ = persistent_handles().AllocateHandle();
- false_->set_raw(false_object);
+ false_->set_raw(Bool::False());
}
return false_;
}
« no previous file with comments | « vm/dart_api_message.cc ('k') | vm/flow_graph_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698