Index: src/ast.h |
diff --git a/src/ast.h b/src/ast.h |
index 1fe593e9359754d3b4ad3290fe13348a6ed47ae6..0bbb90452a674c21619b8abc167594a1fc63f4b8 100644 |
--- a/src/ast.h |
+++ b/src/ast.h |
@@ -1952,6 +1952,8 @@ class BinaryOperation V8_FINAL : public Expression { |
BailoutId RightId() const { return right_id_; } |
TypeFeedbackId BinaryOperationFeedbackId() const { return reuse(id()); } |
+ Maybe<int> fixed_right_arg() const { return fixed_right_arg_; } |
+ void set_fixed_right_arg(Maybe<int> arg) { fixed_right_arg_ = arg; } |
virtual void RecordToBooleanTypeFeedback( |
TypeFeedbackOracle* oracle) V8_OVERRIDE; |
@@ -1975,6 +1977,10 @@ class BinaryOperation V8_FINAL : public Expression { |
Expression* left_; |
Expression* right_; |
+ // TODO(rossberg): the fixed arg should probably be represented as a Constant |
+ // type for the RHS. |
+ Maybe<int> fixed_right_arg_; |
+ |
// The short-circuit logical operations need an AST ID for their |
// right-hand subexpression. |
const BailoutId right_id_; |