Index: src/x87/code-stubs-x87.cc |
diff --git a/src/x87/code-stubs-x87.cc b/src/x87/code-stubs-x87.cc |
index a7bacf47ef3d9b876b23e769ba571ead108f4fcb..68111a7eef2e6c3d6f5f76599991171fbf0ca432 100644 |
--- a/src/x87/code-stubs-x87.cc |
+++ b/src/x87/code-stubs-x87.cc |
@@ -877,7 +877,7 @@ void CompareICStub::GenerateGeneric(MacroAssembler* masm) { |
// If either is a Smi (we know that not both are), then they can only |
// be equal if the other is a HeapNumber. If so, use the slow case. |
STATIC_ASSERT(kSmiTag == 0); |
- DCHECK_EQ(static_cast<Smi*>(0), Smi::kZero); |
+ DCHECK_EQ(static_cast<Smi*>(0), Smi::FromInt(0)); |
__ mov(ecx, Immediate(kSmiTagMask)); |
__ and_(ecx, eax); |
__ test(ecx, edx); |
@@ -3310,7 +3310,7 @@ static void HandlePolymorphicKeyedStoreCase(MacroAssembler* masm, |
// - esp[12] -- value |
// - receiver, key, handler in registers. |
Register counter = key; |
- __ mov(counter, Immediate(Smi::kZero)); |
+ __ mov(counter, Immediate(Smi::FromInt(0))); |
__ bind(&next_loop); |
__ mov(cached_map, FieldOperand(feedback, counter, times_half_pointer_size, |
FixedArray::kHeaderSize)); |
@@ -4015,7 +4015,8 @@ void FastNewRestParameterStub::Generate(MacroAssembler* masm) { |
__ mov(ecx, isolate()->factory()->empty_fixed_array()); |
__ mov(FieldOperand(eax, JSArray::kPropertiesOffset), ecx); |
__ mov(FieldOperand(eax, JSArray::kElementsOffset), ecx); |
- __ mov(FieldOperand(eax, JSArray::kLengthOffset), Immediate(Smi::kZero)); |
+ __ mov(FieldOperand(eax, JSArray::kLengthOffset), |
+ Immediate(Smi::FromInt(0))); |
STATIC_ASSERT(JSArray::kSize == 4 * kPointerSize); |
__ Ret(); |
@@ -4056,7 +4057,7 @@ void FastNewRestParameterStub::Generate(MacroAssembler* masm) { |
__ mov(FieldOperand(edx, FixedArray::kLengthOffset), eax); |
{ |
Label loop, done_loop; |
- __ Move(ecx, Smi::kZero); |
+ __ Move(ecx, Smi::FromInt(0)); |
__ bind(&loop); |
__ cmp(ecx, eax); |
__ j(equal, &done_loop, Label::kNear); |
@@ -4443,7 +4444,7 @@ void FastNewStrictArgumentsStub::Generate(MacroAssembler* masm) { |
__ mov(FieldOperand(edx, FixedArray::kLengthOffset), eax); |
{ |
Label loop, done_loop; |
- __ Move(ecx, Smi::kZero); |
+ __ Move(ecx, Smi::FromInt(0)); |
__ bind(&loop); |
__ cmp(ecx, eax); |
__ j(equal, &done_loop, Label::kNear); |
@@ -4961,7 +4962,7 @@ void CallApiGetterStub::Generate(MacroAssembler* masm) { |
__ PushRoot(Heap::kUndefinedValueRootIndex); |
__ push(Immediate(ExternalReference::isolate_address(isolate()))); |
__ push(holder); |
- __ push(Immediate(Smi::kZero)); // should_throw_on_error -> false |
+ __ push(Immediate(Smi::FromInt(0))); // should_throw_on_error -> false |
__ push(FieldOperand(callback, AccessorInfo::kNameOffset)); |
__ push(scratch); // Restore return address. |