| Index: src/full-codegen/mips/full-codegen-mips.cc
|
| diff --git a/src/full-codegen/mips/full-codegen-mips.cc b/src/full-codegen/mips/full-codegen-mips.cc
|
| index 17f847c682c0c56406a804c0ad9b58e51c987a00..6f053506b0847bbe9d906beb65bbe39a4e3b5ae7 100644
|
| --- a/src/full-codegen/mips/full-codegen-mips.cc
|
| +++ b/src/full-codegen/mips/full-codegen-mips.cc
|
| @@ -990,15 +990,15 @@ void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) {
|
|
|
| FeedbackVectorSlot slot = stmt->ForInFeedbackSlot();
|
|
|
| - Label loop, exit;
|
| - ForIn loop_statement(this, stmt);
|
| - increment_loop_depth();
|
| -
|
| // Get the object to enumerate over.
|
| SetExpressionAsStatementPosition(stmt->enumerable());
|
| VisitForAccumulatorValue(stmt->enumerable());
|
| __ mov(a0, result_register());
|
| - OperandStackDepthIncrement(ForIn::kElementCount);
|
| + OperandStackDepthIncrement(5);
|
| +
|
| + Label loop, exit;
|
| + Iteration loop_statement(this, stmt);
|
| + increment_loop_depth();
|
|
|
| // If the object is null or undefined, skip over the loop, otherwise convert
|
| // it to a JS receiver. See ECMA-262 version 5, section 12.6.4.
|
| @@ -1886,7 +1886,7 @@ void FullCodeGenerator::VisitYield(Yield* expr) {
|
| case Yield::kSuspend:
|
| // Pop value from top-of-stack slot; box result into result register.
|
| EmitCreateIteratorResult(false);
|
| - __ push(result_register());
|
| + PushOperand(result_register());
|
| // Fall through.
|
| case Yield::kInitial: {
|
| Label suspend, continuation, post_runtime, resume;
|
| @@ -1905,6 +1905,7 @@ void FullCodeGenerator::VisitYield(Yield* expr) {
|
| EmitUnwindAndReturn();
|
|
|
| __ bind(&suspend);
|
| + OperandStackDepthIncrement(1); // Not popped on this path.
|
| VisitForAccumulatorValue(expr->generator_object());
|
| DCHECK(continuation.pos() > 0 && Smi::IsValid(continuation.pos()));
|
| __ li(a1, Operand(Smi::FromInt(continuation.pos())));
|
| @@ -1929,7 +1930,6 @@ void FullCodeGenerator::VisitYield(Yield* expr) {
|
|
|
| case Yield::kFinal: {
|
| // Pop value from top-of-stack slot, box result into result register.
|
| - OperandStackDepthDecrement(1);
|
| EmitCreateIteratorResult(true);
|
| EmitUnwindAndReturn();
|
| break;
|
| @@ -2079,7 +2079,7 @@ void FullCodeGenerator::EmitCreateIteratorResult(bool done) {
|
|
|
| __ bind(&done_allocate);
|
| __ LoadNativeContextSlot(Context::ITERATOR_RESULT_MAP_INDEX, a1);
|
| - __ pop(a2);
|
| + PopOperand(a2);
|
| __ LoadRoot(a3,
|
| done ? Heap::kTrueValueRootIndex : Heap::kFalseValueRootIndex);
|
| __ LoadRoot(t0, Heap::kEmptyFixedArrayRootIndex);
|
|
|