Index: src/x64/full-codegen-x64.cc |
diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc |
index ef8c15087fe292930e5322509eccd9be17b7b4cd..f8bf8849fa255bb6a533d35335391008a50df1da 100644 |
--- a/src/x64/full-codegen-x64.cc |
+++ b/src/x64/full-codegen-x64.cc |
@@ -4972,13 +4972,15 @@ void FullCodeGenerator::VisitCountOperation(CountOperation* expr) { |
} |
} |
- SmiOperationExecutionMode mode; |
- mode.Add(PRESERVE_SOURCE_REGISTER); |
- mode.Add(BAILOUT_ON_NO_OVERFLOW); |
+ SmiOperationConstraints constraints = |
+ SmiOperationConstraint::kPreserveSourceRegister | |
+ SmiOperationConstraint::kBailoutOnNoOverflow; |
if (expr->op() == Token::INC) { |
- __ SmiAddConstant(rax, rax, Smi::FromInt(1), mode, &done, Label::kNear); |
+ __ SmiAddConstant(rax, rax, Smi::FromInt(1), constraints, &done, |
+ Label::kNear); |
} else { |
- __ SmiSubConstant(rax, rax, Smi::FromInt(1), mode, &done, Label::kNear); |
+ __ SmiSubConstant(rax, rax, Smi::FromInt(1), constraints, &done, |
+ Label::kNear); |
} |
__ jmp(&stub_call, Label::kNear); |
__ bind(&slow); |