| 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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 | 382 |
| 383 ir.Procedure get assertThrow => | 383 ir.Procedure get assertThrow => |
| 384 kernel.functions[_backend.helpers.assertThrow]; | 384 kernel.functions[_backend.helpers.assertThrow]; |
| 385 | 385 |
| 386 ir.Procedure get setRuntimeTypeInfo => | 386 ir.Procedure get setRuntimeTypeInfo => |
| 387 kernel.functions[_backend.helpers.setRuntimeTypeInfo]; | 387 kernel.functions[_backend.helpers.setRuntimeTypeInfo]; |
| 388 | 388 |
| 389 TypeMask get assertThrowReturnType => TypeMaskFactory | 389 TypeMask get assertThrowReturnType => TypeMaskFactory |
| 390 .inferredReturnTypeForElement(_backend.helpers.assertThrow, _compiler); | 390 .inferredReturnTypeForElement(_backend.helpers.assertThrow, _compiler); |
| 391 | 391 |
| 392 ir.Procedure get runtimeTypeToString => |
| 393 kernel.functions[_backend.helpers.runtimeTypeToString]; |
| 394 |
| 395 ir.Procedure get createRuntimeType => |
| 396 kernel.functions[_backend.helpers.createRuntimeType]; |
| 397 |
| 398 TypeMask get createRuntimeTypeReturnType => |
| 399 TypeMaskFactory.inferredReturnTypeForElement( |
| 400 _backend.helpers.createRuntimeType, _compiler); |
| 401 |
| 392 ir.Class get objectClass => kernel.classes[_compiler.coreClasses.objectClass]; | 402 ir.Class get objectClass => kernel.classes[_compiler.coreClasses.objectClass]; |
| 393 | 403 |
| 394 ir.Procedure get currentIsolate => | 404 ir.Procedure get currentIsolate => |
| 395 kernel.functions[_backend.helpers.currentIsolate]; | 405 kernel.functions[_backend.helpers.currentIsolate]; |
| 396 | 406 |
| 397 ir.Procedure get callInIsolate => | 407 ir.Procedure get callInIsolate => |
| 398 kernel.functions[_backend.helpers.callInIsolate]; | 408 kernel.functions[_backend.helpers.callInIsolate]; |
| 399 | 409 |
| 400 bool isInForeignLibrary(ir.Member member) => | 410 bool isInForeignLibrary(ir.Member member) => |
| 401 _backend.isForeign(getElement(member)); | 411 _backend.isForeign(getElement(member)); |
| (...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 833 astAdapter.reporter.internalError( | 843 astAdapter.reporter.internalError( |
| 834 CURRENT_ELEMENT_SPANNABLE, "Unexpected constant target: $element."); | 844 CURRENT_ELEMENT_SPANNABLE, "Unexpected constant target: $element."); |
| 835 return null; | 845 return null; |
| 836 } | 846 } |
| 837 | 847 |
| 838 @override | 848 @override |
| 839 ConstantExpression visitStringLiteral(ir.StringLiteral node) { | 849 ConstantExpression visitStringLiteral(ir.StringLiteral node) { |
| 840 return new StringConstantExpression(node.value); | 850 return new StringConstantExpression(node.value); |
| 841 } | 851 } |
| 842 } | 852 } |
| OLD | NEW |