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

Unified Diff: src/ast.h

Issue 15735005: Collect type feedback for power-of-2 right operands in BinaryOps. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: ARM INT32 stub Created 7 years, 7 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: src/ast.h
diff --git a/src/ast.h b/src/ast.h
index 4e851f217c8279d6173fd4259ed3fff25fc2dd4c..373adf953440ae692e44fffba7e3d29487c19684 100644
--- a/src/ast.h
+++ b/src/ast.h
@@ -1799,6 +1799,8 @@ class BinaryOperation: public Expression {
TypeInfo left_type() const { return left_type_; }
TypeInfo right_type() const { return right_type_; }
TypeInfo result_type() const { return result_type_; }
+ bool has_fixed_right_arg() const { return has_fixed_right_arg_; }
+ int fixed_right_arg_value() const { return fixed_right_arg_value_; }
protected:
BinaryOperation(Isolate* isolate,
@@ -1824,6 +1826,8 @@ class BinaryOperation: public Expression {
TypeInfo left_type_;
TypeInfo right_type_;
TypeInfo result_type_;
+ bool has_fixed_right_arg_;
+ int fixed_right_arg_value_;
// The short-circuit logical operations need an AST ID for their
// right-hand subexpression.

Powered by Google App Engine
This is Rietveld 408576698