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

Unified Diff: pkg/fletchc/lib/incremental/library_updater.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/compiler.dart ('k') | pkg/fletchc/lib/src/closure_environment.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/fletchc/lib/incremental/library_updater.dart
diff --git a/pkg/fletchc/lib/incremental/library_updater.dart b/pkg/fletchc/lib/incremental/library_updater.dart
index 2f40a7e0db18909030a87b5b507f26561a9483d5..e6d036c83e2648e9500ca83cb9869c5f81d2cdd0 100644
--- a/pkg/fletchc/lib/incremental/library_updater.dart
+++ b/pkg/fletchc/lib/incremental/library_updater.dart
@@ -60,8 +60,8 @@ import 'package:compiler/src/tree/tree.dart' show
import '../src/fletch_backend.dart' show
FletchBackend;
-import '../src/compiled_class.dart' show
- CompiledClass;
+import '../src/fletch_class_builder.dart' show
+ FletchClassBuilder;
import '../commands.dart' show
Command,
@@ -98,8 +98,8 @@ import 'fletchc_incremental.dart' show
IncrementalCompilationFailed,
IncrementalCompiler;
-import '../src/compiled_function.dart' show
- CompiledFunction;
+import '../src/fletch_function_builder.dart' show
+ FletchFunctionBuilder;
typedef void Logger(message);
@@ -862,12 +862,12 @@ class LibraryUpdater extends FletchFeatures {
}
for (ClassElementX element in _classesWithSchemaChanges) {
- CompiledClass compiledClass = backend.compiledClasses[element];
- int id = compiledClass.id;
+ FletchClassBuilder classBuilder = backend.classBuilders[element];
+ int id = classBuilder.id;
updates.add(new commands_lib.PushFromMap(MapId.classes, id));
- compiledClass.createImplicitAccessors(backend);
- Map<int, int> methodTable = compiledClass.computeMethodTable(backend);
+ classBuilder.createImplicitAccessors(backend);
+ Map<int, int> methodTable = classBuilder.computeMethodTable(backend);
methodTable.forEach((int selector, int methodId) {
updates.add(new commands_lib.PushNewInteger(selector));
@@ -893,12 +893,12 @@ class LibraryUpdater extends FletchFeatures {
}
void computeMethodUpdateFletch(Element element, List<Command> commands) {
- CompiledFunction function = lookupCompiledFunction(element);
+ FletchFunctionBuilder function = lookupFletchFunctionBuilder(element);
backend.pushNewFunction(function, commands, deferredActions);
if (element == backend.context.compiler.mainFunction) {
deferredActions.add(() {
- CompiledFunction callMain =
- lookupCompiledFunction(
+ FletchFunctionBuilder callMain =
+ lookupFletchFunctionBuilder(
backend.fletchSystemLibrary.findLocal('callMain'));
commands.add(
new commands_lib.PushFromMap(MapId.methods, callMain.methodId));
@@ -912,7 +912,7 @@ class LibraryUpdater extends FletchFeatures {
void computeSchemaChange(ClassElementX element,
Map<FieldElementX, int> beforeFields,
List<Command> commands) {
- CompiledClass compiledClass = backend.compiledClasses[element];
+ FletchClassBuilder classBuilder = backend.classBuilders[element];
// Collect the list of fields as they should exist after the transformation.
List<FieldElementX> afterFields = [];
@@ -926,7 +926,7 @@ class LibraryUpdater extends FletchFeatures {
Queue<ClassElementX> workQueue = new Queue<ClassElementX>()..add(element);
while (workQueue.isNotEmpty) {
ClassElementX current = workQueue.removeFirst();
- int id = backend.compiledClasses[current].id;
+ int id = backend.classBuilders[current].id;
commands.add(new commands_lib.PushFromMap(MapId.classes, id));
numberOfClasses++;
// Add all subclasses that aren't schema change target themselves to
@@ -1152,7 +1152,7 @@ class RemovedFieldUpdate extends RemovalUpdate with FletchFeatures {
bool wasStateCaptured = false;
- CompiledClass beforeCompiledClass;
+ FletchClassBuilder beforeFletchClassBuilder;
Map<FieldElement, int> beforeFields;
RemovedFieldUpdate(Compiler compiler, this.element)
@@ -1376,8 +1376,8 @@ abstract class FletchFeatures {
EnqueueTask get enqueuer => compiler.enqueuer;
- CompiledFunction lookupCompiledFunction(FunctionElement function) {
- return backend.compiledFunctions[function];
+ FletchFunctionBuilder lookupFletchFunctionBuilder(FunctionElement function) {
+ return backend.functionBuilders[function];
}
}
« no previous file with comments | « pkg/fletchc/lib/compiler.dart ('k') | pkg/fletchc/lib/src/closure_environment.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698