Index: src/full-codegen/x87/full-codegen-x87.cc |
diff --git a/src/full-codegen/x87/full-codegen-x87.cc b/src/full-codegen/x87/full-codegen-x87.cc |
index 317468fc8e63c276929db93e363ff7cc9ce9c4dc..e536ed53ed0b49e469aa044f85b310ff5dacd573 100644 |
--- a/src/full-codegen/x87/full-codegen-x87.cc |
+++ b/src/full-codegen/x87/full-codegen-x87.cc |
@@ -340,7 +340,7 @@ void FullCodeGenerator::Generate() { |
void FullCodeGenerator::ClearAccumulator() { |
- __ Move(eax, Immediate(Smi::FromInt(0))); |
+ __ Move(eax, Immediate(Smi::kZero)); |
} |
@@ -978,7 +978,7 @@ void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) { |
__ bind(&use_cache); |
__ EnumLength(edx, eax); |
- __ cmp(edx, Immediate(Smi::FromInt(0))); |
+ __ cmp(edx, Immediate(Smi::kZero)); |
__ j(equal, &no_descriptors); |
__ LoadInstanceDescriptors(eax, ecx); |
@@ -989,7 +989,7 @@ void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) { |
__ push(eax); // Map. |
__ push(ecx); // Enumeration cache. |
__ push(edx); // Number of valid entries for the map in the enum cache. |
- __ push(Immediate(Smi::FromInt(0))); // Initial index. |
+ __ push(Immediate(Smi::kZero)); // Initial index. |
__ jmp(&loop); |
__ bind(&no_descriptors); |
@@ -1004,7 +1004,7 @@ void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) { |
__ mov(eax, FieldOperand(eax, FixedArray::kLengthOffset)); |
__ push(eax); // Fixed array length (as smi). |
PrepareForBailoutForId(stmt->PrepareId(), BailoutState::NO_REGISTERS); |
- __ push(Immediate(Smi::FromInt(0))); // Initial index. |
+ __ push(Immediate(Smi::kZero)); // Initial index. |
// Generate code for doing the condition check. |
__ bind(&loop); |
@@ -2963,7 +2963,7 @@ void FullCodeGenerator::VisitCountOperation(CountOperation* expr) { |
} else { |
// Reserve space for result of postfix operation. |
if (expr->is_postfix() && !context()->IsEffect()) { |
- PushOperand(Smi::FromInt(0)); |
+ PushOperand(Smi::kZero); |
} |
switch (assign_type) { |
case NAMED_PROPERTY: { |