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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 | 319 |
320 MemberElement get jsIndexableLength => _backend.helpers.jsIndexableLength; | 320 MemberElement get jsIndexableLength => _backend.helpers.jsIndexableLength; |
321 | 321 |
322 ir.Procedure get checkConcurrentModificationError => | 322 ir.Procedure get checkConcurrentModificationError => |
323 kernel.functions[_backend.helpers.checkConcurrentModificationError]; | 323 kernel.functions[_backend.helpers.checkConcurrentModificationError]; |
324 | 324 |
325 TypeMask get checkConcurrentModificationErrorReturnType => | 325 TypeMask get checkConcurrentModificationErrorReturnType => |
326 TypeMaskFactory.inferredReturnTypeForElement( | 326 TypeMaskFactory.inferredReturnTypeForElement( |
327 _backend.helpers.checkConcurrentModificationError, _compiler); | 327 _backend.helpers.checkConcurrentModificationError, _compiler); |
328 | 328 |
| 329 ir.Procedure get checkSubtype => |
| 330 kernel.functions[_backend.helpers.checkSubtype]; |
| 331 |
| 332 ir.Procedure get checkSubtypeOfRuntimeType => |
| 333 kernel.functions[_backend.helpers.checkSubtypeOfRuntimeType]; |
| 334 |
329 ir.Procedure get assertHelper => | 335 ir.Procedure get assertHelper => |
330 kernel.functions[_backend.helpers.assertHelper]; | 336 kernel.functions[_backend.helpers.assertHelper]; |
331 | 337 |
332 TypeMask get throwTypeErrorType => TypeMaskFactory | 338 TypeMask get throwTypeErrorType => TypeMaskFactory |
333 .inferredReturnTypeForElement(_backend.helpers.throwTypeError, _compiler); | 339 .inferredReturnTypeForElement(_backend.helpers.throwTypeError, _compiler); |
334 | 340 |
335 TypeMask get assertHelperReturnType => TypeMaskFactory | 341 TypeMask get assertHelperReturnType => TypeMaskFactory |
336 .inferredReturnTypeForElement(_backend.helpers.assertHelper, _compiler); | 342 .inferredReturnTypeForElement(_backend.helpers.assertHelper, _compiler); |
337 | 343 |
338 ir.Procedure get assertTest => kernel.functions[_backend.helpers.assertTest]; | 344 ir.Procedure get assertTest => kernel.functions[_backend.helpers.assertTest]; |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
775 astAdapter.reporter.internalError( | 781 astAdapter.reporter.internalError( |
776 CURRENT_ELEMENT_SPANNABLE, "Unexpected constant target: $element."); | 782 CURRENT_ELEMENT_SPANNABLE, "Unexpected constant target: $element."); |
777 return null; | 783 return null; |
778 } | 784 } |
779 | 785 |
780 @override | 786 @override |
781 ConstantExpression visitStringLiteral(ir.StringLiteral node) { | 787 ConstantExpression visitStringLiteral(ir.StringLiteral node) { |
782 return new StringConstantExpression(node.value); | 788 return new StringConstantExpression(node.value); |
783 } | 789 } |
784 } | 790 } |
OLD | NEW |