@@ -549,15 +549,15 @@ void FloatingPointHelper::ConvertIntToDouble(MacroAssembler* masm,
549
549
// | s | exp | mantissa |
550
550
551
551
// Check for zero.
552
- __ cmp (int_scratch, Operand ( 0 ));
552
+ __ cmp (int_scratch, Operand::Zero ( ));
553
553
__ mov (dst2, int_scratch);
554
554
__ mov (dst1, int_scratch);
555
555
__ b (eq, &done);
556
556
557
557
// Preload the sign of the value.
558
558
__ and_ (dst2, int_scratch, Operand (HeapNumber::kSignMask ), SetCC);
559
559
// Get the absolute value of the object (as an unsigned integer).
560
- __ rsb (int_scratch, int_scratch, Operand ( 0 ), SetCC, mi);
560
+ __ rsb (int_scratch, int_scratch, Operand::Zero ( ), SetCC, mi);
561
561
562
562
// Get mantisssa[51:20].
563
563
@@ -589,7 +589,7 @@ void FloatingPointHelper::ConvertIntToDouble(MacroAssembler* masm,
589
589
__ mov (scratch2, Operand (int_scratch, LSL, scratch2));
590
590
__ orr (dst2, dst2, scratch2);
591
591
// Set dst1 to 0.
592
- __ mov (dst1, Operand ( 0 ));
592
+ __ mov (dst1, Operand::Zero ( ));
593
593
}
594
594
__ bind (&done);
595
595
}
@@ -657,7 +657,7 @@ void FloatingPointHelper::LoadNumberAsInt32Double(MacroAssembler* masm,
657
657
// Check for 0 and -0.
658
658
__ bic (scratch1, dst1, Operand (HeapNumber::kSignMask ));
659
659
__ orr (scratch1, scratch1, Operand (dst2));
660
- __ cmp (scratch1, Operand ( 0 ));
660
+ __ cmp (scratch1, Operand::Zero ( ));
661
661
__ b (eq, &done);
662
662
663
663
// Check that the value can be exactly represented by a 32-bit integer.
@@ -730,7 +730,7 @@ void FloatingPointHelper::LoadNumberAsInt32(MacroAssembler* masm,
730
730
// Check for 0 and -0.
731
731
__ bic (dst, scratch1, Operand (HeapNumber::kSignMask ));
732
732
__ orr (dst, scratch2, Operand (dst));
733
- __ cmp (dst, Operand ( 0 ));
733
+ __ cmp (dst, Operand::Zero ( ));
734
734
__ b (eq, &done);
735
735
736
736
DoubleIs32BitInteger (masm, scratch1, scratch2, dst, scratch3, not_int32);
@@ -747,7 +747,7 @@ void FloatingPointHelper::LoadNumberAsInt32(MacroAssembler* masm,
747
747
// Set the sign.
748
748
__ ldr (scratch1, FieldMemOperand (object, HeapNumber::kExponentOffset ));
749
749
__ tst (scratch1, Operand (HeapNumber::kSignMask ));
750
- __ rsb (dst, dst, Operand ( 0 ), LeaveCC, mi);
750
+ __ rsb (dst, dst, Operand::Zero ( ), LeaveCC, mi);
751
751
}
752
752
753
753
__ bind (&done);
@@ -2424,7 +2424,6 @@ void BinaryOpStub::GenerateSmiCode(
2424
2424
Register left = r1;
2425
2425
Register right = r0;
2426
2426
Register scratch1 = r7;
2427
- Register scratch2 = r9;
2428
2427
2429
2428
// Perform combined smi check on both operands.
2430
2429
__ orr (scratch1, left, Operand (right));
@@ -2618,7 +2617,7 @@ void BinaryOpStub::GenerateInt32Stub(MacroAssembler* masm) {
2618
2617
__ b (mi, &return_heap_number);
2619
2618
// Check for minus zero. Return heap number for minus zero.
2620
2619
Label not_zero;
2621
- __ cmp (scratch1, Operand ( 0 ));
2620
+ __ cmp (scratch1, Operand::Zero ( ));
2622
2621
__ b (ne, ¬_zero);
2623
2622
__ vmov (scratch2, d5.high ());
2624
2623
__ tst (scratch2, Operand (HeapNumber::kSignMask ));
@@ -3110,7 +3109,6 @@ void TranscendentalCacheStub::Generate(MacroAssembler* masm) {
3110
3109
3111
3110
Label no_update;
3112
3111
Label skip_cache;
3113
- const Register heap_number_map = r5;
3114
3112
3115
3113
// Call C function to calculate the result and update the cache.
3116
3114
// Register r0 holds precalculated cache entry address; preserve
@@ -3581,7 +3579,7 @@ void JSEntryStub::GenerateBody(MacroAssembler* masm, bool is_construct) {
3581
3579
ExternalReference js_entry_sp (Isolate::k_js_entry_sp_address, isolate);
3582
3580
__ mov (r5, Operand (ExternalReference (js_entry_sp)));
3583
3581
__ ldr (r6, MemOperand (r5));
3584
- __ cmp (r6, Operand ( 0 ));
3582
+ __ cmp (r6, Operand::Zero ( ));
3585
3583
__ b (ne, &non_outermost_js);
3586
3584
__ str (fp, MemOperand (r5));
3587
3585
__ mov (ip, Operand (Smi::FromInt (StackFrame::OUTERMOST_JSENTRY_FRAME)));
@@ -3656,7 +3654,7 @@ void JSEntryStub::GenerateBody(MacroAssembler* masm, bool is_construct) {
3656
3654
__ pop (r5);
3657
3655
__ cmp (r5, Operand (Smi::FromInt (StackFrame::OUTERMOST_JSENTRY_FRAME)));
3658
3656
__ b (ne, &non_outermost_js_2);
3659
- __ mov (r6, Operand ( 0 ));
3657
+ __ mov (r6, Operand::Zero ( ));
3660
3658
__ mov (r5, Operand (ExternalReference (js_entry_sp)));
3661
3659
__ str (r6, MemOperand (r5));
3662
3660
__ bind (&non_outermost_js_2);
@@ -3857,7 +3855,7 @@ void InstanceofStub::Generate(MacroAssembler* masm) {
3857
3855
__ Push (r0, r1);
3858
3856
__ InvokeBuiltin (Builtins::INSTANCE_OF, CALL_FUNCTION);
3859
3857
__ LeaveInternalFrame ();
3860
- __ cmp (r0, Operand ( 0 ));
3858
+ __ cmp (r0, Operand::Zero ( ));
3861
3859
__ LoadRoot (r0, Heap::kTrueValueRootIndex , eq);
3862
3860
__ LoadRoot (r0, Heap::kFalseValueRootIndex , ne);
3863
3861
__ Ret (HasArgsInRegisters () ? 0 : 2 );
@@ -3991,7 +3989,7 @@ void ArgumentsAccessStub::GenerateNewNonStrictFast(MacroAssembler* masm) {
3991
3989
FixedArray::kHeaderSize + 2 * kPointerSize ;
3992
3990
// If there are no mapped parameters, we do not need the parameter_map.
3993
3991
__ cmp (r1, Operand (Smi::FromInt (0 )));
3994
- __ mov (r9, Operand ( 0 ), LeaveCC, eq);
3992
+ __ mov (r9, Operand::Zero ( ), LeaveCC, eq);
3995
3993
__ mov (r9, Operand (r1, LSL, 1 ), LeaveCC, ne);
3996
3994
__ add (r9, r9, Operand (kParameterMapHeaderSize ), LeaveCC, ne);
3997
3995
@@ -4015,7 +4013,7 @@ void ArgumentsAccessStub::GenerateNewNonStrictFast(MacroAssembler* masm) {
4015
4013
4016
4014
__ ldr (r4, MemOperand (r8, Context::SlotOffset (Context::GLOBAL_INDEX)));
4017
4015
__ ldr (r4, FieldMemOperand (r4, GlobalObject::kGlobalContextOffset ));
4018
- __ cmp (r1, Operand ( 0 ));
4016
+ __ cmp (r1, Operand::Zero ( ));
4019
4017
__ ldr (r4, MemOperand (r4, kNormalOffset ), eq);
4020
4018
__ ldr (r4, MemOperand (r4, kAliasedOffset ), ne);
4021
4019
@@ -5697,7 +5695,7 @@ void StringCompareStub::GenerateAsciiCharsCompareLoop(
5697
5695
Operand (SeqAsciiString::kHeaderSize - kHeapObjectTag ));
5698
5696
__ add (left, left, Operand (scratch1));
5699
5697
__ add (right, right, Operand (scratch1));
5700
- __ rsb (length, length, Operand ( 0 ));
5698
+ __ rsb (length, length, Operand::Zero ( ));
5701
5699
Register index = length; // index = -length;
5702
5700
5703
5701
// Compare loop.
@@ -6555,7 +6553,7 @@ void StringDictionaryLookupStub::Generate(MacroAssembler* masm) {
6555
6553
// treated as a lookup success. For positive lookup probing failure
6556
6554
// should be treated as lookup failure.
6557
6555
if (mode_ == POSITIVE_LOOKUP) {
6558
- __ mov (result, Operand ( 0 ));
6556
+ __ mov (result, Operand::Zero ( ));
6559
6557
__ Ret ();
6560
6558
}
6561
6559
@@ -6564,7 +6562,7 @@ void StringDictionaryLookupStub::Generate(MacroAssembler* masm) {
6564
6562
__ Ret ();
6565
6563
6566
6564
__ bind (¬_in_dictionary);
6567
- __ mov (result, Operand ( 0 ));
6565
+ __ mov (result, Operand::Zero ( ));
6568
6566
__ Ret ();
6569
6567
}
6570
6568
0 commit comments