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

Unified Diff: runtime/vm/object.h

Issue 23480005: Change Bool::Get to return a handle instead of a pointer to a raw object. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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/intermediate_language_x64.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 3ecc8e1556b136da8689d841fa05f292573bd18a..79cd9649f3552be4aba2c3157a33548c6d79794f 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -5101,8 +5101,8 @@ class Bool : public Instance {
return Object::bool_false();
}
- static RawBool* Get(bool value) {
- return value ? Bool::True().raw() : Bool::False().raw();
+ static const Bool& Get(bool value) {
+ return value ? Bool::True() : Bool::False();
}
srdjan 2013/08/27 15:32:44 Best from both worlds? add: static RawBool* GetRaw
Ivan Posva 2013/08/27 15:51:25 I would think that is overkill.
private:
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698