Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(548)

Side by Side Diff: pkg/compiler/lib/src/js_emitter/full_emitter/setup_program_builder.dart

Issue 2852603003: Move JsInteropAnalysis.onQueueClosed to AnnotationProcessor.processJsInteropAnnotation (Closed)
Patch Set: Register anonymous classes correctly + add test Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 'classFieldsExtractor': classFieldsExtractorAccess, 117 'classFieldsExtractor': classFieldsExtractorAccess,
118 'instanceFromClassId': instanceFromClassIdAccess, 118 'instanceFromClassId': instanceFromClassIdAccess,
119 'initializeEmptyInstance': initializeEmptyInstanceAccess, 119 'initializeEmptyInstance': initializeEmptyInstanceAccess,
120 'allClasses': allClassesAccess, 120 'allClasses': allClassesAccess,
121 'debugFastObjects': DEBUG_FAST_OBJECTS, 121 'debugFastObjects': DEBUG_FAST_OBJECTS,
122 'isTreeShakingDisabled': backend.mirrorsData.isTreeShakingDisabled, 122 'isTreeShakingDisabled': backend.mirrorsData.isTreeShakingDisabled,
123 'precompiled': precompiledAccess, 123 'precompiled': precompiledAccess,
124 'finishedClassesAccess': finishedClassesAccess, 124 'finishedClassesAccess': finishedClassesAccess,
125 'needsMixinSupport': emitter.needsMixinSupport, 125 'needsMixinSupport': emitter.needsMixinSupport,
126 'needsNativeSupport': program.needsNativeSupport, 126 'needsNativeSupport': program.needsNativeSupport,
127 'enabledJsInterop': backend.jsInteropAnalysis.enabledJsInterop, 127 'enabledJsInterop': backend.nativeBasicData.isJsInteropUsed,
128 'jsInteropBoostrap': backend.jsInteropAnalysis.buildJsInteropBootstrap(), 128 'jsInteropBoostrap': backend.jsInteropAnalysis.buildJsInteropBootstrap(),
129 'isInterceptorClass': 129 'isInterceptorClass':
130 namer.operatorIs(compiler.commonElements.jsInterceptorClass), 130 namer.operatorIs(compiler.commonElements.jsInterceptorClass),
131 'isObject': namer.operatorIs(compiler.commonElements.objectClass), 131 'isObject': namer.operatorIs(compiler.commonElements.objectClass),
132 'specProperty': js.string(namer.nativeSpecProperty), 132 'specProperty': js.string(namer.nativeSpecProperty),
133 'trivialNsmHandlers': emitter.buildTrivialNsmHandlers(), 133 'trivialNsmHandlers': emitter.buildTrivialNsmHandlers(),
134 'hasRetainedMetadata': backend.mirrorsData.hasRetainedMetadata, 134 'hasRetainedMetadata': backend.mirrorsData.hasRetainedMetadata,
135 'types': typesAccess, 135 'types': typesAccess,
136 'objectClassName': js.quoteName(namer.runtimeTypeName( 136 'objectClassName': js.quoteName(namer.runtimeTypeName(
137 // ignore: UNNECESSARY_CAST 137 // ignore: UNNECESSARY_CAST
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after
844 (function() { 844 (function() {
845 var result = $array[$index]; 845 var result = $array[$index];
846 if ($check) { 846 if ($check) {
847 throw new Error( 847 throw new Error(
848 name + ": expected value of type \'$type\' at index " + ($index) + 848 name + ": expected value of type \'$type\' at index " + ($index) +
849 " but got " + (typeof result)); 849 " but got " + (typeof result));
850 } 850 }
851 return result; 851 return result;
852 })()'''; 852 })()''';
853 } 853 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698