Lines Matching defs:code
2 // Use of this source code is governed by a BSD-style license that can be
63 bool is_byte_register() const { return code() <= 3; }
64 // Return the high bit of the register code as a 0 or 1. Used often
66 int high_bit() const { return code() >> 3; }
67 // Return the 3 low bits of the register code. Used when encoding registers
69 int low_bits() const { return code() & 0x7; }
73 explicit constexpr Register(int code) : RegisterBase(code) {}
187 // Return the high bit of the register code as a 0 or 1. Used often
189 int high_bit() const { return code() >> 3; }
190 // Return the 3 low bits of the register code. Used when encoding registers
192 int low_bits() const { return code() & 0x7; }
196 explicit constexpr XMMRegister(int code) : RegisterBase(code) {}
205 static constexpr YMMRegister from_code(int code) {
206 DCHECK(base::IsInRange(code, 0, XMMRegister::kNumRegisters - 1));
207 return YMMRegister(code);
212 explicit constexpr YMMRegister(int code) : XMMRegister(code) {}
264 // Default scratch register used by MacroAssembler (and other code that needs