Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Unified Diff: src/x64/assembler-x64.h

Issue 9455088: Remove static initializers in v8. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Lint. Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/x64/assembler-x64.h
diff --git a/src/x64/assembler-x64.h b/src/x64/assembler-x64.h
index 7af33e126f8401641ea128ecc7d1054267dbb5a5..ef0806476bbea399fba3fa74718b060eb593f23e 100644
--- a/src/x64/assembler-x64.h
+++ b/src/x64/assembler-x64.h
@@ -161,23 +161,41 @@ struct Register {
static const int kAllocationIndexByRegisterCode[kNumRegisters];
};
-const Register rax = { 0 };
-const Register rcx = { 1 };
-const Register rdx = { 2 };
-const Register rbx = { 3 };
-const Register rsp = { 4 };
-const Register rbp = { 5 };
-const Register rsi = { 6 };
-const Register rdi = { 7 };
-const Register r8 = { 8 };
-const Register r9 = { 9 };
-const Register r10 = { 10 };
-const Register r11 = { 11 };
-const Register r12 = { 12 };
-const Register r13 = { 13 };
-const Register r14 = { 14 };
-const Register r15 = { 15 };
-const Register no_reg = { -1 };
+const int kRegisterRaxCode = 0;
+const int kRegisterRcxCode = 1;
+const int kRegisterRdxCode = 2;
+const int kRegisterRbxCode = 3;
+const int kRegisterRspCode = 4;
+const int kRegisterRbpCode = 5;
+const int kRegisterRsiCode = 6;
+const int kRegisterRdiCode = 7;
+const int kRegisterR8Code = 8;
+const int kRegisterR9Code = 9;
+const int kRegisterR10Code = 10;
+const int kRegisterR11Code = 11;
+const int kRegisterR12Code = 12;
+const int kRegisterR13Code = 13;
+const int kRegisterR14Code = 14;
+const int kRegisterR15Code = 15;
+const int kRegisterNoneCode = -1;
+
+const Register rax = { kRegisterRaxCode };
+const Register rcx = { kRegisterRcxCode };
+const Register rdx = { kRegisterRdxCode };
+const Register rbx = { kRegisterRbxCode };
+const Register rsp = { kRegisterRspCode };
+const Register rbp = { kRegisterRbpCode };
+const Register rsi = { kRegisterRsiCode };
+const Register rdi = { kRegisterRdiCode };
+const Register r8 = { kRegisterR8Code };
+const Register r9 = { kRegisterR9Code };
+const Register r10 = { kRegisterR10Code };
+const Register r11 = { kRegisterR11Code };
+const Register r12 = { kRegisterR12Code };
+const Register r13 = { kRegisterR13Code };
+const Register r14 = { kRegisterR14Code };
+const Register r15 = { kRegisterR15Code };
+const Register no_reg = { kRegisterNoneCode };
struct XMMRegister {

Powered by Google App Engine
This is Rietveld 408576698