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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/lib/core_patch.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/core_patch.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart b/dart/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart
index 18c8a1eb828390d94ac177545da8086fec929eda..4297edba4303838d3ab52ff5f133c2a827428861 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart
@@ -11,7 +11,8 @@ import 'dart:_js_helper' show checkNull,
JSSyntaxRegExp,
Primitives,
TypeImpl,
- stringJoinUnchecked;
+ stringJoinUnchecked,
+ JsStringBuffer;
// Patch for 'print' function.
patch void print(var object) {
@@ -265,3 +266,9 @@ patch class RegExp {
patch bool identical(Object a, Object b) {
return Primitives.identicalImplementation(a, b);
}
+
+patch class StringBuffer {
+ patch factory StringBuffer([Object content = ""]) {
+ return new JsStringBuffer(content);
+ }
+}
« no previous file with comments | « dart/runtime/lib/string_buffer_patch.dart ('k') | dart/sdk/lib/_internal/compiler/implementation/lib/interceptors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698