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

Unified Diff: lib/identical.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 | « no previous file | lib/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/identical.cc
===================================================================
--- lib/identical.cc (revision 16591)
+++ lib/identical.cc (working copy)
@@ -11,20 +11,20 @@
DEFINE_NATIVE_ENTRY(Identical_comparison, 2) {
GET_NATIVE_ARGUMENT(Instance, a, arguments->NativeArgAt(0));
GET_NATIVE_ARGUMENT(Instance, b, arguments->NativeArgAt(1));
- if (a.raw() == b.raw()) return Bool::True();
+ if (a.raw() == b.raw()) return Bool::True().raw();
if (a.IsInteger() && b.IsInteger()) {
return Bool::Get(a.Equals(b));
}
if (a.IsDouble() && b.IsDouble()) {
- if (a.Equals(b)) return Bool::True();
+ if (a.Equals(b)) return Bool::True().raw();
// Check for NaN.
const Double& a_double = Double::Cast(a);
const Double& b_double = Double::Cast(b);
if (isnan(a_double.value()) && isnan(b_double.value())) {
- return Bool::True();
+ return Bool::True().raw();
}
}
- return Bool::False();
+ return Bool::False().raw();
}
« no previous file with comments | « no previous file | lib/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698