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

Unified Diff: pkg/compiler/lib/src/js_emitter/startup_emitter/emitter.dart

Issue 1249023002: dart2js: support isolates in the startup-emitter. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fix typo. 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
Index: pkg/compiler/lib/src/js_emitter/startup_emitter/emitter.dart
diff --git a/pkg/compiler/lib/src/js_emitter/startup_emitter/emitter.dart b/pkg/compiler/lib/src/js_emitter/startup_emitter/emitter.dart
index 0b37620e0553cd7bb287c79eaf626202a3401f5b..a3f2a13be2d21f9c7f9c20198002425a188d8737 100644
--- a/pkg/compiler/lib/src/js_emitter/startup_emitter/emitter.dart
+++ b/pkg/compiler/lib/src/js_emitter/startup_emitter/emitter.dart
@@ -7,6 +7,7 @@ library dart2js.js_emitter.startup_emitter;
import 'package:js_runtime/shared/embedded_names.dart' show
JsBuiltin,
METADATA,
+ STATIC_FUNCTION_NAME_TO_CLOSURE,
TYPES;
import '../program_builder/program_builder.dart' show ProgramBuilder;
@@ -177,6 +178,11 @@ class Emitter implements emitterTask.Emitter {
_emitter.generateEmbeddedGlobalAccessString(TYPES);
return js.js.expressionTemplateFor("$typesAccess[#]");
+ case JsBuiltin.createDartClosureFromNameOfStaticFunction:
+ String functionAccess = _emitter.generateEmbeddedGlobalAccessString(
+ STATIC_FUNCTION_NAME_TO_CLOSURE);
+ return js.js.expressionTemplateFor("$functionAccess(#)");
+
default:
_compiler.internalError(NO_LOCATION_SPANNABLE,
"Unhandled Builtin: $builtin");

Powered by Google App Engine
This is Rietveld 408576698