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

Unified Diff: pkg/fletchc/lib/src/debug_info_lazy_field_initializer_codegen.dart

Issue 1170123004: Rename CompiledFunction to FletchFunctionBuilder and CompiledClass to FletchClassBuilder. (Closed) Base URL: git@github.com:dart-lang/fletch.git@master
Patch Set: Created 5 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/fletchc/lib/src/debug_info_function_codegen.dart ('k') | pkg/fletchc/lib/src/fletch_backend.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..88154dfd9d790ce44aba489ff1e1d1aee3d628eb 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
- // intercepting the BytecodeBuilder, or simply replace the BytecodeBuilder
- // in the CompiledFunction.
- DebugInfoLazyFieldInitializerCodegen(CompiledFunction compiledFunction,
+ // TODO(ajohnsen): Consider creating a DebugFletchFunctionBuilder instead of
+ // only intercepting the BytecodeBuilder, or simply replace the
+ // BytecodeBuilder 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) { }
« no previous file with comments | « pkg/fletchc/lib/src/debug_info_function_codegen.dart ('k') | pkg/fletchc/lib/src/fletch_backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698