Index: src/arm/assembler-arm.h |
diff --git a/src/arm/assembler-arm.h b/src/arm/assembler-arm.h |
index eb7eb0cb99a3f15dfe927564db0602a1def2882e..c72792660da5e44b384d7319aa25bab60bcc55be 100644 |
--- a/src/arm/assembler-arm.h |
+++ b/src/arm/assembler-arm.h |
@@ -149,7 +149,20 @@ const Register no_reg = {Register::kCode_no_reg}; |
// Single word VFP register. |
struct SwVfpRegister { |
+ enum Code { |
+#define REGISTER_CODE(R) kCode_##R, |
+ FLOAT_REGISTERS(REGISTER_CODE) |
+#undef REGISTER_CODE |
+ kAfterLast, |
+ kCode_no_reg = -1 |
+ }; |
+ |
+ static const int kMaxNumRegisters = Code::kAfterLast; |
+ |
static const int kSizeInBytes = 4; |
+ |
+ const char* ToString(); |
+ bool IsAllocatable() const; |
bool is_valid() const { return 0 <= reg_code && reg_code < 32; } |
bool is(SwVfpRegister reg) const { return reg_code == reg.reg_code; } |
int code() const { |