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

Unified Diff: sdk/lib/_internal/js_runtime/lib/core_patch.dart

Issue 1330303002: Make Map constructor external to allow dart2js to specialize it. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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 | « runtime/lib/map_patch.dart ('k') | sdk/lib/core/map.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/js_runtime/lib/core_patch.dart
diff --git a/sdk/lib/_internal/js_runtime/lib/core_patch.dart b/sdk/lib/_internal/js_runtime/lib/core_patch.dart
index 3c639dc5fdc17e31255725655db298c34abb6c81..7d6ad7c244533fc8af009361b01a016c19aae16b 100644
--- a/sdk/lib/_internal/js_runtime/lib/core_patch.dart
+++ b/sdk/lib/_internal/js_runtime/lib/core_patch.dart
@@ -18,7 +18,8 @@ import 'dart:_js_helper' show patch,
stringJoinUnchecked,
objectHashCode,
Closure,
- readHttp;
+ readHttp,
+ JsLinkedHashMap;
import 'dart:_foreign_helper' show JS;
@@ -311,6 +312,9 @@ class List<E> {
class Map<K, V> {
@patch
factory Map.unmodifiable(Map other) = ConstantMap<K, V>.from;
+
+ @patch
+ factory Map() = JsLinkedHashMap<K, V>.es6;
}
@patch
« no previous file with comments | « runtime/lib/map_patch.dart ('k') | sdk/lib/core/map.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698