Lines Matching refs:code
6 // * Redistributions of source code must retain the above copyright
48 // The Dump method generates code to store a snapshot of the register values.
52 // The dumping code is generated though the given MacroAssembler. No registers
58 inline int32_t wreg(unsigned code) const {
59 if (code == kSPRegInternalCode) {
62 ASSERT(RegAliasesMatch(code));
63 return dump_.w_[code];
66 inline int64_t xreg(unsigned code) const {
67 if (code == kSPRegInternalCode) {
70 ASSERT(RegAliasesMatch(code));
71 return dump_.x_[code];
75 inline uint32_t sreg_bits(unsigned code) const {
76 ASSERT(FPRegAliasesMatch(code));
77 return dump_.s_[code];
80 inline float sreg(unsigned code) const {
81 return rawbits_to_float(sreg_bits(code));
84 inline uint64_t dreg_bits(unsigned code) const {
85 ASSERT(FPRegAliasesMatch(code));
86 return dump_.d_[code];
89 inline double dreg(unsigned code) const {
90 return rawbits_to_double(dreg_bits(code));
119 // Check that the lower 32 bits of x<code> exactly match the 32 bits of
120 // w<code>. A failure of this test most likely represents a failure in the
122 bool RegAliasesMatch(unsigned code) const {
124 ASSERT(code < kNumberOfRegisters);
125 return ((dump_.x_[code] & kWRegMask) == dump_.w_[code]);
135 bool FPRegAliasesMatch(unsigned code) const {
137 ASSERT(code < kNumberOfFPRegisters);
138 return (dump_.d_[code] & kSRegMask) == dump_.s_[code];