diff options
author | Mike Pall <mike> | 2010-09-09 12:28:17 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2010-09-09 12:28:17 +0200 |
commit | 96957a4551a464160be2c1450f39744ac8313364 (patch) | |
tree | 652fd8bc3b4c0f75173d74fb3f8f060e5af9f6b4 /src/lj_obj.h | |
parent | fd63b05253f11d7e436c3685827fce9b64725da6 (diff) | |
download | luajit-96957a4551a464160be2c1450f39744ac8313364.tar.gz luajit-96957a4551a464160be2c1450f39744ac8313364.tar.bz2 luajit-96957a4551a464160be2c1450f39744ac8313364.zip |
Turn some lua_State fields into 32 bit pointers.
lua_State now fits into one cache line on x64.
Diffstat (limited to 'src/lj_obj.h')
-rw-r--r-- | src/lj_obj.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_obj.h b/src/lj_obj.h index 5eaa7145..4baa62d8 100644 --- a/src/lj_obj.h +++ b/src/lj_obj.h | |||
@@ -525,8 +525,8 @@ struct lua_State { | |||
525 | GCRef gclist; /* GC chain. */ | 525 | GCRef gclist; /* GC chain. */ |
526 | TValue *base; /* Base of currently executing function. */ | 526 | TValue *base; /* Base of currently executing function. */ |
527 | TValue *top; /* First free slot in the stack. */ | 527 | TValue *top; /* First free slot in the stack. */ |
528 | TValue *maxstack; /* Last free slot in the stack. */ | 528 | MRef maxstack; /* Last free slot in the stack. */ |
529 | TValue *stack; /* Stack base. */ | 529 | MRef stack; /* Stack base. */ |
530 | GCRef openupval; /* List of open upvalues in the stack. */ | 530 | GCRef openupval; /* List of open upvalues in the stack. */ |
531 | GCRef env; /* Thread environment (table of globals). */ | 531 | GCRef env; /* Thread environment (table of globals). */ |
532 | void *cframe; /* End of C stack frame chain. */ | 532 | void *cframe; /* End of C stack frame chain. */ |