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

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

Issue 11565034: Improve performance of dart2js StringBuffer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Updated to lib_v2 and private libraries. Created 7 years, 11 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
Index: dart/sdk/lib/_internal/compiler/implementation/lib/js_number.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/lib/js_number.dart b/dart/sdk/lib/_internal/compiler/implementation/lib/js_number.dart
index e1263cec595827a2ad04d58de9f1dbeedd306198..975c1a5443a1f8b54b12d9a177df2e10d608d1e2 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/lib/js_number.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/lib/js_number.dart
@@ -133,6 +133,7 @@ class JSNumber {
return JS('String', r'#.toString(#)', this, radix);
}
+ // Note: if you change this, also change the function [S].
String toString() {
if (this == 0 && JS('bool', '(1 / #) < 0', this)) {
return '-0.0';

Powered by Google App Engine
This is Rietveld 408576698