| 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:kernel/ast.dart' as ir; | 5 import 'package:kernel/ast.dart' as ir; |
| 6 | 6 |
| 7 import '../closure.dart'; | 7 import '../closure.dart'; |
| 8 import '../common.dart'; | 8 import '../common.dart'; |
| 9 import '../common/codegen.dart' show CodegenRegistry, CodegenWorkItem; | 9 import '../common/codegen.dart' show CodegenRegistry, CodegenWorkItem; |
| 10 import '../common/names.dart'; | 10 import '../common/names.dart'; |
| (...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 577 new DartString.literal(prefixElement.deferredImport.uri.toString()), | 577 new DartString.literal(prefixElement.deferredImport.uri.toString()), |
| 578 closedWorld); | 578 closedWorld); |
| 579 _pushStaticInvocation(astAdapter.checkDeferredIsLoaded, | 579 _pushStaticInvocation(astAdapter.checkDeferredIsLoaded, |
| 580 [prefixConstant, uriConstant], astAdapter.checkDeferredIsLoadedType); | 580 [prefixConstant, uriConstant], astAdapter.checkDeferredIsLoadedType); |
| 581 } | 581 } |
| 582 | 582 |
| 583 @override | 583 @override |
| 584 void visitLoadLibrary(ir.LoadLibrary loadLibrary) { | 584 void visitLoadLibrary(ir.LoadLibrary loadLibrary) { |
| 585 // TODO(efortuna): Source information! | 585 // TODO(efortuna): Source information! |
| 586 push(new HInvokeStatic( | 586 push(new HInvokeStatic( |
| 587 helpers.loadLibraryWrapper, | 587 commonElements.loadLibraryWrapper, |
| 588 [ | 588 [ |
| 589 graph.addConstantString( | 589 graph.addConstantString( |
| 590 new DartString.literal(loadLibrary.import.name), closedWorld) | 590 new DartString.literal(loadLibrary.import.name), closedWorld) |
| 591 ], | 591 ], |
| 592 commonMasks.nonNullType, | 592 commonMasks.nonNullType, |
| 593 targetCanThrow: false)); | 593 targetCanThrow: false)); |
| 594 } | 594 } |
| 595 | 595 |
| 596 @override | 596 @override |
| 597 void visitBlock(ir.Block block) { | 597 void visitBlock(ir.Block block) { |
| (...skipping 2626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3224 enterBlock.setBlockFlow( | 3224 enterBlock.setBlockFlow( |
| 3225 new HTryBlockInformation( | 3225 new HTryBlockInformation( |
| 3226 kernelBuilder.wrapStatementGraph(bodyGraph), | 3226 kernelBuilder.wrapStatementGraph(bodyGraph), |
| 3227 exception, | 3227 exception, |
| 3228 kernelBuilder.wrapStatementGraph(catchGraph), | 3228 kernelBuilder.wrapStatementGraph(catchGraph), |
| 3229 kernelBuilder.wrapStatementGraph(finallyGraph)), | 3229 kernelBuilder.wrapStatementGraph(finallyGraph)), |
| 3230 exitBlock); | 3230 exitBlock); |
| 3231 kernelBuilder.inTryStatement = previouslyInTryStatement; | 3231 kernelBuilder.inTryStatement = previouslyInTryStatement; |
| 3232 } | 3232 } |
| 3233 } | 3233 } |
| OLD | NEW |