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

Unified Diff: lib/compiler/implementation/compiler.dart

Issue 10827180: Move types out of the HInstructions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 4 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 | « no previous file | lib/compiler/implementation/enqueue.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/compiler.dart
diff --git a/lib/compiler/implementation/compiler.dart b/lib/compiler/implementation/compiler.dart
index bf51eb7a1c4a8ee12d839c316677aecbf2256d27..87b0d5b6b379bd1d85720679af06521472ff4252 100644
--- a/lib/compiler/implementation/compiler.dart
+++ b/lib/compiler/implementation/compiler.dart
@@ -14,13 +14,21 @@ final bool REPORT_EXCESS_RESOLUTION = false;
*/
final bool REPORT_PASS2_OPTIMIZATIONS = false;
+/**
+ * Contains backend-specific data that is used throughout the compilation of
+ * one work item.
+ */
+class ItemCompilationContext {
+}
+
class WorkItem {
+ final ItemCompilationContext compilationContext;
final Element element;
TreeElements resolutionTree;
bool allowSpeculativeOptimization = true;
List<HTypeGuard> guards = const <HTypeGuard>[];
- WorkItem(this.element, this.resolutionTree);
+ WorkItem(this.element, this.resolutionTree, this.compilationContext);
bool isAnalyzed() => resolutionTree !== null;
@@ -49,6 +57,10 @@ class Backend {
Collection<LibraryElement> libraries);
abstract void assembleProgram();
abstract List<CompilerTask> get tasks();
+
+ ItemCompilationContext createItemCompilationContext() {
+ return new ItemCompilationContext();
+ }
}
class Compiler implements DiagnosticListener {
@@ -920,7 +932,7 @@ class Tracer {
const Tracer();
- void traceCompilation(String methodName) {
+ void traceCompilation(String methodName, ItemCompilationContext context) {
}
void traceGraph(String name, var graph) {
« no previous file with comments | « no previous file | lib/compiler/implementation/enqueue.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698