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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/lib/interceptors.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/interceptors.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/lib/interceptors.dart b/dart/sdk/lib/_internal/compiler/implementation/lib/interceptors.dart
index 2eae4fb06df8a5a8144981bf052781f905f086b4..b133d12900e38c11dadb04799731e0ccf60da4a6 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/lib/interceptors.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/lib/interceptors.dart
@@ -65,6 +65,8 @@ class JSFunction implements Function {
*/
class JSBool implements bool {
const JSBool();
+
+ // Note: if you change this, also change the function [S].
String toString() => JS('String', r'String(#)', this);
// The values here are SMIs, co-prime and differ about half of the bit
@@ -79,7 +81,10 @@ class JSBool implements bool {
*/
class JSNull implements Null {
const JSNull();
+
+ // Note: if you change this, also change the function [S].
String toString() => 'null';
+
int get hashCode => 0;
Type get runtimeType => createRuntimeType('Null');
}

Powered by Google App Engine
This is Rietveld 408576698