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

Unified Diff: pkg/compiler/lib/src/js_backend/backend.dart

Issue 2738513007: Split NativeDataImpl (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | pkg/compiler/lib/src/js_backend/backend_serialization.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_backend/backend.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart
index 9afc4a31eb1942eb6eed83dd59de6e6d8c8f9738..531cba0cf0401d4903c94982823a02132021f492 100644
--- a/pkg/compiler/lib/src/js_backend/backend.dart
+++ b/pkg/compiler/lib/src/js_backend/backend.dart
@@ -432,10 +432,11 @@ class JavaScriptBackend {
/// Interface for serialization of backend specific data.
JavaScriptBackendSerialization serialization;
- final NativeDataImpl _nativeData = new NativeDataImpl();
- NativeClassData get nativeClassData => _nativeData;
+ NativeDataImpl _nativeData;
+ final NativeClassDataImpl _nativeClassData = new NativeClassDataImpl();
+ NativeClassData get nativeClassData => _nativeClassData;
NativeData get nativeData => _nativeData;
- NativeClassDataBuilder get nativeClassDataBuilder => _nativeData;
+ NativeClassDataBuilder get nativeClassDataBuilder => _nativeClassData;
NativeDataBuilder get nativeDataBuilder => _nativeData;
final NativeDataResolver _nativeDataResolver;
InterceptorDataBuilder _interceptorDataBuilder;
@@ -501,6 +502,7 @@ class JavaScriptBackend {
frontend = new JSFrontendAccess(compiler),
constantCompilerTask = new JavaScriptConstantTask(compiler),
_nativeDataResolver = new NativeDataResolverImpl(compiler) {
+ _nativeData = new NativeDataImpl(nativeClassData);
_target = new JavaScriptBackendTarget(this);
helpers = new BackendHelpers(compiler.elementEnvironment, commonElements);
impacts = new BackendImpacts(compiler.options, commonElements, helpers);
@@ -548,7 +550,8 @@ class JavaScriptBackend {
patchResolverTask = new PatchResolverTask(compiler);
functionCompiler =
new SsaFunctionCompiler(this, sourceInformationStrategy, useKernel);
- serialization = new JavaScriptBackendSerialization(nativeData);
+ serialization =
+ new JavaScriptBackendSerialization(nativeClassData, nativeData);
_interceptorDataBuilder = new InterceptorDataBuilderImpl(
nativeClassData, helpers, commonElements, compiler.resolution);
}
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_backend/backend_serialization.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698