| OLD | NEW |
| 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 'package:js_runtime/shared/embedded_names.dart'; | 5 import 'package:js_runtime/shared/embedded_names.dart'; |
| 6 import 'package:kernel/ast.dart' as ir; | 6 import 'package:kernel/ast.dart' as ir; |
| 7 | 7 |
| 8 import '../common.dart'; | 8 import '../common.dart'; |
| 9 import '../compiler.dart'; | 9 import '../compiler.dart'; |
| 10 import '../constants/expressions.dart'; | 10 import '../constants/expressions.dart'; |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 return _jumpTargets.putIfAbsent(node, () { | 339 return _jumpTargets.putIfAbsent(node, () { |
| 340 if (node is ir.LabeledStatement && | 340 if (node is ir.LabeledStatement && |
| 341 _jumpTargets.containsKey((node as ir.LabeledStatement).body)) { | 341 _jumpTargets.containsKey((node as ir.LabeledStatement).body)) { |
| 342 return _jumpTargets[(node as ir.LabeledStatement).body]; | 342 return _jumpTargets[(node as ir.LabeledStatement).body]; |
| 343 } | 343 } |
| 344 return new KernelJumpTarget(node, this, | 344 return new KernelJumpTarget(node, this, |
| 345 makeContinueLabel: isContinueTarget); | 345 makeContinueLabel: isContinueTarget); |
| 346 }); | 346 }); |
| 347 } | 347 } |
| 348 | 348 |
| 349 ir.Procedure get createInvocationMirror => |
| 350 kernel.functions[_backend.helpers.createInvocationMirror]; |
| 351 |
| 349 ir.Class get mapLiteralClass => | 352 ir.Class get mapLiteralClass => |
| 350 kernel.classes[_backend.helpers.mapLiteralClass]; | 353 kernel.classes[_backend.helpers.mapLiteralClass]; |
| 351 | 354 |
| 352 ir.Procedure get mapLiteralConstructor => | 355 ir.Procedure get mapLiteralConstructor => |
| 353 kernel.functions[_backend.helpers.mapLiteralConstructor]; | 356 kernel.functions[_backend.helpers.mapLiteralConstructor]; |
| 354 | 357 |
| 355 ir.Procedure get mapLiteralConstructorEmpty => | 358 ir.Procedure get mapLiteralConstructorEmpty => |
| 356 kernel.functions[_backend.helpers.mapLiteralConstructorEmpty]; | 359 kernel.functions[_backend.helpers.mapLiteralConstructorEmpty]; |
| 357 | 360 |
| 358 ir.Procedure get mapLiteralUntypedEmptyMaker => | 361 ir.Procedure get mapLiteralUntypedEmptyMaker => |
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 816 JumpTarget continueTarget = | 819 JumpTarget continueTarget = |
| 817 astAdapter.getJumpTarget(switchCase, isContinueTarget: true); | 820 astAdapter.getJumpTarget(switchCase, isContinueTarget: true); |
| 818 assert(continueTarget is KernelJumpTarget); | 821 assert(continueTarget is KernelJumpTarget); |
| 819 targetIndexMap[continueTarget] = switchIndex; | 822 targetIndexMap[continueTarget] = switchIndex; |
| 820 assert(builder.jumpTargets[continueTarget] == null); | 823 assert(builder.jumpTargets[continueTarget] == null); |
| 821 builder.jumpTargets[continueTarget] = this; | 824 builder.jumpTargets[continueTarget] = this; |
| 822 switchIndex++; | 825 switchIndex++; |
| 823 } | 826 } |
| 824 } | 827 } |
| 825 } | 828 } |
| OLD | NEW |