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

Unified Diff: runtime/lib/double.dart

Issue 1974533002: Faster dispatch of integer operations on double. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: remove extra spaces Created 4 years, 7 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 | runtime/vm/method_recognizer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/double.dart
diff --git a/runtime/lib/double.dart b/runtime/lib/double.dart
index 06cd324b6472d0b9f42c7b7560d11803c6971408..862aae66ab8114d6c53d5091a587c0a294941684 100644
--- a/runtime/lib/double.dart
+++ b/runtime/lib/double.dart
@@ -63,28 +63,28 @@ class _Double implements double {
}
bool _greaterThan(double other) native "Double_greaterThan";
bool operator >=(num other) {
- return (this == other) || (this > other);
+ return (this == other) || (this > other);
}
bool operator <=(num other) {
- return (this == other) || (this < other);
+ return (this == other) || (this < other);
}
double _addFromInteger(int other) {
- return new _Double.fromInteger(other) + this;
+ return new _Double.fromInteger(other)._add(this);
}
double _subFromInteger(int other) {
- return new _Double.fromInteger(other) - this;
+ return new _Double.fromInteger(other)._sub(this);
}
double _mulFromInteger(int other) {
- return new _Double.fromInteger(other) * this;
+ return new _Double.fromInteger(other)._mul(this);
}
int _truncDivFromInteger(int other) {
- return new _Double.fromInteger(other) ~/ this;
+ return new _Double.fromInteger(other)._trunc_div(this);
}
double _moduloFromInteger(int other) {
- return new _Double.fromInteger(other) % this;
+ return new _Double.fromInteger(other)._modulo(this);
}
double _remainderFromInteger(int other) {
- return new _Double.fromInteger(other).remainder(this);
+ return new _Double.fromInteger(other)._remainder(this);
}
bool _greaterThanFromInteger(int other)
native "Double_greaterThanFromInteger";
« no previous file with comments | « no previous file | runtime/vm/method_recognizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698