Index: src/hydrogen.cc |
=================================================================== |
--- src/hydrogen.cc (revision 6216) |
+++ src/hydrogen.cc (working copy) |
@@ -3366,6 +3366,7 @@ |
// We have a second position recorded in the FullCodeGenerator to have |
// type feedback for the binary operation. |
BinaryOperation* operation = expr->binary_operation(); |
+ operation->RecordTypeFeedback(oracle()); |
if (var != NULL) { |
if (!var->is_global() && !var->IsStackAllocated()) { |
@@ -4730,7 +4731,7 @@ |
default: |
UNREACHABLE(); |
} |
- TypeInfo info = oracle()->BinaryType(expr); |
+ TypeInfo info = oracle()->BinaryType(expr, TypeFeedbackOracle::RESULT); |
// If we hit an uninitialized binary op stub we will get type info |
// for a smi operation. If one of the operands is a constant string |
// do not generate code assuming it is a smi operation. |
@@ -4875,7 +4876,7 @@ |
HValue* left = Pop(); |
Token::Value op = expr->op(); |
- TypeInfo info = oracle()->CompareType(expr); |
+ TypeInfo info = oracle()->CompareType(expr, TypeFeedbackOracle::RESULT); |
HInstruction* instr = NULL; |
if (op == Token::INSTANCEOF) { |
// Check to see if the rhs of the instanceof is a global function not |