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

Unified Diff: sdk/lib/_internal/compiler/implementation/compiler.dart

Issue 11602016: Emit classes using ASTs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 12 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/compiler/implementation/compiler.dart
diff --git a/sdk/lib/_internal/compiler/implementation/compiler.dart b/sdk/lib/_internal/compiler/implementation/compiler.dart
index 636fcc530952bc44532781cfc2215c708c93adf1..e16fe4e9b8e2de1d8694a1ad27cb683ae334808e 100644
--- a/sdk/lib/_internal/compiler/implementation/compiler.dart
+++ b/sdk/lib/_internal/compiler/implementation/compiler.dart
@@ -51,8 +51,8 @@ class WorkItem {
bool isAnalyzed() => resolutionTree != null;
void run(Compiler compiler, Enqueuer world) {
- CodeBuffer codeBuffer = world.universe.generatedCode[element];
- if (codeBuffer != null) return;
+ js.Expression code = world.universe.generatedCode[element];
ngeoffray 2013/01/10 10:40:07 Did you measure the memory impact of this change?
sra1 2013/01/10 16:32:42 Is there a convenient way to do this?
+ if (code != null) return;
resolutionTree = compiler.analyze(this, world);
compiler.codegen(this, world);
}

Powered by Google App Engine
This is Rietveld 408576698