| Index: src/interpreter/bytecode-generator.cc
|
| diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc
|
| index fc151a654c240205122dca11ba000cc86e059fcb..0af549ca266c36216362c248b7d63ae9cf2bff40 100644
|
| --- a/src/interpreter/bytecode-generator.cc
|
| +++ b/src/interpreter/bytecode-generator.cc
|
| @@ -1099,7 +1099,7 @@ void BytecodeGenerator::VisitForInStatement(ForInStatement* stmt) {
|
| }
|
|
|
| LoopBuilder loop_builder(builder());
|
| - BytecodeLabel subject_null_label, subject_undefined_label, not_object_label;
|
| + BytecodeLabel subject_null_label, subject_undefined_label;
|
|
|
| // Prepare the state for executing ForIn.
|
| VisitForAccumulatorValue(stmt->subject());
|
| @@ -1107,7 +1107,6 @@ void BytecodeGenerator::VisitForInStatement(ForInStatement* stmt) {
|
| builder()->JumpIfNull(&subject_null_label);
|
| Register receiver = register_allocator()->NewRegister();
|
| builder()->CastAccumulatorToJSObject();
|
| - builder()->JumpIfNull(¬_object_label);
|
| builder()->StoreAccumulatorInRegister(receiver);
|
|
|
| register_allocator()->PrepareForConsecutiveAllocations(3);
|
| @@ -1138,7 +1137,6 @@ void BytecodeGenerator::VisitForInStatement(ForInStatement* stmt) {
|
| builder()->StoreAccumulatorInRegister(index);
|
| loop_builder.JumpToHeader();
|
| loop_builder.EndLoop();
|
| - builder()->Bind(¬_object_label);
|
| builder()->Bind(&subject_null_label);
|
| builder()->Bind(&subject_undefined_label);
|
| }
|
|
|