| OLD | NEW |
| 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_task; | 5 library dart2js.ir_builder_task; |
| 6 | 6 |
| 7 import '../closure.dart' as closurelib; | 7 import '../closure.dart' as closurelib; |
| 8 import '../closure.dart' hide ClosureScope; | 8 import '../closure.dart' hide ClosureScope; |
| 9 import '../constants/expressions.dart'; | 9 import '../constants/expressions.dart'; |
| 10 import '../dart_types.dart'; | 10 import '../dart_types.dart'; |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 // that is, the definition in effect at the hole in 'current'. These are | 174 // that is, the definition in effect at the hole in 'current'. These are |
| 175 // used to determine if a join-point continuation needs to be passed | 175 // used to determine if a join-point continuation needs to be passed |
| 176 // arguments, and what the arguments are. | 176 // arguments, and what the arguments are. |
| 177 | 177 |
| 178 /// Construct a top-level visitor. | 178 /// Construct a top-level visitor. |
| 179 IrBuilderVisitor(this.elements, | 179 IrBuilderVisitor(this.elements, |
| 180 this.compiler, | 180 this.compiler, |
| 181 this.sourceInformationBuilder); | 181 this.sourceInformationBuilder); |
| 182 | 182 |
| 183 @override | 183 @override |
| 184 bulkHandleNode(ast.Node node, String message, _) => giveup(node, message); | 184 bulkHandleNode(ast.Node node, String message, _) { |
| 185 giveup(node, message.replaceFirst('#', '$node')); |
| 186 } |
| 185 | 187 |
| 186 String bailoutMessage = null; | 188 String bailoutMessage = null; |
| 187 | 189 |
| 188 @override | 190 @override |
| 189 ir.Primitive apply(ast.Node node, _) => node.accept(this); | 191 ir.Primitive apply(ast.Node node, _) => node.accept(this); |
| 190 | 192 |
| 191 @override | 193 @override |
| 192 SemanticSendVisitor get sendVisitor => this; | 194 SemanticSendVisitor get sendVisitor => this; |
| 193 | 195 |
| 194 /** | 196 /** |
| (...skipping 2542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2737 SourceInformation buildCall(ast.Node node) { | 2739 SourceInformation buildCall(ast.Node node) { |
| 2738 return new PositionSourceInformation( | 2740 return new PositionSourceInformation( |
| 2739 new TokenSourceLocation(sourceFile, node.getBeginToken(), name)); | 2741 new TokenSourceLocation(sourceFile, node.getBeginToken(), name)); |
| 2740 } | 2742 } |
| 2741 | 2743 |
| 2742 @override | 2744 @override |
| 2743 SourceInformationBuilder forContext(AstElement element) { | 2745 SourceInformationBuilder forContext(AstElement element) { |
| 2744 return new PositionSourceInformationBuilder(element); | 2746 return new PositionSourceInformationBuilder(element); |
| 2745 } | 2747 } |
| 2746 } | 2748 } |
| OLD | NEW |