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

Unified Diff: pkg/compiler/lib/src/js_emitter/code_emitter_task.dart

Issue 880773003: dart2js: support native classes in the new emitter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rename blob to info. Created 5 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: pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
diff --git a/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart b/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
index 1ed955de6b8697b24c611d8392df2f5cdc6dd14d..433fdaee6a5eef9f2a8b6887a197fbd24ff36312 100644
--- a/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
+++ b/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
@@ -51,11 +51,11 @@ class CodeEmitterTask extends CompilerTask {
: super(compiler),
this.namer = namer,
this.typeTestRegistry = new TypeTestRegistry(compiler) {
+ nativeEmitter = new NativeEmitter(this);
oldEmitter = new OldEmitter(compiler, namer, generateSourceMap, this);
emitter = USE_NEW_EMITTER
- ? new new_js_emitter.Emitter(compiler, namer)
+ ? new new_js_emitter.Emitter(compiler, namer, nativeEmitter)
: oldEmitter;
- nativeEmitter = new NativeEmitter(this);
}
/// Returns the closure expression of a static function.

Powered by Google App Engine
This is Rietveld 408576698