| 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 aab909c58097b1b5e6b564dbe2ee9893a6f49e77..8e69ca5317ea3192e815557e833d7ef3a67465ea 100644
|
| --- a/src/full-codegen/mips64/full-codegen-mips64.cc
|
| +++ b/src/full-codegen/mips64/full-codegen-mips64.cc
|
| @@ -185,8 +185,7 @@
|
| __ push(a1);
|
| __ Push(info->scope()->GetScopeInfo(info->isolate()));
|
| __ CallRuntime(Runtime::kNewScriptContext);
|
| - PrepareForBailoutForId(BailoutId::ScriptContext(),
|
| - BailoutState::TOS_REGISTER);
|
| + PrepareForBailoutForId(BailoutId::ScriptContext(), TOS_REG);
|
| // The new target value is not used, clobbering is safe.
|
| DCHECK_NULL(info->scope()->new_target_var());
|
| } else {
|
| @@ -242,8 +241,7 @@
|
| // Register holding this function and new target are both trashed in case we
|
| // bailout here. But since that can happen only when new target is not used
|
| // and we allocate a context, the value of |function_in_register| is correct.
|
| - PrepareForBailoutForId(BailoutId::FunctionContext(),
|
| - BailoutState::NO_REGISTERS);
|
| + PrepareForBailoutForId(BailoutId::FunctionContext(), NO_REGISTERS);
|
|
|
| // Possibly set up a local binding to the this function which is used in
|
| // derived constructors with super calls.
|
| @@ -304,8 +302,7 @@
|
| }
|
|
|
| // Visit the declarations and body.
|
| - PrepareForBailoutForId(BailoutId::FunctionEntry(),
|
| - BailoutState::NO_REGISTERS);
|
| + PrepareForBailoutForId(BailoutId::FunctionEntry(), NO_REGISTERS);
|
| {
|
| Comment cmnt(masm_, "[ Declarations");
|
| VisitDeclarations(scope()->declarations());
|
| @@ -318,8 +315,7 @@
|
|
|
| {
|
| Comment cmnt(masm_, "[ Stack check");
|
| - PrepareForBailoutForId(BailoutId::Declarations(),
|
| - BailoutState::NO_REGISTERS);
|
| + PrepareForBailoutForId(BailoutId::Declarations(), NO_REGISTERS);
|
| Label ok;
|
| __ LoadRoot(at, Heap::kStackLimitRootIndex);
|
| __ Branch(&ok, hs, sp, Operand(at));
|
| @@ -400,11 +396,11 @@
|
| EmitProfilingCounterReset();
|
|
|
| __ bind(&ok);
|
| - PrepareForBailoutForId(stmt->EntryId(), BailoutState::NO_REGISTERS);
|
| + PrepareForBailoutForId(stmt->EntryId(), NO_REGISTERS);
|
| // Record a mapping of the OSR id to this PC. This is used if the OSR
|
| // entry becomes the target of a bailout. We don't expect it to be, but
|
| // we want it to work if it is.
|
| - PrepareForBailoutForId(stmt->OsrEntryId(), BailoutState::NO_REGISTERS);
|
| + PrepareForBailoutForId(stmt->OsrEntryId(), NO_REGISTERS);
|
| }
|
|
|
| void FullCodeGenerator::EmitProfilingCounterHandlingForReturnSequence(
|
| @@ -730,7 +726,7 @@
|
|
|
| Label skip;
|
| if (should_normalize) __ Branch(&skip);
|
| - PrepareForBailout(expr, BailoutState::TOS_REGISTER);
|
| + PrepareForBailout(expr, TOS_REG);
|
| if (should_normalize) {
|
| __ LoadRoot(a4, Heap::kTrueValueRootIndex);
|
| Split(eq, a0, Operand(a4), if_true, if_false, NULL);
|
| @@ -789,7 +785,7 @@
|
| __ LoadRoot(at, Heap::kTheHoleValueRootIndex);
|
| __ sd(at, ContextMemOperand(cp, variable->index()));
|
| // No write barrier since the_hole_value is in old space.
|
| - PrepareForBailoutForId(proxy->id(), BailoutState::NO_REGISTERS);
|
| + PrepareForBailoutForId(proxy->id(), NO_REGISTERS);
|
| }
|
| break;
|
|
|
| @@ -811,7 +807,7 @@
|
| __ Push(a2, a0);
|
| __ Push(Smi::FromInt(variable->DeclarationPropertyAttributes()));
|
| __ CallRuntime(Runtime::kDeclareLookupSlot);
|
| - PrepareForBailoutForId(proxy->id(), BailoutState::NO_REGISTERS);
|
| + PrepareForBailoutForId(proxy->id(), NO_REGISTERS);
|
| break;
|
| }
|
| }
|
| @@ -857,7 +853,7 @@
|
| kDontSaveFPRegs,
|
| EMIT_REMEMBERED_SET,
|
| OMIT_SMI_CHECK);
|
| - PrepareForBailoutForId(proxy->id(), BailoutState::NO_REGISTERS);
|
| + PrepareForBailoutForId(proxy->id(), NO_REGISTERS);
|
| break;
|
| }
|
|
|
| @@ -869,7 +865,7 @@
|
| VisitForStackValue(declaration->fun());
|
| PushOperand(Smi::FromInt(variable->DeclarationPropertyAttributes()));
|
| CallRuntimeWithOperands(Runtime::kDeclareLookupSlot);
|
| - PrepareForBailoutForId(proxy->id(), BailoutState::NO_REGISTERS);
|
| + PrepareForBailoutForId(proxy->id(), NO_REGISTERS);
|
| break;
|
| }
|
| }
|
| @@ -901,7 +897,7 @@
|
|
|
| // Keep the switch value on the stack until a case matches.
|
| VisitForStackValue(stmt->tag());
|
| - PrepareForBailoutForId(stmt->EntryId(), BailoutState::NO_REGISTERS);
|
| + PrepareForBailoutForId(stmt->EntryId(), NO_REGISTERS);
|
|
|
| ZoneList<CaseClause*>* clauses = stmt->cases();
|
| CaseClause* default_clause = NULL; // Can occur anywhere in the list.
|
| @@ -951,7 +947,7 @@
|
|
|
| Label skip;
|
| __ Branch(&skip);
|
| - PrepareForBailout(clause, BailoutState::TOS_REGISTER);
|
| + PrepareForBailout(clause, TOS_REG);
|
| __ LoadRoot(at, Heap::kTrueValueRootIndex);
|
| __ Branch(&next_test, ne, v0, Operand(at));
|
| __ Drop(1);
|
| @@ -978,12 +974,12 @@
|
| Comment cmnt(masm_, "[ Case body");
|
| CaseClause* clause = clauses->at(i);
|
| __ bind(clause->body_target());
|
| - PrepareForBailoutForId(clause->EntryId(), BailoutState::NO_REGISTERS);
|
| + PrepareForBailoutForId(clause->EntryId(), NO_REGISTERS);
|
| VisitStatements(clause->statements());
|
| }
|
|
|
| __ bind(nested_statement.break_label());
|
| - PrepareForBailoutForId(stmt->ExitId(), BailoutState::NO_REGISTERS);
|
| + PrepareForBailoutForId(stmt->ExitId(), NO_REGISTERS);
|
| }
|
|
|
|
|
| @@ -1020,7 +1016,7 @@
|
| __ CallStub(&stub);
|
| __ mov(a0, v0);
|
| __ bind(&done_convert);
|
| - PrepareForBailoutForId(stmt->ToObjectId(), BailoutState::TOS_REGISTER);
|
| + PrepareForBailoutForId(stmt->ToObjectId(), TOS_REG);
|
| __ push(a0);
|
|
|
| // Check cache validity in generated code. If we cannot guarantee cache
|
| @@ -1040,7 +1036,7 @@
|
| __ bind(&call_runtime);
|
| __ push(a0); // Duplicate the enumerable object on the stack.
|
| __ CallRuntime(Runtime::kForInEnumerate);
|
| - PrepareForBailoutForId(stmt->EnumId(), BailoutState::TOS_REGISTER);
|
| + PrepareForBailoutForId(stmt->EnumId(), TOS_REG);
|
|
|
| // If we got a map from the runtime call, we can do a fast
|
| // modification check. Otherwise, we got a fixed array, and we have
|
| @@ -1078,7 +1074,7 @@
|
| __ Push(a1, v0); // Smi and array
|
| __ ld(a1, FieldMemOperand(v0, FixedArray::kLengthOffset));
|
| __ Push(a1); // Fixed array length (as smi).
|
| - PrepareForBailoutForId(stmt->PrepareId(), BailoutState::NO_REGISTERS);
|
| + PrepareForBailoutForId(stmt->PrepareId(), NO_REGISTERS);
|
| __ li(a0, Operand(Smi::FromInt(0)));
|
| __ Push(a0); // Initial index.
|
|
|
| @@ -1120,7 +1116,7 @@
|
| // just skip it.
|
| __ Push(a1, a3); // Enumerable and current entry.
|
| __ CallRuntime(Runtime::kForInFilter);
|
| - PrepareForBailoutForId(stmt->FilterId(), BailoutState::TOS_REGISTER);
|
| + PrepareForBailoutForId(stmt->FilterId(), TOS_REG);
|
| __ mov(a3, result_register());
|
| __ LoadRoot(at, Heap::kUndefinedValueRootIndex);
|
| __ Branch(loop_statement.continue_label(), eq, a3, Operand(at));
|
| @@ -1132,11 +1128,11 @@
|
| // Perform the assignment as if via '='.
|
| { EffectContext context(this);
|
| EmitAssignment(stmt->each(), stmt->EachFeedbackSlot());
|
| - PrepareForBailoutForId(stmt->AssignmentId(), BailoutState::NO_REGISTERS);
|
| + PrepareForBailoutForId(stmt->AssignmentId(), NO_REGISTERS);
|
| }
|
|
|
| // Both Crankshaft and Turbofan expect BodyId to be right before stmt->body().
|
| - PrepareForBailoutForId(stmt->BodyId(), BailoutState::NO_REGISTERS);
|
| + PrepareForBailoutForId(stmt->BodyId(), NO_REGISTERS);
|
| // Generate code for the body of the loop.
|
| Visit(stmt->body());
|
|
|
| @@ -1155,7 +1151,7 @@
|
| DropOperands(5);
|
|
|
| // Exit and decrement the loop depth.
|
| - PrepareForBailoutForId(stmt->ExitId(), BailoutState::NO_REGISTERS);
|
| + PrepareForBailoutForId(stmt->ExitId(), NO_REGISTERS);
|
| __ bind(&exit);
|
| decrement_loop_depth();
|
| }
|
| @@ -1314,7 +1310,7 @@
|
| TypeofMode typeof_mode) {
|
| // Record position before possible IC call.
|
| SetExpressionPosition(proxy);
|
| - PrepareForBailoutForId(proxy->BeforeId(), BailoutState::NO_REGISTERS);
|
| + PrepareForBailoutForId(proxy->BeforeId(), NO_REGISTERS);
|
| Variable* var = proxy->var();
|
|
|
| // Three cases: global variables, lookup variables, and all other types of
|
| @@ -1421,7 +1417,7 @@
|
| __ CallStub(&stub);
|
| RestoreContext();
|
| }
|
| - PrepareForBailoutForId(expr->CreateLiteralId(), BailoutState::TOS_REGISTER);
|
| + PrepareForBailoutForId(expr->CreateLiteralId(), TOS_REG);
|
|
|
| // If result_saved is true the result is on top of the stack. If
|
| // result_saved is false the result is in v0.
|
| @@ -1458,7 +1454,7 @@
|
| __ ld(StoreDescriptor::ReceiverRegister(), MemOperand(sp));
|
| EmitLoadStoreICSlot(property->GetSlot(0));
|
| CallStoreIC();
|
| - PrepareForBailoutForId(key->id(), BailoutState::NO_REGISTERS);
|
| + PrepareForBailoutForId(key->id(), NO_REGISTERS);
|
|
|
| if (NeedsHomeObject(value)) {
|
| EmitSetHomeObjectAccumulator(value, 0, property->GetSlot(1));
|
| @@ -1492,7 +1488,7 @@
|
| DCHECK(property->emit_store());
|
| CallRuntimeWithOperands(Runtime::kInternalSetPrototype);
|
| PrepareForBailoutForId(expr->GetIdForPropertySet(property_index),
|
| - BailoutState::NO_REGISTERS);
|
| + NO_REGISTERS);
|
| break;
|
| case ObjectLiteral::Property::GETTER:
|
| if (property->emit_store()) {
|
| @@ -1549,7 +1545,7 @@
|
| DCHECK(property->emit_store());
|
| CallRuntimeWithOperands(Runtime::kInternalSetPrototype);
|
| PrepareForBailoutForId(expr->GetIdForPropertySet(property_index),
|
| - BailoutState::NO_REGISTERS);
|
| + NO_REGISTERS);
|
| } else {
|
| EmitPropertyKey(property, expr->GetIdForPropertyName(property_index));
|
| VisitForStackValue(value);
|
| @@ -1621,7 +1617,7 @@
|
| FastCloneShallowArrayStub stub(isolate(), allocation_site_mode);
|
| __ CallStub(&stub);
|
| }
|
| - PrepareForBailoutForId(expr->CreateLiteralId(), BailoutState::TOS_REGISTER);
|
| + PrepareForBailoutForId(expr->CreateLiteralId(), TOS_REG);
|
|
|
| bool result_saved = false; // Is the result saved to the stack?
|
| ZoneList<Expression*>* subexprs = expr->values();
|
| @@ -1653,8 +1649,7 @@
|
| CodeFactory::KeyedStoreIC(isolate(), language_mode()).code();
|
| CallIC(ic);
|
|
|
| - PrepareForBailoutForId(expr->GetIdForElement(array_index),
|
| - BailoutState::NO_REGISTERS);
|
| + PrepareForBailoutForId(expr->GetIdForElement(array_index), NO_REGISTERS);
|
| }
|
|
|
| // In case the array literal contains spread expressions it has two parts. The
|
| @@ -1674,8 +1669,7 @@
|
| VisitForStackValue(subexpr);
|
| CallRuntimeWithOperands(Runtime::kAppendElement);
|
|
|
| - PrepareForBailoutForId(expr->GetIdForElement(array_index),
|
| - BailoutState::NO_REGISTERS);
|
| + PrepareForBailoutForId(expr->GetIdForElement(array_index), NO_REGISTERS);
|
| }
|
|
|
| if (result_saved) {
|
| @@ -1758,27 +1752,23 @@
|
| switch (assign_type) {
|
| case VARIABLE:
|
| EmitVariableLoad(expr->target()->AsVariableProxy());
|
| - PrepareForBailout(expr->target(), BailoutState::TOS_REGISTER);
|
| + PrepareForBailout(expr->target(), TOS_REG);
|
| break;
|
| case NAMED_PROPERTY:
|
| EmitNamedPropertyLoad(property);
|
| - PrepareForBailoutForId(property->LoadId(),
|
| - BailoutState::TOS_REGISTER);
|
| + PrepareForBailoutForId(property->LoadId(), TOS_REG);
|
| break;
|
| case NAMED_SUPER_PROPERTY:
|
| EmitNamedSuperPropertyLoad(property);
|
| - PrepareForBailoutForId(property->LoadId(),
|
| - BailoutState::TOS_REGISTER);
|
| + PrepareForBailoutForId(property->LoadId(), TOS_REG);
|
| break;
|
| case KEYED_SUPER_PROPERTY:
|
| EmitKeyedSuperPropertyLoad(property);
|
| - PrepareForBailoutForId(property->LoadId(),
|
| - BailoutState::TOS_REGISTER);
|
| + PrepareForBailoutForId(property->LoadId(), TOS_REG);
|
| break;
|
| case KEYED_PROPERTY:
|
| EmitKeyedPropertyLoad(property);
|
| - PrepareForBailoutForId(property->LoadId(),
|
| - BailoutState::TOS_REGISTER);
|
| + PrepareForBailoutForId(property->LoadId(), TOS_REG);
|
| break;
|
| }
|
| }
|
| @@ -1798,7 +1788,7 @@
|
| }
|
|
|
| // Deoptimization point in case the binary operation may have side effects.
|
| - PrepareForBailout(expr->binary_operation(), BailoutState::TOS_REGISTER);
|
| + PrepareForBailout(expr->binary_operation(), TOS_REG);
|
| } else {
|
| VisitForAccumulatorValue(expr->value());
|
| }
|
| @@ -1810,7 +1800,7 @@
|
| case VARIABLE:
|
| EmitVariableAssignment(expr->target()->AsVariableProxy()->var(),
|
| expr->op(), expr->AssignmentSlot());
|
| - PrepareForBailoutForId(expr->AssignmentId(), BailoutState::TOS_REGISTER);
|
| + PrepareForBailoutForId(expr->AssignmentId(), TOS_REG);
|
| context()->Plug(v0);
|
| break;
|
| case NAMED_PROPERTY:
|
| @@ -2285,7 +2275,7 @@
|
| EmitLoadStoreICSlot(expr->AssignmentSlot());
|
| CallStoreIC();
|
|
|
| - PrepareForBailoutForId(expr->AssignmentId(), BailoutState::TOS_REGISTER);
|
| + PrepareForBailoutForId(expr->AssignmentId(), TOS_REG);
|
| context()->Plug(v0);
|
| }
|
|
|
| @@ -2336,7 +2326,7 @@
|
| EmitLoadStoreICSlot(expr->AssignmentSlot());
|
| CallIC(ic);
|
|
|
| - PrepareForBailoutForId(expr->AssignmentId(), BailoutState::TOS_REGISTER);
|
| + PrepareForBailoutForId(expr->AssignmentId(), TOS_REG);
|
| context()->Plug(v0);
|
| }
|
|
|
| @@ -2357,7 +2347,7 @@
|
| if (callee->IsVariableProxy()) {
|
| { StackValueContext context(this);
|
| EmitVariableLoad(callee->AsVariableProxy());
|
| - PrepareForBailout(callee, BailoutState::NO_REGISTERS);
|
| + PrepareForBailout(callee, NO_REGISTERS);
|
| }
|
| // Push undefined as receiver. This is patched in the method prologue if it
|
| // is a sloppy mode method.
|
| @@ -2370,8 +2360,7 @@
|
| DCHECK(!callee->AsProperty()->IsSuperAccess());
|
| __ ld(LoadDescriptor::ReceiverRegister(), MemOperand(sp, 0));
|
| EmitNamedPropertyLoad(callee->AsProperty());
|
| - PrepareForBailoutForId(callee->AsProperty()->LoadId(),
|
| - BailoutState::TOS_REGISTER);
|
| + PrepareForBailoutForId(callee->AsProperty()->LoadId(), TOS_REG);
|
| // Push the target function under the receiver.
|
| __ ld(at, MemOperand(sp, 0));
|
| PushOperand(at);
|
| @@ -2408,7 +2397,7 @@
|
| // - home_object
|
| // - key
|
| CallRuntimeWithOperands(Runtime::kLoadFromSuper);
|
| - PrepareForBailoutForId(prop->LoadId(), BailoutState::TOS_REGISTER);
|
| + PrepareForBailoutForId(prop->LoadId(), TOS_REG);
|
|
|
| // Replace home_object with target function.
|
| __ sd(v0, MemOperand(sp, kPointerSize));
|
| @@ -2433,8 +2422,7 @@
|
| __ ld(LoadDescriptor::ReceiverRegister(), MemOperand(sp, 0));
|
| __ Move(LoadDescriptor::NameRegister(), v0);
|
| EmitKeyedPropertyLoad(callee->AsProperty());
|
| - PrepareForBailoutForId(callee->AsProperty()->LoadId(),
|
| - BailoutState::TOS_REGISTER);
|
| + PrepareForBailoutForId(callee->AsProperty()->LoadId(), TOS_REG);
|
|
|
| // Push the target function under the receiver.
|
| __ ld(at, MemOperand(sp, 0));
|
| @@ -2468,7 +2456,7 @@
|
| // - home_object
|
| // - key
|
| CallRuntimeWithOperands(Runtime::kLoadKeyedFromSuper);
|
| - PrepareForBailoutForId(prop->LoadId(), BailoutState::TOS_REGISTER);
|
| + PrepareForBailoutForId(prop->LoadId(), TOS_REG);
|
|
|
| // Replace home_object with target function.
|
| __ sd(v0, MemOperand(sp, kPointerSize));
|
| @@ -2488,7 +2476,7 @@
|
| VisitForStackValue(args->at(i));
|
| }
|
|
|
| - PrepareForBailoutForId(expr->CallId(), BailoutState::NO_REGISTERS);
|
| + PrepareForBailoutForId(expr->CallId(), NO_REGISTERS);
|
| // Record source position of the IC call.
|
| SetCallPosition(expr, expr->tail_call_mode());
|
| if (expr->tail_call_mode() == TailCallMode::kAllow) {
|
| @@ -2558,7 +2546,7 @@
|
| __ Push(callee->name());
|
| __ CallRuntime(Runtime::kLoadLookupSlotForCall);
|
| PushOperands(v0, v1); // Function, receiver.
|
| - PrepareForBailoutForId(expr->LookupId(), BailoutState::NO_REGISTERS);
|
| + PrepareForBailoutForId(expr->LookupId(), NO_REGISTERS);
|
|
|
| // If fast case code has been generated, emit code to push the
|
| // function and receiver and have the slow path jump around this
|
| @@ -2606,7 +2594,7 @@
|
| // Touch up the stack with the resolved function.
|
| __ sd(v0, MemOperand(sp, (arg_count + 1) * kPointerSize));
|
|
|
| - PrepareForBailoutForId(expr->EvalId(), BailoutState::NO_REGISTERS);
|
| + PrepareForBailoutForId(expr->EvalId(), NO_REGISTERS);
|
| // Record source position for debugger.
|
| SetCallPosition(expr);
|
| __ ld(a1, MemOperand(sp, (arg_count + 1) * kPointerSize));
|
| @@ -2655,7 +2643,7 @@
|
| CallConstructStub stub(isolate());
|
| __ Call(stub.GetCode(), RelocInfo::CODE_TARGET);
|
| OperandStackDepthDecrement(arg_count + 1);
|
| - PrepareForBailoutForId(expr->ReturnId(), BailoutState::TOS_REGISTER);
|
| + PrepareForBailoutForId(expr->ReturnId(), TOS_REG);
|
| RestoreContext();
|
| context()->Plug(v0);
|
| }
|
| @@ -3103,7 +3091,7 @@
|
| for (Expression* const arg : *args) {
|
| VisitForStackValue(arg);
|
| }
|
| - PrepareForBailoutForId(expr->CallId(), BailoutState::NO_REGISTERS);
|
| + PrepareForBailoutForId(expr->CallId(), NO_REGISTERS);
|
| // Move target to a1.
|
| int const argc = args->length() - 2;
|
| __ ld(a1, MemOperand(sp, (argc + 1) * kPointerSize));
|
| @@ -3314,14 +3302,12 @@
|
| &materialize_true);
|
| if (!context()->IsAccumulatorValue()) OperandStackDepthIncrement(1);
|
| __ bind(&materialize_true);
|
| - PrepareForBailoutForId(expr->MaterializeTrueId(),
|
| - BailoutState::NO_REGISTERS);
|
| + PrepareForBailoutForId(expr->MaterializeTrueId(), NO_REGISTERS);
|
| __ LoadRoot(v0, Heap::kTrueValueRootIndex);
|
| if (context()->IsStackValue()) __ push(v0);
|
| __ jmp(&done);
|
| __ bind(&materialize_false);
|
| - PrepareForBailoutForId(expr->MaterializeFalseId(),
|
| - BailoutState::NO_REGISTERS);
|
| + PrepareForBailoutForId(expr->MaterializeFalseId(), NO_REGISTERS);
|
| __ LoadRoot(v0, Heap::kFalseValueRootIndex);
|
| if (context()->IsStackValue()) __ push(v0);
|
| __ bind(&done);
|
| @@ -3421,9 +3407,9 @@
|
| // We need a second deoptimization point after loading the value
|
| // in case evaluating the property load my have a side effect.
|
| if (assign_type == VARIABLE) {
|
| - PrepareForBailout(expr->expression(), BailoutState::TOS_REGISTER);
|
| + PrepareForBailout(expr->expression(), TOS_REG);
|
| } else {
|
| - PrepareForBailoutForId(prop->LoadId(), BailoutState::TOS_REGISTER);
|
| + PrepareForBailoutForId(prop->LoadId(), TOS_REG);
|
| }
|
|
|
| // Inline smi case if we are in a loop.
|
| @@ -3474,7 +3460,7 @@
|
| // Convert old value into a number.
|
| ToNumberStub convert_stub(isolate());
|
| __ CallStub(&convert_stub);
|
| - PrepareForBailoutForId(expr->ToNumberId(), BailoutState::TOS_REGISTER);
|
| + PrepareForBailoutForId(expr->ToNumberId(), TOS_REG);
|
|
|
| // Save result for postfix expressions.
|
| if (expr->is_postfix()) {
|
| @@ -3520,8 +3506,7 @@
|
| { EffectContext context(this);
|
| EmitVariableAssignment(expr->expression()->AsVariableProxy()->var(),
|
| Token::ASSIGN, expr->CountSlot());
|
| - PrepareForBailoutForId(expr->AssignmentId(),
|
| - BailoutState::TOS_REGISTER);
|
| + PrepareForBailoutForId(expr->AssignmentId(), TOS_REG);
|
| context.Plug(v0);
|
| }
|
| // For all contexts except EffectConstant we have the result on
|
| @@ -3532,8 +3517,7 @@
|
| } else {
|
| EmitVariableAssignment(expr->expression()->AsVariableProxy()->var(),
|
| Token::ASSIGN, expr->CountSlot());
|
| - PrepareForBailoutForId(expr->AssignmentId(),
|
| - BailoutState::TOS_REGISTER);
|
| + PrepareForBailoutForId(expr->AssignmentId(), TOS_REG);
|
| context()->Plug(v0);
|
| }
|
| break;
|
| @@ -3544,7 +3528,7 @@
|
| PopOperand(StoreDescriptor::ReceiverRegister());
|
| EmitLoadStoreICSlot(expr->CountSlot());
|
| CallStoreIC();
|
| - PrepareForBailoutForId(expr->AssignmentId(), BailoutState::TOS_REGISTER);
|
| + PrepareForBailoutForId(expr->AssignmentId(), TOS_REG);
|
| if (expr->is_postfix()) {
|
| if (!context()->IsEffect()) {
|
| context()->PlugTOS();
|
| @@ -3584,7 +3568,7 @@
|
| CodeFactory::KeyedStoreIC(isolate(), language_mode()).code();
|
| EmitLoadStoreICSlot(expr->CountSlot());
|
| CallIC(ic);
|
| - PrepareForBailoutForId(expr->AssignmentId(), BailoutState::TOS_REGISTER);
|
| + PrepareForBailoutForId(expr->AssignmentId(), TOS_REG);
|
| if (expr->is_postfix()) {
|
| if (!context()->IsEffect()) {
|
| context()->PlugTOS();
|
|
|