Index: src/ast.cc |
diff --git a/src/ast.cc b/src/ast.cc |
index ac81e751afb31f1ea89e8e47ac1cd68c6b198e2b..6bbbe641cf42259a623550b425248eca91298f3b 100644 |
--- a/src/ast.cc |
+++ b/src/ast.cc |
@@ -59,24 +59,27 @@ bool Expression::IsUndefinedLiteral(Isolate* isolate) const { |
} |
-VariableProxy::VariableProxy(Zone* zone, Variable* var, int position) |
- : Expression(zone, position), |
+VariableProxy::VariableProxy(Zone* zone, Variable* var, int start_position, |
+ int end_position) |
+ : Expression(zone, start_position), |
bit_field_(IsThisField::encode(var->is_this()) | |
IsAssignedField::encode(false) | |
IsResolvedField::encode(false)), |
variable_feedback_slot_(FeedbackVectorICSlot::Invalid()), |
- raw_name_(var->raw_name()) { |
+ raw_name_(var->raw_name()), |
+ end_position_(end_position) { |
BindTo(var); |
} |
VariableProxy::VariableProxy(Zone* zone, const AstRawString* name, bool is_this, |
- int position) |
- : Expression(zone, position), |
+ int start_position, int end_position) |
+ : Expression(zone, start_position), |
bit_field_(IsThisField::encode(is_this) | IsAssignedField::encode(false) | |
IsResolvedField::encode(false)), |
variable_feedback_slot_(FeedbackVectorICSlot::Invalid()), |
- raw_name_(name) {} |
+ raw_name_(name), |
+ end_position_(end_position) {} |
void VariableProxy::BindTo(Variable* var) { |