summaryrefslogtreecommitdiff
path: root/src/lj_target_x86.h
diff options
context:
space:
mode:
authorMike Pall <mike>2009-12-28 21:18:44 +0100
committerMike Pall <mike>2009-12-28 21:18:44 +0100
commit7b7c6ed754e5fc9f9a76da7c7d06d311d66cbd79 (patch)
treee696eb70094df2dd5e884dafb181b0a43a5c0140 /src/lj_target_x86.h
parentda65e0dfed4107adcd10bfff671af3630f304f35 (diff)
downloadluajit-7b7c6ed754e5fc9f9a76da7c7d06d311d66cbd79.tar.gz
luajit-7b7c6ed754e5fc9f9a76da7c7d06d311d66cbd79.tar.bz2
luajit-7b7c6ed754e5fc9f9a76da7c7d06d311d66cbd79.zip
Change callee-save regs for x64 interpreter to shorten code.
Diffstat (limited to '')
-rw-r--r--src/lj_target_x86.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lj_target_x86.h b/src/lj_target_x86.h
index 2fb3c4b8..198245cd 100644
--- a/src/lj_target_x86.h
+++ b/src/lj_target_x86.h
@@ -40,8 +40,13 @@ enum {
40 40
41 /* These definitions must match with the *.dasc file(s): */ 41 /* These definitions must match with the *.dasc file(s): */
42 RID_BASE = RID_EDX, /* Interpreter BASE. */ 42 RID_BASE = RID_EDX, /* Interpreter BASE. */
43#if LJ_64 && !defined(_WIN64)
44 RID_PC = RID_EBX, /* Interpreter PC. */
45 RID_DISPATCH = RID_R14D, /* Interpreter DISPATCH table. */
46#else
43 RID_PC = RID_ESI, /* Interpreter PC. */ 47 RID_PC = RID_ESI, /* Interpreter PC. */
44 RID_DISPATCH = RID_EBX, /* Interpreter DISPATCH table. */ 48 RID_DISPATCH = RID_EBX, /* Interpreter DISPATCH table. */
49#endif
45 50
46 /* Register ranges [min, max) and number of registers. */ 51 /* Register ranges [min, max) and number of registers. */
47 RID_MIN_GPR = RID_EAX, 52 RID_MIN_GPR = RID_EAX,