| Index: src/full-codegen/mips64/full-codegen-mips64.cc
|
| diff --git a/src/full-codegen/mips64/full-codegen-mips64.cc b/src/full-codegen/mips64/full-codegen-mips64.cc
|
| index 70ae080d33641b1188ec4e9c407aa9e9e358923d..f51ec6641c7372f9ac1e238751ef18c024374b2a 100644
|
| --- a/src/full-codegen/mips64/full-codegen-mips64.cc
|
| +++ b/src/full-codegen/mips64/full-codegen-mips64.cc
|
| @@ -990,16 +990,16 @@ 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. If the object is null or undefined, skip
|
| // over the loop. See ECMA-262 version 5, section 12.6.4.
|
| 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.
|
| @@ -1888,7 +1888,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;
|
| @@ -1907,6 +1907,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())));
|
| @@ -1931,7 +1932,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;
|
| @@ -2083,7 +2083,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(a4, Heap::kEmptyFixedArrayRootIndex);
|
|
|