| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 part of dart2js.js_emitter.full_emitter; | 5 part of dart2js.js_emitter.full_emitter; |
| 6 | 6 |
| 7 // TODO(ahe): Share these with js_helper.dart. | 7 // TODO(ahe): Share these with js_helper.dart. |
| 8 const FUNCTION_INDEX = 0; | 8 const FUNCTION_INDEX = 0; |
| 9 const NAME_INDEX = 1; | 9 const NAME_INDEX = 1; |
| 10 const CALL_NAME_INDEX = 2; | 10 const CALL_NAME_INDEX = 2; |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 'classFieldsExtractor': classFieldsExtractorAccess, | 122 'classFieldsExtractor': classFieldsExtractorAccess, |
| 123 'instanceFromClassId': instanceFromClassIdAccess, | 123 'instanceFromClassId': instanceFromClassIdAccess, |
| 124 'initializeEmptyInstance': initializeEmptyInstanceAccess, | 124 'initializeEmptyInstance': initializeEmptyInstanceAccess, |
| 125 'allClasses': allClassesAccess, | 125 'allClasses': allClassesAccess, |
| 126 'debugFastObjects': DEBUG_FAST_OBJECTS, | 126 'debugFastObjects': DEBUG_FAST_OBJECTS, |
| 127 'isTreeShakingDisabled': backend.mirrorsData.isTreeShakingDisabled, | 127 'isTreeShakingDisabled': backend.mirrorsData.isTreeShakingDisabled, |
| 128 'precompiled': precompiledAccess, | 128 'precompiled': precompiledAccess, |
| 129 'finishedClassesAccess': finishedClassesAccess, | 129 'finishedClassesAccess': finishedClassesAccess, |
| 130 'needsMixinSupport': emitter.needsMixinSupport, | 130 'needsMixinSupport': emitter.needsMixinSupport, |
| 131 'needsNativeSupport': program.needsNativeSupport, | 131 'needsNativeSupport': program.needsNativeSupport, |
| 132 'enabledJsInterop': backend.nativeBasicData.isJsInteropUsed, | 132 'enabledJsInterop': closedWorld.nativeData.isJsInteropUsed, |
| 133 'jsInteropBoostrap': backend.jsInteropAnalysis.buildJsInteropBootstrap(), | 133 'jsInteropBoostrap': backend.jsInteropAnalysis.buildJsInteropBootstrap(), |
| 134 'isInterceptorClass': | 134 'isInterceptorClass': |
| 135 namer.operatorIs(closedWorld.commonElements.jsInterceptorClass), | 135 namer.operatorIs(closedWorld.commonElements.jsInterceptorClass), |
| 136 'isObject': namer.operatorIs(closedWorld.commonElements.objectClass), | 136 'isObject': namer.operatorIs(closedWorld.commonElements.objectClass), |
| 137 'specProperty': js.string(namer.nativeSpecProperty), | 137 'specProperty': js.string(namer.nativeSpecProperty), |
| 138 'trivialNsmHandlers': emitter.buildTrivialNsmHandlers(), | 138 'trivialNsmHandlers': emitter.buildTrivialNsmHandlers(), |
| 139 'hasRetainedMetadata': backend.mirrorsData.hasRetainedMetadata, | 139 'hasRetainedMetadata': backend.mirrorsData.hasRetainedMetadata, |
| 140 'types': typesAccess, | 140 'types': typesAccess, |
| 141 'objectClassName': js.quoteName( | 141 'objectClassName': js.quoteName( |
| 142 namer.runtimeTypeName(closedWorld.commonElements.objectClass)), | 142 namer.runtimeTypeName(closedWorld.commonElements.objectClass)), |
| (...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 848 (function() { | 848 (function() { |
| 849 var result = $array[$index]; | 849 var result = $array[$index]; |
| 850 if ($check) { | 850 if ($check) { |
| 851 throw new Error( | 851 throw new Error( |
| 852 name + ": expected value of type \'$type\' at index " + ($index) + | 852 name + ": expected value of type \'$type\' at index " + ($index) + |
| 853 " but got " + (typeof result)); | 853 " but got " + (typeof result)); |
| 854 } | 854 } |
| 855 return result; | 855 return result; |
| 856 })()'''; | 856 })()'''; |
| 857 } | 857 } |
| OLD | NEW |