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

Unified Diff: src/ast.h

Issue 16957004: Migrate BinaryOpICs and UnaryOpICs to new type rep (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments Created 7 years, 6 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 | « no previous file | src/ast.cc » ('j') | src/hydrogen.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast.h
diff --git a/src/ast.h b/src/ast.h
index b7ada60665869ca575a5180d934fe689238d9750..b07456b8f789ed9f03d6aa8b82a2409bf0fe004b 100644
--- a/src/ast.h
+++ b/src/ast.h
@@ -1837,7 +1837,7 @@ class UnaryOperation: public Expression {
TypeFeedbackId UnaryOperationFeedbackId() const { return reuse(id()); }
void RecordTypeFeedback(TypeFeedbackOracle* oracle);
- TypeInfo type() const { return type_; }
+ Handle<Type> type() const { return type_; }
protected:
UnaryOperation(Isolate* isolate,
@@ -1858,7 +1858,7 @@ class UnaryOperation: public Expression {
Expression* expression_;
int pos_;
- TypeInfo type_;
+ Handle<Type> type_;
// For unary not (Token::NOT), the AST ids where true and false will
// actually be materialized, respectively.
@@ -1882,9 +1882,9 @@ class BinaryOperation: public Expression {
TypeFeedbackId BinaryOperationFeedbackId() const { return reuse(id()); }
void RecordTypeFeedback(TypeFeedbackOracle* oracle);
- TypeInfo left_type() const { return left_type_; }
- TypeInfo right_type() const { return right_type_; }
- TypeInfo result_type() const { return result_type_; }
+ Handle<Type> left_type() const { return left_type_; }
+ Handle<Type> right_type() const { return right_type_; }
+ Handle<Type> 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_; }
@@ -1909,9 +1909,9 @@ class BinaryOperation: public Expression {
Expression* right_;
int pos_;
- TypeInfo left_type_;
- TypeInfo right_type_;
- TypeInfo result_type_;
+ Handle<Type> left_type_;
+ Handle<Type> right_type_;
+ Handle<Type> result_type_;
bool has_fixed_right_arg_;
int fixed_right_arg_value_;
« no previous file with comments | « no previous file | src/ast.cc » ('j') | src/hydrogen.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698