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

Unified Diff: runtime/lib/double.dart

Issue 1422753004: VM: Add double unary minus intrinsic. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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/intrinsifier.cc » ('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 ea7c1cf1ac27f9a48614591dfd517abe74a98225..87d80464f82ca2444ac990dfd604870c331d6dff 100644
--- a/runtime/lib/double.dart
+++ b/runtime/lib/double.dart
@@ -46,17 +46,14 @@ class _Double extends _Num implements double {
return _remainder(other.toDouble());
}
double _remainder(double other) native "Double_remainder";
- double operator -() {
- // Handles properly 0.0, NAN, and other doubles.
- return this._flipSignBit;
- }
- double get _flipSignBit native "Double_flipSignBit";
+
+ double operator -() native "Double_flipSignBit";
bool operator ==(other) {
if (!(other is num)) return false;
return _equal(other.toDouble());
}
- bool _equal(double other)native "Double_equal";
+ bool _equal(double other) native "Double_equal";
bool _equalToInteger(int other) native "Double_equalToInteger";
bool operator <(num other) {
return other > this;
« no previous file with comments | « no previous file | runtime/vm/intrinsifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698