| 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 '../constants/expressions.dart'; | 8 import '../constants/expressions.dart'; |
| 9 import '../common.dart'; | 9 import '../common.dart'; |
| 10 import '../common/names.dart'; | 10 import '../common/names.dart'; |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 ir.Procedure get checkConcurrentModificationError => | 311 ir.Procedure get checkConcurrentModificationError => |
| 312 kernel.functions[_backend.helpers.checkConcurrentModificationError]; | 312 kernel.functions[_backend.helpers.checkConcurrentModificationError]; |
| 313 | 313 |
| 314 TypeMask get checkConcurrentModificationErrorReturnType => | 314 TypeMask get checkConcurrentModificationErrorReturnType => |
| 315 TypeMaskFactory.inferredReturnTypeForElement( | 315 TypeMaskFactory.inferredReturnTypeForElement( |
| 316 _backend.helpers.checkConcurrentModificationError, _compiler); | 316 _backend.helpers.checkConcurrentModificationError, _compiler); |
| 317 | 317 |
| 318 ir.Procedure get assertHelper => | 318 ir.Procedure get assertHelper => |
| 319 kernel.functions[_backend.helpers.assertHelper]; | 319 kernel.functions[_backend.helpers.assertHelper]; |
| 320 | 320 |
| 321 TypeMask get throwTypeErrorType => TypeMaskFactory |
| 322 .inferredReturnTypeForElement(_backend.helpers.throwTypeError, _compiler); |
| 323 |
| 321 TypeMask get assertHelperReturnType => TypeMaskFactory | 324 TypeMask get assertHelperReturnType => TypeMaskFactory |
| 322 .inferredReturnTypeForElement(_backend.helpers.assertHelper, _compiler); | 325 .inferredReturnTypeForElement(_backend.helpers.assertHelper, _compiler); |
| 323 | 326 |
| 324 ir.Procedure get assertTest => kernel.functions[_backend.helpers.assertTest]; | 327 ir.Procedure get assertTest => kernel.functions[_backend.helpers.assertTest]; |
| 325 | 328 |
| 326 TypeMask get assertTestReturnType => TypeMaskFactory | 329 TypeMask get assertTestReturnType => TypeMaskFactory |
| 327 .inferredReturnTypeForElement(_backend.helpers.assertTest, _compiler); | 330 .inferredReturnTypeForElement(_backend.helpers.assertTest, _compiler); |
| 328 | 331 |
| 329 ir.Procedure get assertThrow => | 332 ir.Procedure get assertThrow => |
| 330 kernel.functions[_backend.helpers.assertThrow]; | 333 kernel.functions[_backend.helpers.assertThrow]; |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 761 astAdapter.reporter.internalError( | 764 astAdapter.reporter.internalError( |
| 762 CURRENT_ELEMENT_SPANNABLE, "Unexpected constant target: $element."); | 765 CURRENT_ELEMENT_SPANNABLE, "Unexpected constant target: $element."); |
| 763 return null; | 766 return null; |
| 764 } | 767 } |
| 765 | 768 |
| 766 @override | 769 @override |
| 767 ConstantExpression visitStringLiteral(ir.StringLiteral node) { | 770 ConstantExpression visitStringLiteral(ir.StringLiteral node) { |
| 768 return new StringConstantExpression(node.value); | 771 return new StringConstantExpression(node.value); |
| 769 } | 772 } |
| 770 } | 773 } |
| OLD | NEW |