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

Unified Diff: pkg/fletchc/lib/src/debug_info_function_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
Index: pkg/fletchc/lib/src/debug_info_function_codegen.dart
diff --git a/pkg/fletchc/lib/src/debug_info_function_codegen.dart b/pkg/fletchc/lib/src/debug_info_function_codegen.dart
index 6baa69e2e4c0b35575892f2faacb1938dceafd2b..2c39a34dced39f861d94c2ba0b53d126eed53c2e 100644
--- a/pkg/fletchc/lib/src/debug_info_function_codegen.dart
+++ b/pkg/fletchc/lib/src/debug_info_function_codegen.dart
@@ -22,8 +22,8 @@ import 'bytecode_builder.dart';
import 'closure_environment.dart';
import 'codegen_visitor.dart';
-import 'compiled_function.dart' show
- CompiledFunction;
+import 'fletch_function_builder.dart' show
+ FletchFunctionBuilder;
import 'fletch_context.dart';
import 'function_codegen.dart';
@@ -37,33 +37,33 @@ class DebugInfoFunctionCodegen extends FunctionCodegen {
// function with incorrect bytecode.
final BytecodeBuilder debugBuilder;
- DebugInfoFunctionCodegen(CompiledFunction compiledFunction,
+ DebugInfoFunctionCodegen(FletchFunctionBuilder functionBuilder,
FletchContext context,
TreeElements elements,
Registry registry,
ClosureEnvironment closureEnvironment,
FunctionElement function,
this.compiler)
- : debugBuilder = new BytecodeBuilder(compiledFunction.arity),
- super(compiledFunction, context, elements, registry,
+ : debugBuilder = new BytecodeBuilder(functionBuilder.arity),
+ super(functionBuilder, context, elements, registry,
closureEnvironment, function) {
- if (compiledFunction.hasThisArgument) pushVariableDeclaration(thisValue);
+ if (functionBuilder.hasThisArgument) pushVariableDeclaration(thisValue);
}
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) { }

Powered by Google App Engine
This is Rietveld 408576698