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

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

Issue 2938193003: Revert "Towards compiling Hello World!" and "Compile and run Hello World!" (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « pkg/compiler/lib/src/common/codegen.dart ('k') | pkg/compiler/lib/src/constants/expressions.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/compiler.dart
diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart
index 06bc95bda9e40b8f08afc2e0aac410d7b2ec7f16..c82f86e4d2c0d103a7b5f69d06522e0ef47e7700 100644
--- a/pkg/compiler/lib/src/compiler.dart
+++ b/pkg/compiler/lib/src/compiler.dart
@@ -610,7 +610,10 @@ abstract class Compiler {
reporter.log('Compiling...');
phase = PHASE_COMPILING;
- Enqueuer codegenEnqueuer = startCodegen(closedWorld);
+ Enqueuer codegenEnqueuer = enqueuer.createCodegenEnqueuer(closedWorld);
+ _codegenWorldBuilder = codegenEnqueuer.worldBuilder;
+ codegenEnqueuer.applyImpact(
+ backend.onCodegenStart(closedWorld, _codegenWorldBuilder));
if (compileAll) {
libraryLoader.libraries.forEach((LibraryEntity library) {
codegenEnqueuer.applyImpact(computeImpactForLibrary(library));
@@ -633,14 +636,6 @@ abstract class Compiler {
checkQueues(resolutionEnqueuer, codegenEnqueuer);
});
- Enqueuer startCodegen(ClosedWorld closedWorld) {
- Enqueuer codegenEnqueuer = enqueuer.createCodegenEnqueuer(closedWorld);
- _codegenWorldBuilder = codegenEnqueuer.worldBuilder;
- codegenEnqueuer
- .applyImpact(backend.onCodegenStart(closedWorld, _codegenWorldBuilder));
- return codegenEnqueuer;
- }
-
/// Perform the steps needed to fully end the resolution phase.
ClosedWorldRefiner closeResolution() {
phase = PHASE_DONE_RESOLVING;
« no previous file with comments | « pkg/compiler/lib/src/common/codegen.dart ('k') | pkg/compiler/lib/src/constants/expressions.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698