Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1332)

Unified Diff: src/x64/full-codegen-x64.cc

Issue 1229233002: Remove more uses of the deprecated EnumSet template class. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/objects.cc ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « src/objects.cc ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698