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

Unified Diff: sdk/lib/_internal/compiler/implementation/lib/js_number.dart

Issue 11360228: Simplify runtime type support. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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: sdk/lib/_internal/compiler/implementation/lib/js_number.dart
diff --git a/sdk/lib/_internal/compiler/implementation/lib/js_number.dart b/sdk/lib/_internal/compiler/implementation/lib/js_number.dart
index 76673aea07d7838603e90931a98a36cf50b3baff..e8e57508c6e0d89c03385691bcbea9629118b4b9 100644
--- a/sdk/lib/_internal/compiler/implementation/lib/js_number.dart
+++ b/sdk/lib/_internal/compiler/implementation/lib/js_number.dart
@@ -128,10 +128,10 @@ class JSInt extends JSNumber {
bool get isOdd => (this & 1) == 1;
- Type get runtimeType => createRuntimeType('int');
+ Type get runtimeType => int;
}
class JSDouble extends JSNumber {
const JSDouble();
- Type get runtimeType => createRuntimeType('double');
+ Type get runtimeType => double;
}

Powered by Google App Engine
This is Rietveld 408576698