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

Unified Diff: frog/leg/compiler.dart

Issue 9592009: Reapply "Refactor constant part." (r4958) with fixes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add TODO. Created 8 years, 9 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 | « frog/leg/compile_time_constants.dart ('k') | frog/leg/emitter.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/compiler.dart
diff --git a/frog/leg/compiler.dart b/frog/leg/compiler.dart
index c52fdd6b9746937324aa9b64a2a52c05be879180..c8e7d8bb56dd234bc264cfabe5ff762e49afdce3 100644
--- a/frog/leg/compiler.dart
+++ b/frog/leg/compiler.dart
@@ -76,7 +76,7 @@ class Compiler implements DiagnosticListener {
SsaOptimizerTask optimizer;
SsaCodeGeneratorTask generator;
CodeEmitterTask emitter;
- CompileTimeConstantHandler compileTimeConstantHandler;
+ ConstantHandler constantHandler;
static final SourceString MAIN = const SourceString('main');
static final SourceString NO_SUCH_METHOD = const SourceString('noSuchMethod');
@@ -91,7 +91,7 @@ class Compiler implements DiagnosticListener {
universe = new Universe(),
worklist = new Queue<WorkItem>() {
namer = new Namer(this);
- compileTimeConstantHandler = new CompileTimeConstantHandler(this);
+ constantHandler = new ConstantHandler(this);
scanner = new ScannerTask(this);
dietParser = new DietParserTask(this);
parser = new ParserTask(this);
@@ -104,7 +104,7 @@ class Compiler implements DiagnosticListener {
emitter = new CodeEmitterTask(this);
tasks = [scanner, dietParser, parser, resolver, checker,
builder, optimizer, generator,
- emitter, compileTimeConstantHandler];
+ emitter, constantHandler];
}
void ensure(bool condition) {
@@ -296,7 +296,7 @@ class Compiler implements DiagnosticListener {
String code;
if (work.element.kind == ElementKind.FIELD
|| work.element.kind == ElementKind.PARAMETER) {
- compileTimeConstantHandler.compileWorkItem(work);
+ constantHandler.compileWorkItem(work);
return null;
} else {
HGraph graph = builder.build(work);
@@ -364,7 +364,7 @@ class Compiler implements DiagnosticListener {
Object compileVariable(VariableElement element) {
return withCurrentElement(element, () {
compile(new WorkItem.toCompile(element));
- return compileTimeConstantHandler.compileVariable(element);
+ return constantHandler.compileVariable(element);
});
}
« no previous file with comments | « frog/leg/compile_time_constants.dart ('k') | frog/leg/emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698