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

Unified Diff: pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart

Issue 955543004: Pass SourceInformation through the CPS IR. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update comments Created 5 years, 10 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
Index: pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
diff --git a/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart b/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
index f1d56163157da376b22d540653a20edb6d686c7e..8499229718b3856e8d314a1c3ea27c9774fc705b 100644
--- a/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
+++ b/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
@@ -8,11 +8,12 @@ library dart2js.ir_nodes;
import '../constants/expressions.dart';
import '../constants/values.dart' as values show ConstantValue;
+import '../cps_ir/optimizers.dart';
+import '../dart_types.dart' show DartType, GenericType;
import '../dart2jslib.dart' as dart2js show invariant;
import '../elements/elements.dart';
+import '../io/source_information.dart' show SourceInformation;
import '../universe/universe.dart' show Selector, SelectorKind;
-import '../dart_types.dart' show DartType, GenericType;
-import '../cps_ir/optimizers.dart';
abstract class Node {
/// A pointer to the parent node. Is null until set by optimization passes.
@@ -209,9 +210,13 @@ class InvokeStatic extends Expression implements Invoke {
final Reference<Continuation> continuation;
final List<Reference<Primitive>> arguments;
+ final SourceInformation sourceInformation;
- InvokeStatic(this.target, this.selector, Continuation cont,
- List<Primitive> args)
+ InvokeStatic(this.target,
+ this.selector,
+ Continuation cont,
+ List<Primitive> args,
+ this.sourceInformation)
: continuation = new Reference<Continuation>(cont),
arguments = _referenceList(args) {
assert(target is ErroneousElement || selector.name == target.name);

Powered by Google App Engine
This is Rietveld 408576698