Index: src/interpreter/bytecode-array-builder.cc |
diff --git a/src/interpreter/bytecode-array-builder.cc b/src/interpreter/bytecode-array-builder.cc |
index 35997e7d4be2a742e50a25ed16a773a2251465d4..1f069954992d8a523a1d51496285301a0c884adb 100644 |
--- a/src/interpreter/bytecode-array-builder.cc |
+++ b/src/interpreter/bytecode-array-builder.cc |
@@ -175,9 +175,14 @@ BytecodeArrayBuilder& BytecodeArrayBuilder::TypeOf() { |
return *this; |
} |
-BytecodeArrayBuilder& BytecodeArrayBuilder::CompareOperation(Token::Value op, |
- Register reg) { |
- Output(BytecodeForCompareOperation(op), RegisterOperand(reg)); |
+BytecodeArrayBuilder& BytecodeArrayBuilder::CompareOperation( |
+ Token::Value op, Register reg, int feedback_slot) { |
+ if (op == Token::INSTANCEOF || op == Token::IN) { |
+ Output(BytecodeForCompareOperation(op), RegisterOperand(reg)); |
+ } else { |
+ Output(BytecodeForCompareOperation(op), RegisterOperand(reg), |
+ UnsignedOperand(feedback_slot)); |
+ } |
return *this; |
} |