Index: src/ia32/assembler-ia32.h |
=================================================================== |
--- src/ia32/assembler-ia32.h (revision 2101) |
+++ src/ia32/assembler-ia32.h (working copy) |
@@ -79,15 +79,15 @@ |
int code_; |
}; |
-extern Register eax; |
-extern Register ecx; |
-extern Register edx; |
-extern Register ebx; |
-extern Register esp; |
-extern Register ebp; |
-extern Register esi; |
-extern Register edi; |
-extern Register no_reg; |
+const Register eax = {0}; |
Kevin Millikin (Chromium)
2009/06/04 10:58:31
Format this one like the others.
|
+const Register ecx = { 1 }; |
+const Register edx = { 2 }; |
+const Register ebx = { 3 }; |
+const Register esp = { 4 }; |
+const Register ebp = { 5 }; |
+const Register esi = { 6 }; |
+const Register edi = { 7 }; |
+const Register no_reg = { -1 }; |
struct XMMRegister { |
@@ -100,14 +100,14 @@ |
int code_; |
}; |
-extern XMMRegister xmm0; |
-extern XMMRegister xmm1; |
-extern XMMRegister xmm2; |
-extern XMMRegister xmm3; |
-extern XMMRegister xmm4; |
-extern XMMRegister xmm5; |
-extern XMMRegister xmm6; |
-extern XMMRegister xmm7; |
+const XMMRegister xmm0 = { 0 }; |
William Hesse
2009/06/04 10:49:51
OK, static const changed to const.
|
+const XMMRegister xmm1 = { 1 }; |
+const XMMRegister xmm2 = { 2 }; |
+const XMMRegister xmm3 = { 3 }; |
+const XMMRegister xmm4 = { 4 }; |
+const XMMRegister xmm5 = { 5 }; |
+const XMMRegister xmm6 = { 6 }; |
+const XMMRegister xmm7 = { 7 }; |
enum Condition { |
// any value < 0 is considered no_condition |