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

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

Issue 1410123005: dart2js cps: Remove unneeded bailout on captured loop variables. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Remove show clause for DartCapturedVariables Created 5 years, 1 month 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 | « no previous file | pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.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) 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 '../closure.dart' hide ClosureScope; 7 import '../closure.dart' hide ClosureScope;
8 import '../common.dart'; 8 import '../common.dart';
9 import '../common/names.dart' show 9 import '../common/names.dart' show
10 Names, 10 Names,
(...skipping 16 matching lines...) Expand all
27 import '../tree/tree.dart' as ast; 27 import '../tree/tree.dart' as ast;
28 import '../types/types.dart' show 28 import '../types/types.dart' show
29 TypeMask; 29 TypeMask;
30 import '../universe/call_structure.dart' show 30 import '../universe/call_structure.dart' show
31 CallStructure; 31 CallStructure;
32 import '../universe/selector.dart' show 32 import '../universe/selector.dart' show
33 Selector, 33 Selector,
34 SelectorKind; 34 SelectorKind;
35 35
36 import 'cps_ir_builder_task.dart' show 36 import 'cps_ir_builder_task.dart' show
37 DartCapturedVariables,
38 GlobalProgramInformation; 37 GlobalProgramInformation;
39 import 'cps_ir_nodes.dart' as ir; 38 import 'cps_ir_nodes.dart' as ir;
40 39
41 40
42 /// A mapping from variable elements to their compile-time values. 41 /// A mapping from variable elements to their compile-time values.
43 /// 42 ///
44 /// Map elements denoted by parameters and local variables to the 43 /// Map elements denoted by parameters and local variables to the
45 /// [ir.Primitive] that is their value. Parameters and locals are 44 /// [ir.Primitive] that is their value. Parameters and locals are
46 /// assigned indexes which can be used to refer to them. 45 /// assigned indexes which can be used to refer to them.
47 class Environment { 46 class Environment {
(...skipping 2838 matching lines...) Expand 10 before | Expand all | Expand 10 after
2886 } 2885 }
2887 2886
2888 class SwitchCaseInfo { 2887 class SwitchCaseInfo {
2889 final List<ir.Primitive> constants = <ir.Primitive>[]; 2888 final List<ir.Primitive> constants = <ir.Primitive>[];
2890 final SubbuildFunction buildBody; 2889 final SubbuildFunction buildBody;
2891 2890
2892 SwitchCaseInfo(this.buildBody); 2891 SwitchCaseInfo(this.buildBody);
2893 2892
2894 void addConstant(ir.Primitive constant) => constants.add(constant); 2893 void addConstant(ir.Primitive constant) => constants.add(constant);
2895 } 2894 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698