mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
* vm_insnhelper.h: rename REG_(CFP|PC|SP|EP) to VM_REG_....
[Bug #12527] * vm_exec.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a44c3bb26f
commit
b0569e3dde
3 changed files with 28 additions and 21 deletions
|
@ -88,16 +88,16 @@ vm_exec_core(rb_thread_t *th, VALUE initial)
|
|||
#undef RESTORE_REGS
|
||||
#define RESTORE_REGS() \
|
||||
{ \
|
||||
REG_CFP = th->cfp; \
|
||||
VM_REG_CFP = th->cfp; \
|
||||
reg_pc = reg_cfp->pc; \
|
||||
}
|
||||
|
||||
#undef REG_PC
|
||||
#define REG_PC reg_pc
|
||||
#undef VM_REG_PC
|
||||
#define VM_REG_PC reg_pc
|
||||
#undef GET_PC
|
||||
#define GET_PC() (reg_pc)
|
||||
#undef SET_PC
|
||||
#define SET_PC(x) (reg_cfp->pc = REG_PC = (x))
|
||||
#define SET_PC(x) (reg_cfp->pc = VM_REG_PC = (x))
|
||||
#endif
|
||||
|
||||
#if OPT_TOKEN_THREADED_CODE || OPT_DIRECT_THREADED_CODE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue