Revision: 15505
Author:   [email protected]
Date:     Fri Jul  5 01:49:37 2013
Log:      Unrevert "Remove BinaryOp::result_type""

Reenables https://code.google.com/p/v8/source/detail?r=15265

[email protected]
BUG=

Review URL: https://codereview.chromium.org/18309005
http://code.google.com/p/v8/source/detail?r=15505

Modified:
 /branches/bleeding_edge/src/ast.h
 /branches/bleeding_edge/src/hydrogen.cc
 /branches/bleeding_edge/src/type-info.h
 /branches/bleeding_edge/src/typing.cc

=======================================
--- /branches/bleeding_edge/src/ast.h   Tue Jul  2 04:57:43 2013
+++ /branches/bleeding_edge/src/ast.h   Fri Jul  5 01:49:37 2013
@@ -1884,9 +1884,6 @@
   BailoutId RightId() const { return right_id_; }

   TypeFeedbackId BinaryOperationFeedbackId() const { return reuse(id()); }
-  // TODO(rossberg): result_type should be subsumed by lower_type.
-  Handle<Type> result_type() const { return result_type_; }
-  void set_result_type(Handle<Type> type) { result_type_ = type; }
   Maybe<int> fixed_right_arg() const { return fixed_right_arg_; }
   void set_fixed_right_arg(Maybe<int> arg) { fixed_right_arg_ = arg; }

@@ -1913,7 +1910,6 @@
   Expression* right_;
   int pos_;

-  Handle<Type> result_type_;
// TODO(rossberg): the fixed arg should probably be represented as a Constant
   // type for the RHS.
   Maybe<int> fixed_right_arg_;
=======================================
--- /branches/bleeding_edge/src/hydrogen.cc     Thu Jul  4 12:25:16 2013
+++ /branches/bleeding_edge/src/hydrogen.cc     Fri Jul  5 01:49:37 2013
@@ -8675,7 +8675,7 @@
   HValue* context = environment()->LookupContext();
   Handle<Type> left_type = expr->left()->lower_type();
   Handle<Type> right_type = expr->right()->lower_type();
-  Handle<Type> result_type = expr->result_type();
+  Handle<Type> result_type = expr->lower_type();
   Maybe<int> fixed_right_arg = expr->fixed_right_arg();
   Representation left_rep = ToRepresentation(left_type);
   Representation right_rep = ToRepresentation(right_type);
=======================================
--- /branches/bleeding_edge/src/type-info.h     Tue Jul  2 04:57:43 2013
+++ /branches/bleeding_edge/src/type-info.h     Fri Jul  5 01:49:37 2013
@@ -303,9 +303,9 @@
                   Maybe<int>* fixed_right_arg);

   void CompareType(TypeFeedbackId id,
-                   Handle<Type>* left_type,
-                   Handle<Type>* right_type,
-                   Handle<Type>* combined_type);
+                   Handle<Type>* left,
+                   Handle<Type>* right,
+                   Handle<Type>* combined);

   Handle<Type> ClauseType(TypeFeedbackId id);

=======================================
--- /branches/bleeding_edge/src/typing.cc       Tue Jul  2 04:57:43 2013
+++ /branches/bleeding_edge/src/typing.cc       Fri Jul  5 01:49:37 2013
@@ -432,13 +432,13 @@
   CHECK_ALIVE(Visit(expr->right()));

   // Collect type feedback.
-  Handle<Type> left_type, right_type, result_type;
+  Handle<Type> type, left_type, right_type;
   Maybe<int> fixed_right_arg;
   oracle()->BinaryType(expr->BinaryOperationFeedbackId(),
-      &left_type, &right_type, &result_type, &fixed_right_arg);
+      &left_type, &right_type, &type, &fixed_right_arg);
+  MergeLowerType(expr, type);
   MergeLowerType(expr->left(), left_type);
   MergeLowerType(expr->right(), right_type);
-  expr->set_result_type(result_type);
   expr->set_fixed_right_arg(fixed_right_arg);
   if (expr->op() == Token::OR || expr->op() == Token::AND) {
     expr->left()->RecordToBooleanTypeFeedback(oracle());

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to