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

Unified Diff: runtime/lib/double.dart

Issue 2423843002: Add DoubleTestOp instruction (Closed)
Patch Set: Cleanup Created 4 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/constant_propagator.cc » ('j') | runtime/vm/flow_graph_inliner.cc » ('J')
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 34d780341d79f5626343c093d839ea07332d3f95..53015768c0fa8a91c25ad59d10f5b228965d0af4 100644
--- a/runtime/lib/double.dart
+++ b/runtime/lib/double.dart
@@ -92,8 +92,10 @@ class _Double implements double {
native "Double_greaterThanFromInteger";
bool get isNegative native "Double_getIsNegative";
- bool get isInfinite native "Double_getIsInfinite";
- bool get isNaN native "Double_getIsNaN";
+ bool get isInfinite => _isInfinite;
Florian Schneider 2016/10/18 20:34:20 Why must these be private getters?
zra 2016/10/18 22:36:32 Done.
+ bool get _isInfinite native "Double_getIsInfinite";
+ bool get isNaN => _isNaN;
+ bool get _isNaN native "Double_getIsNaN";
bool get isFinite => !isInfinite && !isNaN; // Can be optimized.
double abs() {
« no previous file with comments | « no previous file | runtime/vm/constant_propagator.cc » ('j') | runtime/vm/flow_graph_inliner.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698