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

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

Issue 2667473003: Move Entity and Local to entities.dart (Closed)
Patch Set: Created 3 years, 10 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/ssa/codegen.dart ('k') | pkg/compiler/lib/src/ssa/kernel_ast_adapter.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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 '../closure.dart';
6 import '../common.dart'; 5 import '../common.dart';
7 import '../common/codegen.dart' show CodegenRegistry; 6 import '../common/codegen.dart' show CodegenRegistry;
8 import '../compiler.dart'; 7 import '../compiler.dart';
9 import '../constants/constant_system.dart'; 8 import '../elements/elements.dart';
9 import '../elements/entities.dart';
10 import '../elements/resolution_types.dart'; 10 import '../elements/resolution_types.dart';
11 import '../elements/elements.dart';
12 import '../io/source_information.dart';
13 import '../js_backend/js_backend.dart'; 11 import '../js_backend/js_backend.dart';
14 import '../resolution/tree_elements.dart'; 12 import '../resolution/tree_elements.dart';
15 import '../tree/tree.dart' as ast; 13 import '../tree/tree.dart' as ast;
16 import '../types/types.dart'; 14 import '../types/types.dart';
17 import '../universe/call_structure.dart' show CallStructure;
18 import '../universe/use.dart' show TypeUse;
19 import '../world.dart' show ClosedWorld; 15 import '../world.dart' show ClosedWorld;
20 import 'jump_handler.dart'; 16 import 'jump_handler.dart';
21 import 'locals_handler.dart'; 17 import 'locals_handler.dart';
22 import 'nodes.dart'; 18 import 'nodes.dart';
23 import 'ssa_branch_builder.dart';
24 import 'type_builder.dart'; 19 import 'type_builder.dart';
25 20
26 /// Base class for objects that build up an SSA graph. 21 /// Base class for objects that build up an SSA graph.
27 /// 22 ///
28 /// This contains helpers for building the graph and tracking information about 23 /// This contains helpers for building the graph and tracking information about
29 /// the current state of the graph being built. 24 /// the current state of the graph being built.
30 abstract class GraphBuilder { 25 abstract class GraphBuilder {
31 /// Holds the resulting SSA graph. 26 /// Holds the resulting SSA graph.
32 final HGraph graph = new HGraph(); 27 final HGraph graph = new HGraph();
33 28
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 if (unaliased is ResolutionTypedefType) throw 'unable to unalias $type'; 330 if (unaliased is ResolutionTypedefType) throw 'unable to unalias $type';
336 unaliased.accept(this, builder); 331 unaliased.accept(this, builder);
337 } 332 }
338 333
339 void visitDynamicType(ResolutionDynamicType type, GraphBuilder builder) { 334 void visitDynamicType(ResolutionDynamicType type, GraphBuilder builder) {
340 JavaScriptBackend backend = builder.compiler.backend; 335 JavaScriptBackend backend = builder.compiler.backend;
341 ClassElement cls = backend.helpers.DynamicRuntimeType; 336 ClassElement cls = backend.helpers.DynamicRuntimeType;
342 builder.push(new HDynamicType(type, new TypeMask.exact(cls, closedWorld))); 337 builder.push(new HDynamicType(type, new TypeMask.exact(cls, closedWorld)));
343 } 338 }
344 } 339 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/ssa/codegen.dart ('k') | pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698