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

Unified Diff: pkg/kernel/lib/transformations/closure_conversion.dart

Issue 2937213002: Remove ContextClass that is not needed since we're using Vectors (Closed)
Patch Set: Merge in latest changes in master (f99509ad42) Created 3 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/kernel/lib/transformations/closure/mock.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/lib/transformations/closure_conversion.dart
diff --git a/pkg/kernel/lib/transformations/closure_conversion.dart b/pkg/kernel/lib/transformations/closure_conversion.dart
index 70f48f5dc1bc1665b8c28bc644640a1632150fe5..0dfb09f89f6478dac8218d6887a34ebfe6a71398 100644
--- a/pkg/kernel/lib/transformations/closure_conversion.dart
+++ b/pkg/kernel/lib/transformations/closure_conversion.dart
@@ -13,15 +13,12 @@ import 'closure/converter.dart' show ClosureConverter;
import 'closure/info.dart' show ClosureInfo;
import 'closure/invalidate_closures.dart';
-import 'closure/mock.dart'
- show mockUpContextForProgram, mockUpContextForLibraries;
Program transformProgram(CoreTypes coreTypes, Program program) {
var info = new ClosureInfo();
info.visitProgram(program);
- Class contextClass = mockUpContextForProgram(coreTypes, program);
- var convert = new ClosureConverter(coreTypes, info, contextClass);
+ var convert = new ClosureConverter(coreTypes, info);
program = convert.visitProgram(program);
return new InvalidateClosures().visitProgram(program);
}
@@ -32,8 +29,7 @@ void transformLibraries(CoreTypes coreTypes, List<Library> libraries) {
info.visitLibrary(library);
}
- Class contextClass = mockUpContextForLibraries(coreTypes, libraries);
- var convert = new ClosureConverter(coreTypes, info, contextClass);
+ var convert = new ClosureConverter(coreTypes, info);
for (int i = 0; i < libraries.length; i++) {
libraries[i] = convert.visitLibrary(libraries[i]);
}
« no previous file with comments | « pkg/kernel/lib/transformations/closure/mock.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698