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

Side by Side Diff: pkg/compiler/lib/src/ssa/builder.dart

Issue 2863073003: Access NativeData only 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 unified diff | Download patch
« no previous file with comments | « pkg/compiler/lib/src/native/behavior.dart ('k') | pkg/compiler/lib/src/ssa/codegen.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:collection'; 5 import 'dart:collection';
6 6
7 import 'package:js_runtime/shared/embedded_names.dart'; 7 import 'package:js_runtime/shared/embedded_names.dart';
8 8
9 import '../closure.dart'; 9 import '../closure.dart';
10 import '../common.dart'; 10 import '../common.dart';
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 assert(target.isImplementation); 208 assert(target.isImplementation);
209 elementInferenceResults = _resultOf(target); 209 elementInferenceResults = _resultOf(target);
210 assert(elementInferenceResults != null); 210 assert(elementInferenceResults != null);
211 graph.element = target; 211 graph.element = target;
212 sourceElementStack.add(target); 212 sourceElementStack.add(target);
213 sourceInformationBuilder = 213 sourceInformationBuilder =
214 sourceInformationFactory.createBuilderForContext(resolvedAst); 214 sourceInformationFactory.createBuilderForContext(resolvedAst);
215 graph.sourceInformation = 215 graph.sourceInformation =
216 sourceInformationBuilder.buildVariableDeclaration(); 216 sourceInformationBuilder.buildVariableDeclaration();
217 localsHandler = new LocalsHandler( 217 localsHandler = new LocalsHandler(
218 this, target, null, backend.nativeData, backend.interceptorData); 218 this, target, null, closedWorld.nativeData, backend.interceptorData);
219 loopHandler = new SsaLoopHandler(this); 219 loopHandler = new SsaLoopHandler(this);
220 typeBuilder = new TypeBuilder(this); 220 typeBuilder = new TypeBuilder(this);
221 } 221 }
222 222
223 Element get targetElement => target; 223 Element get targetElement => target;
224 224
225 /// Reference to resolved elements in [target]'s AST. 225 /// Reference to resolved elements in [target]'s AST.
226 TreeElements get elements => resolvedAst.elements; 226 TreeElements get elements => resolvedAst.elements;
227 227
228 @override 228 @override
(...skipping 6513 matching lines...) Expand 10 before | Expand all | Expand 10 after
6742 this.oldReturnLocal, 6742 this.oldReturnLocal,
6743 this.oldReturnType, 6743 this.oldReturnType,
6744 this.oldResolvedAst, 6744 this.oldResolvedAst,
6745 this.oldStack, 6745 this.oldStack,
6746 this.oldLocalsHandler, 6746 this.oldLocalsHandler,
6747 this.inTryStatement, 6747 this.inTryStatement,
6748 this.allFunctionsCalledOnce, 6748 this.allFunctionsCalledOnce,
6749 this.oldElementInferenceResults) 6749 this.oldElementInferenceResults)
6750 : super(function); 6750 : super(function);
6751 } 6751 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/native/behavior.dart ('k') | pkg/compiler/lib/src/ssa/codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698