@@ -165,7 +165,7 @@ void TurboAssembler::LogicalMacro(const Register& rd, const Register& rn,
165165
166166 // If the left-hand input is the stack pointer, we can't pre-shift the
167167 // immediate, as the encoding won't allow the subsequent post shift.
168- PreShiftImmMode mode = rn. Is (sp) ? kNoShift : kAnyShift ;
168+ PreShiftImmMode mode = rn == sp ? kNoShift : kAnyShift ;
169169 Operand imm_operand = MoveImmediateForShiftedOp (temp, immediate, mode);
170170
171171 if (rd.IsSP ()) {
@@ -327,7 +327,7 @@ void TurboAssembler::Mov(const Register& rd, const Operand& operand,
327327 // this case, the instruction is discarded.
328328 //
329329 // If sp is an operand, add #0 is emitted, otherwise, orr #0.
330- if (!rd. Is ( operand.reg () ) ||
330+ if (rd != operand.reg () ||
331331 (rd.Is32Bits () && (discard_mode == kDontDiscardForSameWReg ))) {
332332 Assembler::mov (rd, operand.reg ());
333333 }
@@ -336,7 +336,7 @@ void TurboAssembler::Mov(const Register& rd, const Operand& operand,
336336 }
337337
338338 // Copy the result to the system stack pointer.
339- if (! dst. Is (rd) ) {
339+ if (dst != rd ) {
340340 DCHECK (rd.IsSP ());
341341 Assembler::mov (rd, dst);
342342 }
@@ -697,7 +697,7 @@ Operand TurboAssembler::MoveImmediateForShiftedOp(const Register& dst,
697697void TurboAssembler::AddSubMacro (const Register& rd, const Register& rn,
698698 const Operand& operand, FlagsUpdate S,
699699 AddSubOp op) {
700- if (operand.IsZero () && rd. Is (rn) && rd.Is64Bits () && rn.Is64Bits () &&
700+ if (operand.IsZero () && rd == rn && rd.Is64Bits () && rn.Is64Bits () &&
701701 !operand.NeedsRelocation (this ) && (S == LeaveFlags)) {
702702 // The instruction would be a nop. Avoid generating useless code.
703703 return ;
@@ -720,11 +720,11 @@ void TurboAssembler::AddSubMacro(const Register& rd, const Register& rn,
720720 // If the destination or source register is the stack pointer, we can
721721 // only pre-shift the immediate right by values supported in the add/sub
722722 // extend encoding.
723- if (rd. Is (sp) ) {
723+ if (rd == sp ) {
724724 // If the destination is SP and flags will be set, we can't pre-shift
725725 // the immediate at all.
726726 mode = (S == SetFlags) ? kNoShift : kLimitShiftForSP ;
727- } else if (rn. Is (sp) ) {
727+ } else if (rn == sp ) {
728728 mode = kLimitShiftForSP ;
729729 }
730730
@@ -910,7 +910,7 @@ void TurboAssembler::Adr(const Register& rd, Label* label, AdrHint hint) {
910910}
911911
912912void TurboAssembler::B (Label* label, BranchType type, Register reg, int bit) {
913- DCHECK ((reg. Is ( NoReg) || type >= kBranchTypeFirstUsingReg ) &&
913+ DCHECK ((reg == NoReg || type >= kBranchTypeFirstUsingReg ) &&
914914 (bit == -1 || type >= kBranchTypeFirstUsingBit ));
915915 if (kBranchTypeFirstCondition <= type && type <= kBranchTypeLastCondition ) {
916916 B (static_cast <Condition>(type), label);
@@ -1487,7 +1487,7 @@ void TurboAssembler::MovePair(Register dst0, Register src0, Register dst1,
14871487
14881488void TurboAssembler::Swap (Register lhs, Register rhs) {
14891489 DCHECK (lhs.IsSameSizeAndType (rhs));
1490- DCHECK (! lhs. Is ( rhs) );
1490+ DCHECK_NE ( lhs, rhs);
14911491 UseScratchRegisterScope temps (this );
14921492 Register temp = temps.AcquireX ();
14931493 Mov (temp, rhs);
@@ -1497,7 +1497,7 @@ void TurboAssembler::Swap(Register lhs, Register rhs) {
14971497
14981498void TurboAssembler::Swap (VRegister lhs, VRegister rhs) {
14991499 DCHECK (lhs.IsSameSizeAndType (rhs));
1500- DCHECK (! lhs. Is ( rhs) );
1500+ DCHECK_NE ( lhs, rhs);
15011501 UseScratchRegisterScope temps (this );
15021502 VRegister temp = VRegister::no_reg ();
15031503 if (lhs.IsS ()) {
@@ -2179,8 +2179,8 @@ void MacroAssembler::InvokeFunctionCode(Register function, Register new_target,
21792179 InvokeFlag flag) {
21802180 // You can't call a function without a valid frame.
21812181 DCHECK (flag == JUMP_FUNCTION || has_frame ());
2182- DCHECK (function. is (x1) );
2183- DCHECK_IMPLIES (new_target.is_valid (), new_target. is (x3) );
2182+ DCHECK_EQ (function, x1 );
2183+ DCHECK_IMPLIES (new_target.is_valid (), new_target == x3 );
21842184
21852185 // On function call, call into the debugger if necessary.
21862186 Label debug_hook, continue_after_hook;
@@ -2235,7 +2235,7 @@ void MacroAssembler::InvokeFunctionWithNewTarget(
22352235
22362236 // Contract with called JS functions requires that function is passed in x1.
22372237 // (See FullCodeGenerator::Generate().)
2238- DCHECK (function. is (x1) );
2238+ DCHECK_EQ (function, x1 );
22392239
22402240 Register expected_parameter_count = x2;
22412241
@@ -2264,7 +2264,7 @@ void MacroAssembler::InvokeFunction(Register function,
22642264
22652265 // Contract with called JS functions requires that function is passed in x1.
22662266 // (See FullCodeGenerator::Generate().)
2267- DCHECK (function. Is (x1) );
2267+ DCHECK_EQ (function, x1 );
22682268
22692269 // Set up the context.
22702270 LoadTaggedPointerField (cp,
0 commit comments