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

Unified Diff: dart/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart

Issue 768993003: Track emitted classes in incremental compiler. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove duplicated word in comment. Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: dart/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
diff --git a/dart/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart b/dart/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
index de0592bf213c3ee21daf25628e90cbb644ad198d..e8a991006eede407d83704e861f004971c3f3a75 100644
--- a/dart/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
+++ b/dart/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
@@ -321,21 +321,24 @@ class CodeEmitterTask extends CompilerTask {
backend.generatedCode.keys.forEach(addSurroundingLibraryToSet);
neededClasses.forEach(addSurroundingLibraryToSet);
-}
+ }
+
+ void computeNeeds() {
karlklose 2014/12/01 10:13:31 Perhaps you can find a better name than "needs". H
ahe 2014/12/01 10:28:35 Since most of the methods are called "computedNeed
ahe 2014/12/01 13:58:52 Discussed offline: I've renamed the method to comp
+ // Compute the required type checks to know which classes need a
+ // 'is$' method.
+ typeTestEmitter.computeRequiredTypeChecks();
+
+ computeNeededDeclarations();
+ computeNeededConstants();
+ computeNeededStatics();
+ computeNeededLibraries();
+ }
void assembleProgram() {
measure(() {
emitter.invalidateCaches();
- // Compute the required type checks to know which classes need a
- // 'is$' method.
- typeTestEmitter.computeRequiredTypeChecks();
-
- computeNeededDeclarations();
- computeNeededConstants();
- computeNeededStatics();
- computeNeededLibraries();
-
+ computeNeeds();
Program program;
if (USE_NEW_EMITTER) {

Powered by Google App Engine
This is Rietveld 408576698