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

Unified Diff: pkg/compiler/lib/src/tracer.dart

Issue 2302363003: No longer store the compilation-context in WorkItem. (Closed)
Patch Set: ... lint Created 4 years, 3 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/compiler/lib/src/ssa/value_range_analyzer.dart ('k') | tests/compiler/dart2js/compiler_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/tracer.dart
diff --git a/pkg/compiler/lib/src/tracer.dart b/pkg/compiler/lib/src/tracer.dart
index 21d2ed5c9d3d8cb66937f1bb3ff46c5a214565d1..e73e82aa63718861a99730ae4276eecedd34731b 100644
--- a/pkg/compiler/lib/src/tracer.dart
+++ b/pkg/compiler/lib/src/tracer.dart
@@ -7,7 +7,6 @@ library tracer;
import 'dart:async' show EventSink;
import '../compiler.dart' as api;
-import 'common/work.dart' show ItemCompilationContext;
import 'compiler.dart' show Compiler;
import 'ssa/nodes.dart' as ssa show HGraph;
import 'ssa/ssa_tracer.dart' show HTracer;
@@ -28,7 +27,6 @@ final RegExp TRACE_FILTER =
*/
class Tracer extends TracerUtil {
final Compiler compiler;
- ItemCompilationContext context;
bool traceActive = false;
final EventSink<String> output;
final bool isEnabled = TRACE_FILTER != null;
@@ -37,12 +35,10 @@ class Tracer extends TracerUtil {
: this.compiler = compiler,
output = TRACE_FILTER != null ? outputProvider('dart', 'cfg') : null;
- void traceCompilation(
- String methodName, ItemCompilationContext compilationContext) {
+ void traceCompilation(String methodName) {
if (!isEnabled) return;
traceActive = TRACE_FILTER.hasMatch(methodName);
if (!traceActive) return;
- this.context = compilationContext;
tag("compilation", () {
printProperty("name", methodName);
printProperty("method", methodName);
@@ -53,7 +49,7 @@ class Tracer extends TracerUtil {
void traceGraph(String name, var irObject) {
if (!traceActive) return;
if (irObject is ssa.HGraph) {
- new HTracer(output, compiler, context).traceGraph(name, irObject);
+ new HTracer(output, compiler).traceGraph(name, irObject);
}
}
« no previous file with comments | « pkg/compiler/lib/src/ssa/value_range_analyzer.dart ('k') | tests/compiler/dart2js/compiler_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698