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

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

Issue 12421002: Change VM's string-buffer patch to use a Uin16Array as backing buffer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Make VM code GC-safer. Created 7 years, 10 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: sdk/lib/_internal/compiler/implementation/lib/core_patch.dart
diff --git a/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart b/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart
index 1da20f6e90c14bd70e32cbfd216d45c2efffb1d7..fc2765b6f583603e5bd4cab881d6807d642f510b 100644
--- a/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart
+++ b/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart
@@ -234,6 +234,10 @@ patch class StringBuffer {
_contents = Primitives.stringConcatUnchecked(_contents, str);
}
+ patch void writeCharCode(int charCode) {
+ write(new String.fromCharCode(charCode));
+ }
+
patch void clear() {
_contents = "";
}

Powered by Google App Engine
This is Rietveld 408576698