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

Unified Diff: frog/leg/compiler.dart

Issue 9595017: Refactor constant part. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: More comment addressing. Created 8 years, 10 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 64f93cb6e2bb4d4490b52c961fce8c2a28c14f25..4969b229bd239087a578cf8a55918d642397fcb3 100644
--- a/frog/leg/compiler.dart
+++ b/frog/leg/compiler.dart
@@ -73,7 +73,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');
@@ -85,7 +85,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);
@@ -98,7 +98,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) {
@@ -288,7 +288,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);
@@ -356,7 +356,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