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

Unified Diff: lib/object.cc

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 | « lib/identical.cc ('k') | lib/regexp.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/object.cc
===================================================================
--- lib/object.cc (revision 16591)
+++ lib/object.cc (working copy)
@@ -94,11 +94,7 @@
Symbols::Empty(), malformed_error_message);
UNREACHABLE();
}
- if (negate.value()) {
- return is_instance_of ? Bool::False() : Bool::True();
- } else {
- return is_instance_of ? Bool::True() : Bool::False();
- }
+ return Bool::Get(negate.value() ? !is_instance_of : is_instance_of);
}
« no previous file with comments | « lib/identical.cc ('k') | lib/regexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698