| 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 '../constants/expressions.dart'; | 7 import '../constants/expressions.dart'; |
| 8 import '../common.dart'; | 8 import '../common.dart'; |
| 9 import '../common/names.dart'; | 9 import '../common/names.dart'; |
| 10 import '../compiler.dart'; | 10 import '../compiler.dart'; |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 | 256 |
| 257 bool isInterceptedSelector(Selector selector) { | 257 bool isInterceptedSelector(Selector selector) { |
| 258 return _backend.isInterceptedSelector(selector); | 258 return _backend.isInterceptedSelector(selector); |
| 259 } | 259 } |
| 260 | 260 |
| 261 LibraryElement get jsHelperLibrary => _backend.helpers.jsHelperLibrary; | 261 LibraryElement get jsHelperLibrary => _backend.helpers.jsHelperLibrary; |
| 262 | 262 |
| 263 JumpTarget getTargetDefinition(ir.Node node) => | 263 JumpTarget getTargetDefinition(ir.Node node) => |
| 264 elements.getTargetDefinition(getNode(node)); | 264 elements.getTargetDefinition(getNode(node)); |
| 265 | 265 |
| 266 ir.Class get mapLiteralClass => |
| 267 kernel.classes[_backend.helpers.mapLiteralClass]; |
| 268 |
| 266 ir.Procedure get mapLiteralConstructor => | 269 ir.Procedure get mapLiteralConstructor => |
| 267 kernel.functions[_backend.helpers.mapLiteralConstructor]; | 270 kernel.functions[_backend.helpers.mapLiteralConstructor]; |
| 268 | 271 |
| 269 ir.Procedure get mapLiteralConstructorEmpty => | 272 ir.Procedure get mapLiteralConstructorEmpty => |
| 270 kernel.functions[_backend.helpers.mapLiteralConstructorEmpty]; | 273 kernel.functions[_backend.helpers.mapLiteralConstructorEmpty]; |
| 271 | 274 |
| 275 ir.Procedure get mapLiteralUntypedEmptyMaker => |
| 276 kernel.functions[_backend.helpers.mapLiteralUntypedEmptyMaker]; |
| 277 |
| 278 ir.Procedure get mapLiteralUntypedMaker => |
| 279 kernel.functions[_backend.helpers.mapLiteralUntypedMaker]; |
| 280 |
| 272 MemberElement get jsIndexableLength => _backend.helpers.jsIndexableLength; | 281 MemberElement get jsIndexableLength => _backend.helpers.jsIndexableLength; |
| 273 | 282 |
| 274 ir.Procedure get checkConcurrentModificationError => | 283 ir.Procedure get checkConcurrentModificationError => |
| 275 kernel.functions[_backend.helpers.checkConcurrentModificationError]; | 284 kernel.functions[_backend.helpers.checkConcurrentModificationError]; |
| 276 | 285 |
| 277 TypeMask get checkConcurrentModificationErrorReturnType => | 286 TypeMask get checkConcurrentModificationErrorReturnType => |
| 278 TypeMaskFactory.inferredReturnTypeForElement( | 287 TypeMaskFactory.inferredReturnTypeForElement( |
| 279 _backend.helpers.checkConcurrentModificationError, _compiler); | 288 _backend.helpers.checkConcurrentModificationError, _compiler); |
| 280 | 289 |
| 281 ir.Procedure get assertHelper => | 290 ir.Procedure get assertHelper => |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 684 astAdapter.reporter.internalError( | 693 astAdapter.reporter.internalError( |
| 685 CURRENT_ELEMENT_SPANNABLE, "Unexpected constant target: $element."); | 694 CURRENT_ELEMENT_SPANNABLE, "Unexpected constant target: $element."); |
| 686 return null; | 695 return null; |
| 687 } | 696 } |
| 688 | 697 |
| 689 @override | 698 @override |
| 690 ConstantExpression visitStringLiteral(ir.StringLiteral node) { | 699 ConstantExpression visitStringLiteral(ir.StringLiteral node) { |
| 691 return new StringConstantExpression(node.value); | 700 return new StringConstantExpression(node.value); |
| 692 } | 701 } |
| 693 } | 702 } |
| OLD | NEW |