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

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: Cosmetic change (updated comment). 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') | lib/compiler/implementation/enqueue.dart » ('J')
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 ca6ca2ba8cb60374a28e6029a5089e9d50e33292..e4f38156cb3b7fcefadc91849b3e83cd5679b18d 100644
--- a/lib/compiler/implementation/compiler.dart
+++ b/lib/compiler/implementation/compiler.dart
@@ -49,6 +49,18 @@ class Backend {
Collection<LibraryElement> libraries);
abstract void assembleProgram();
abstract List<CompilerTask> get tasks();
+
+ WorkItem createWorkItem(Element element, TreeElements elements) {
+ return new WorkItem(element, elements);
+ }
+}
+
+class JavaScriptWorkItem extends WorkItem {
+ HTypeMap types;
+
+ JavaScriptWorkItem(Element element, TreeElements elements)
+ : types = new HTypeMap(),
+ super(element, elements);
}
class JavaScriptBackend extends Backend {
@@ -204,6 +216,10 @@ class JavaScriptBackend extends Backend {
if (!fields.containsKey(field)) return HType.CONFLICTING;
return fields[field];
}
+
+ JavaScriptWorkItem createWorkItem(Element element, TreeElements elements) {
+ return new JavaScriptWorkItem(element, elements);
+ }
}
class Compiler implements DiagnosticListener {
@@ -1072,7 +1088,7 @@ class Tracer {
const Tracer();
- void traceCompilation(String methodName) {
+ void traceCompilation(String methodName, WorkItem work) {
}
void traceGraph(String name, var graph) {
« no previous file with comments | « no previous file | lib/compiler/implementation/enqueue.dart » ('j') | lib/compiler/implementation/enqueue.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698