| 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);
|
| });
|
| }
|
|
|
|
|