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 '../common.dart'; | 8 import '../common.dart'; |
9 import '../compiler.dart'; | 9 import '../compiler.dart'; |
10 import '../constants/expressions.dart'; | 10 import '../constants/expressions.dart'; |
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 TypeMaskFactory.inferredReturnTypeForElement( | 416 TypeMaskFactory.inferredReturnTypeForElement( |
417 _backend.helpers.checkConcurrentModificationError, | 417 _backend.helpers.checkConcurrentModificationError, |
418 _globalInferenceResults); | 418 _globalInferenceResults); |
419 | 419 |
420 ir.Procedure get checkSubtype => | 420 ir.Procedure get checkSubtype => |
421 kernel.functions[_backend.helpers.checkSubtype]; | 421 kernel.functions[_backend.helpers.checkSubtype]; |
422 | 422 |
423 ir.Procedure get checkSubtypeOfRuntimeType => | 423 ir.Procedure get checkSubtypeOfRuntimeType => |
424 kernel.functions[_backend.helpers.checkSubtypeOfRuntimeType]; | 424 kernel.functions[_backend.helpers.checkSubtypeOfRuntimeType]; |
425 | 425 |
| 426 ir.Procedure get functionTypeTest => |
| 427 kernel.functions[_backend.helpers.functionTypeTest]; |
| 428 |
426 ir.Procedure get throwTypeError => | 429 ir.Procedure get throwTypeError => |
427 kernel.functions[_backend.helpers.throwTypeError]; | 430 kernel.functions[_backend.helpers.throwTypeError]; |
428 | 431 |
429 TypeMask get throwTypeErrorType => | 432 TypeMask get throwTypeErrorType => |
430 TypeMaskFactory.inferredReturnTypeForElement( | 433 TypeMaskFactory.inferredReturnTypeForElement( |
431 _backend.helpers.throwTypeError, _globalInferenceResults); | 434 _backend.helpers.throwTypeError, _globalInferenceResults); |
432 | 435 |
433 ir.Procedure get assertHelper => | 436 ir.Procedure get assertHelper => |
434 kernel.functions[_backend.helpers.assertHelper]; | 437 kernel.functions[_backend.helpers.assertHelper]; |
435 | 438 |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
791 JumpTarget continueTarget = | 794 JumpTarget continueTarget = |
792 astAdapter.getJumpTarget(switchCase, isContinueTarget: true); | 795 astAdapter.getJumpTarget(switchCase, isContinueTarget: true); |
793 assert(continueTarget is KernelJumpTarget); | 796 assert(continueTarget is KernelJumpTarget); |
794 targetIndexMap[continueTarget] = switchIndex; | 797 targetIndexMap[continueTarget] = switchIndex; |
795 assert(builder.jumpTargets[continueTarget] == null); | 798 assert(builder.jumpTargets[continueTarget] == null); |
796 builder.jumpTargets[continueTarget] = this; | 799 builder.jumpTargets[continueTarget] = this; |
797 switchIndex++; | 800 switchIndex++; |
798 } | 801 } |
799 } | 802 } |
800 } | 803 } |
OLD | NEW |