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

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

Issue 1229923005: dart2js: support tear-offs in the startup emitter. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fix bad assert. Created 5 years, 5 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 | « sdk/lib/_internal/js_runtime/lib/annotations.dart ('k') | tests/compiler/dart2js/mock_libraries.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 2ec85f03b6bbffea3d8ebc38c123b5d06f8d7782..22186f69c49787786e367ae9f68195c1d74dad25 100644
--- a/sdk/lib/_internal/js_runtime/lib/core_patch.dart
+++ b/sdk/lib/_internal/js_runtime/lib/core_patch.dart
@@ -8,6 +8,7 @@ import 'dart:_interceptors';
import 'dart:_js_helper' show patch,
patch_full,
patch_lazy,
+ patch_startup,
checkInt,
getRuntimeType,
jsonEncodeNative,
@@ -77,6 +78,14 @@ class Function {
namedArguments == null ? null : _symbolMapToStringMap(namedArguments));
}
+ @patch_startup
+ static apply(Function function,
+ List positionalArguments,
+ [Map<Symbol, dynamic> namedArguments]) {
+ return Primitives.applyFunctionNewEmitter(function, positionalArguments,
+ namedArguments == null ? null : _symbolMapToStringMap(namedArguments));
+ }
+
static Map<String, dynamic> _toMangledNames(
Map<Symbol, dynamic> namedArguments) {
Map<String, dynamic> result = {};
« no previous file with comments | « sdk/lib/_internal/js_runtime/lib/annotations.dart ('k') | tests/compiler/dart2js/mock_libraries.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698