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

Unified Diff: runtime/lib/integers.cc

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
Index: runtime/lib/integers.cc
diff --git a/runtime/lib/integers.cc b/runtime/lib/integers.cc
index fa87faf166b9d252c5d9a3c1ffb192c38cfa0f6e..4962ac9e134106b99722d29be89685735c660e9b 100644
--- a/runtime/lib/integers.cc
+++ b/runtime/lib/integers.cc
@@ -165,7 +165,7 @@ DEFINE_NATIVE_ENTRY(Integer_greaterThanFromInteger, 2) {
OS::Print("Integer_greaterThanFromInteger %s > %s\n",
left.ToCString(), right.ToCString());
}
- return Bool::Get(left.CompareWith(right) == 1);
+ return Bool::Get(left.CompareWith(right) == 1).raw();
}
@@ -178,7 +178,7 @@ DEFINE_NATIVE_ENTRY(Integer_equalToInteger, 2) {
OS::Print("Integer_equalToInteger %s == %s\n",
left.ToCString(), right.ToCString());
}
- return Bool::Get(left.CompareWith(right) == 0);
+ return Bool::Get(left.CompareWith(right) == 0).raw();
}
« no previous file with comments | « runtime/lib/identical.cc ('k') | runtime/lib/mirrors.cc » ('j') | runtime/vm/object.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698