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

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

Issue 2871583002: Pass InterceptorData through ResolutionWorldBuilder and access it through ClosedWorld (Closed)
Patch Set: Created 3 years, 7 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/native_emitter.dart
diff --git a/pkg/compiler/lib/src/js_emitter/native_emitter.dart b/pkg/compiler/lib/src/js_emitter/native_emitter.dart
index a5551c2decf0301fc8d11b8161593a91314c6ba8..34637d403411516b1cbad82fb7393ada0050b984 100644
--- a/pkg/compiler/lib/src/js_emitter/native_emitter.dart
+++ b/pkg/compiler/lib/src/js_emitter/native_emitter.dart
@@ -21,6 +21,7 @@ import 'model.dart';
class NativeEmitter {
final CodeEmitterTask emitterTask;
final NativeData nativeData;
+ final InterceptorData interceptorData;
// Whether the application contains native classes.
bool hasNativeClasses = false;
@@ -36,7 +37,7 @@ class NativeEmitter {
// Caches the methods that have a native body.
Set<FunctionEntity> nativeMethods = new Set<FunctionEntity>();
- NativeEmitter(this.emitterTask, this.nativeData);
+ NativeEmitter(this.emitterTask, this.nativeData, this.interceptorData);
Compiler get compiler => emitterTask.compiler;
@@ -44,8 +45,6 @@ class NativeEmitter {
CodegenWorldBuilder get worldBuilder => compiler.codegenWorldBuilder;
- InterceptorData get interceptorData => backend.interceptorData;
-
Namer get namer => backend.namer;
/**

Powered by Google App Engine
This is Rietveld 408576698