Index: src/interpreter/interpreter.cc |
diff --git a/src/interpreter/interpreter.cc b/src/interpreter/interpreter.cc |
index a898ae459d6fb7281ff39e721d884f2f02cbead0..410030247fc78bd770381fa1e2d1259cd72f0a1b 100644 |
--- a/src/interpreter/interpreter.cc |
+++ b/src/interpreter/interpreter.cc |
@@ -2371,9 +2371,8 @@ void Interpreter::DoForInPrepare(InterpreterAssembler* assembler) { |
if (FLAG_debug_code) { |
Label already_receiver(assembler), abort(assembler); |
Node* instance_type = __ LoadInstanceType(receiver); |
- Node* first_receiver_type = __ Int32Constant(FIRST_JS_RECEIVER_TYPE); |
- __ BranchIfInt32GreaterThanOrEqual(instance_type, first_receiver_type, |
- &already_receiver, &abort); |
+ __ Branch(__ IsJSReceiverInstanceType(instance_type), &already_receiver, |
+ &abort); |
__ Bind(&abort); |
{ |
__ Abort(kExpectedJSReceiver); |