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

Side by Side Diff: pkg/compiler/lib/src/js_emitter/startup_emitter/fragment_emitter.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) 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 part of dart2js.js_emitter.startup_emitter.model_emitter; 5 part of dart2js.js_emitter.startup_emitter.model_emitter;
6 6
7 /// The name of the property that stores the tear-off getter on a static 7 /// The name of the property that stores the tear-off getter on a static
8 /// function. 8 /// function.
9 /// 9 ///
10 /// This property is only used when isolates are used. 10 /// This property is only used when isolates are used.
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 'inheritance': emitInheritance(fragment), 494 'inheritance': emitInheritance(fragment),
495 'aliases': emitInstanceMethodAliases(fragment), 495 'aliases': emitInstanceMethodAliases(fragment),
496 'tearOffs': emitInstallTearOffs(fragment), 496 'tearOffs': emitInstallTearOffs(fragment),
497 'constants': emitConstants(fragment), 497 'constants': emitConstants(fragment),
498 'staticNonFinalFields': emitStaticNonFinalFields(fragment), 498 'staticNonFinalFields': emitStaticNonFinalFields(fragment),
499 'lazyStatics': emitLazilyInitializedStatics(fragment), 499 'lazyStatics': emitLazilyInitializedStatics(fragment),
500 'embeddedGlobals': emitEmbeddedGlobals(program, deferredLoadHashes), 500 'embeddedGlobals': emitEmbeddedGlobals(program, deferredLoadHashes),
501 'nativeSupport': program.needsNativeSupport 501 'nativeSupport': program.needsNativeSupport
502 ? emitNativeSupport(fragment) 502 ? emitNativeSupport(fragment)
503 : new js.EmptyStatement(), 503 : new js.EmptyStatement(),
504 'jsInteropSupport': backend.jsInteropAnalysis.enabledJsInterop 504 'jsInteropSupport': backend.nativeBasicData.isJsInteropUsed
505 ? backend.jsInteropAnalysis.buildJsInteropBootstrap() 505 ? backend.jsInteropAnalysis.buildJsInteropBootstrap()
506 : new js.EmptyStatement(), 506 : new js.EmptyStatement(),
507 'invokeMain': fragment.invokeMain, 507 'invokeMain': fragment.invokeMain,
508 }); 508 });
509 } 509 }
510 510
511 js.Expression emitDeferredFragment(DeferredFragment fragment, 511 js.Expression emitDeferredFragment(DeferredFragment fragment,
512 js.Expression deferredTypes, List<Holder> holders) { 512 js.Expression deferredTypes, List<Holder> holders) {
513 List<Holder> nonStaticStateHolders = holders 513 List<Holder> nonStaticStateHolders = holders
514 .where((Holder holder) => !holder.isStaticStateHolder) 514 .where((Holder holder) => !holder.isStaticStateHolder)
(...skipping 951 matching lines...) Expand 10 before | Expand all | Expand 10 after
1466 } 1466 }
1467 statements.add(js.js.statement("setOrUpdateInterceptorsByTag(#);", 1467 statements.add(js.js.statement("setOrUpdateInterceptorsByTag(#);",
1468 js.objectLiteral(interceptorsByTag))); 1468 js.objectLiteral(interceptorsByTag)));
1469 statements.add( 1469 statements.add(
1470 js.js.statement("setOrUpdateLeafTags(#);", js.objectLiteral(leafTags))); 1470 js.js.statement("setOrUpdateLeafTags(#);", js.objectLiteral(leafTags)));
1471 statements.addAll(subclassAssignments); 1471 statements.addAll(subclassAssignments);
1472 1472
1473 return wrapPhase('nativeSupport', new js.Block(statements)); 1473 return wrapPhase('nativeSupport', new js.Block(statements));
1474 } 1474 }
1475 } 1475 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698