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

Unified Diff: compiler/lib/implementation/number.dart

Issue 9192007: Simplify equality checks and get rid of unreachable code in number and bool. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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: compiler/lib/implementation/number.dart
diff --git a/compiler/lib/implementation/number.dart b/compiler/lib/implementation/number.dart
index 47f250f83212e0b43ed7e9995745cb97a294ce8e..f31fab34cc63a4a1b5a87431c73878c0ddfa5c46 100644
--- a/compiler/lib/implementation/number.dart
+++ b/compiler/lib/implementation/number.dart
@@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
class NumberImplementation implements int, double native "Number" {
+
NumberImplementation operator +(NumberImplementation other) native;
NumberImplementation operator -(NumberImplementation other) native;
NumberImplementation operator *(NumberImplementation other) native;
@@ -10,19 +11,20 @@ class NumberImplementation implements int, double native "Number" {
NumberImplementation operator ~/(NumberImplementation other) native;
NumberImplementation operator %(NumberImplementation shiftAmount) native;
NumberImplementation operator negate() native;
+
int operator |(int other) native;
int operator &(int other) native;
int operator ^(int other) native;
int operator <<(int shiftAmount) native;
int operator >>(int shiftAmount) native;
int operator ~() native;
+
bool operator ==(NumberImplementation other) native;
bool operator <(NumberImplementation other) native;
bool operator <=(NumberImplementation other) native;
bool operator >(NumberImplementation other) native;
bool operator >=(NumberImplementation other) native;
-
NumberImplementation remainder(num other) native;
NumberImplementation abs() native;
NumberImplementation round() native;

Powered by Google App Engine
This is Rietveld 408576698