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

Side by Side Diff: pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart

Issue 1198293002: dart2js: Use an abstract Name class for names in the generated JavaScript ast. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: fix tests Created 5 years, 5 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
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 library dart2js.ir_builder; 5 library dart2js.ir_builder;
6 6
7 import '../compile_time_constants.dart' show BackendConstantEnvironment; 7 import '../compile_time_constants.dart' show BackendConstantEnvironment;
8 import '../constants/constant_system.dart'; 8 import '../constants/constant_system.dart';
9 import '../constants/expressions.dart';
10 import '../constants/values.dart' show ConstantValue, PrimitiveConstantValue; 9 import '../constants/values.dart' show ConstantValue, PrimitiveConstantValue;
11 import '../dart_types.dart'; 10 import '../dart_types.dart';
12 import '../dart2jslib.dart'; 11 import '../dart2jslib.dart';
13 import '../elements/elements.dart'; 12 import '../elements/elements.dart';
14 import '../io/source_information.dart'; 13 import '../io/source_information.dart';
15 import '../tree/tree.dart' as ast; 14 import '../tree/tree.dart' as ast;
16 import '../closure.dart' hide ClosureScope; 15 import '../closure.dart' hide ClosureScope;
17 import '../universe/universe.dart' show SelectorKind; 16 import '../universe/universe.dart' show SelectorKind;
18 import 'cps_ir_nodes.dart' as ir; 17 import 'cps_ir_nodes.dart' as ir;
19 import 'cps_ir_builder_task.dart' show DartCapturedVariables, 18 import 'cps_ir_builder_task.dart' show DartCapturedVariables,
(...skipping 2611 matching lines...) Expand 10 before | Expand all | Expand 10 after
2631 } 2630 }
2632 2631
2633 class SwitchCaseInfo { 2632 class SwitchCaseInfo {
2634 final List<ir.Primitive> constants = <ir.Primitive>[]; 2633 final List<ir.Primitive> constants = <ir.Primitive>[];
2635 final SubbuildFunction buildBody; 2634 final SubbuildFunction buildBody;
2636 2635
2637 SwitchCaseInfo(this.buildBody); 2636 SwitchCaseInfo(this.buildBody);
2638 2637
2639 void addConstant(ir.Primitive constant) => constants.add(constant); 2638 void addConstant(ir.Primitive constant) => constants.add(constant);
2640 } 2639 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698