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

Unified Diff: runtime/lib/double_patch.dart

Issue 10913271: Move parseInt parseDouble to int/double classes as a static method. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Make int.parse directly native. Created 8 years, 3 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 | « pkg/unittest/interactive_html_config.dart ('k') | runtime/lib/integers_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/double_patch.dart
diff --git a/lib/core/bool.dart b/runtime/lib/double_patch.dart
similarity index 62%
copy from lib/core/bool.dart
copy to runtime/lib/double_patch.dart
index 3225a9989978ca9d4a380f1b35574bef900fdcb6..d29324953ea1826df3b7380d063960f3e5c71130 100644
--- a/lib/core/bool.dart
+++ b/runtime/lib/double_patch.dart
@@ -1,12 +1,11 @@
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
// Dart core library.
-class bool {
- factory bool._uninstantiable() {
- throw const UnsupportedOperationException(
- "class bool cannot be instantiated");
- }
+// VM implementation of double.
+
+patch class double {
+ /* patch */
+ static double parse(String string) native "MathNatives_parseDouble";
}
« no previous file with comments | « pkg/unittest/interactive_html_config.dart ('k') | runtime/lib/integers_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698