Chromium Code Reviews| Index: pkg/fletchc/lib/src/debug_info_lazy_field_initializer_codegen.dart |
| diff --git a/pkg/fletchc/lib/src/debug_info_lazy_field_initializer_codegen.dart b/pkg/fletchc/lib/src/debug_info_lazy_field_initializer_codegen.dart |
| index 2f01603e1693b88c87adf1f78869e65659a35c27..4562ce7f658d1ba11dc1e861ea8107fa4a17edf5 100644 |
| --- a/pkg/fletchc/lib/src/debug_info_lazy_field_initializer_codegen.dart |
| +++ b/pkg/fletchc/lib/src/debug_info_lazy_field_initializer_codegen.dart |
| @@ -21,8 +21,8 @@ import 'package:compiler/src/util/util.dart' show |
| import 'fletch_context.dart'; |
| -import 'compiled_function.dart' show |
| - CompiledFunction; |
| +import 'fletch_function_builder.dart' show |
| + FletchFunctionBuilder; |
| import 'closure_environment.dart'; |
| import 'codegen_visitor.dart'; |
| @@ -38,10 +38,10 @@ class DebugInfoLazyFieldInitializerCodegen |
| // function with incorrect bytecode. |
| final BytecodeBuilder debugBuilder; |
| - // TODO(ajohnsen): Consider creating a DebugCompiledFunction instead of only |
| + // TODO(ajohnsen): Consider creating a DebugFletchFunctionBuilder instead of only |
|
ahe
2015/06/09 09:14:56
Long line.
Anders Johnsen
2015/06/09 10:15:41
Done.
|
| // intercepting the BytecodeBuilder, or simply replace the BytecodeBuilder |
| - // in the CompiledFunction. |
| - DebugInfoLazyFieldInitializerCodegen(CompiledFunction compiledFunction, |
| + // in the FletchFunctionBuilder. |
| + DebugInfoLazyFieldInitializerCodegen(FletchFunctionBuilder functionBuilder, |
| FletchContext context, |
| TreeElements elements, |
| Registry registry, |
| @@ -50,25 +50,25 @@ class DebugInfoLazyFieldInitializerCodegen |
| this.compiler, |
| [BytecodeBuilder builder]) |
| : debugBuilder = (builder == null) |
| - ? new BytecodeBuilder(compiledFunction.arity) |
| + ? new BytecodeBuilder(functionBuilder.arity) |
| : builder, |
| - super(compiledFunction, context, elements, registry, |
| + super(functionBuilder, context, elements, registry, |
| closureEnvironment, field); |
| BytecodeBuilder get builder => debugBuilder; |
| void recordDebugInfo(Node node) { |
| - compiledFunction.debugInfo.addLocation(compiler, builder.byteSize, node); |
| + functionBuilder.debugInfo.addLocation(compiler, builder.byteSize, node); |
| } |
| void pushVariableDeclaration(LocalValue value) { |
| super.pushVariableDeclaration(value); |
| - compiledFunction.debugInfo.pushScope(builder.byteSize, value); |
| + functionBuilder.debugInfo.pushScope(builder.byteSize, value); |
| } |
| void popVariableDeclaration(Element element) { |
| super.popVariableDeclaration(element); |
| - compiledFunction.debugInfo.popScope(builder.byteSize); |
| + functionBuilder.debugInfo.popScope(builder.byteSize); |
| } |
| void registerDynamicInvocation(Selector selector) { } |