OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 library dart2js.js_backend.helpers; | 5 library dart2js.js_backend.helpers; |
6 | 6 |
7 import '../common.dart'; | 7 import '../common.dart'; |
8 import '../common/names.dart' show Identifiers, Uris; | 8 import '../common/names.dart' show Identifiers, Uris; |
9 import '../common/resolution.dart' show Resolution; | 9 import '../common/resolution.dart' show Resolution; |
10 import '../compiler.dart' show Compiler; | 10 import '../compiler.dart' show Compiler; |
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 | 546 |
547 Element get createRuntimeType { | 547 Element get createRuntimeType { |
548 return findHelper('createRuntimeType'); | 548 return findHelper('createRuntimeType'); |
549 } | 549 } |
550 | 550 |
551 Element get fallThroughError { | 551 Element get fallThroughError { |
552 return findHelper("getFallThroughError"); | 552 return findHelper("getFallThroughError"); |
553 } | 553 } |
554 | 554 |
555 Element get createInvocationMirror { | 555 Element get createInvocationMirror { |
556 return findHelper(Compiler.CREATE_INVOCATION_MIRROR); | 556 return findHelper('createInvocationMirror'); |
557 } | 557 } |
558 | 558 |
559 Element get cyclicThrowHelper { | 559 Element get cyclicThrowHelper { |
560 return findHelper("throwCyclicInit"); | 560 return findHelper("throwCyclicInit"); |
561 } | 561 } |
562 | 562 |
563 Element get asyncHelper { | 563 Element get asyncHelper { |
564 return findAsyncHelper("_asyncHelper"); | 564 return findAsyncHelper("_asyncHelper"); |
565 } | 565 } |
566 | 566 |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
706 MethodElement _objectNoSuchMethod; | 706 MethodElement _objectNoSuchMethod; |
707 | 707 |
708 MethodElement get objectNoSuchMethod { | 708 MethodElement get objectNoSuchMethod { |
709 if (_objectNoSuchMethod == null) { | 709 if (_objectNoSuchMethod == null) { |
710 _objectNoSuchMethod = | 710 _objectNoSuchMethod = |
711 coreClasses.objectClass.lookupLocalMember(Identifiers.noSuchMethod_); | 711 coreClasses.objectClass.lookupLocalMember(Identifiers.noSuchMethod_); |
712 } | 712 } |
713 return _objectNoSuchMethod; | 713 return _objectNoSuchMethod; |
714 } | 714 } |
715 } | 715 } |
OLD | NEW |