зеркало из https://github.com/github/ruby.git
* vm_exec.c: improve performance in ppc64 arch.
[ruby-core:63437] [Feature #9997] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
0210b487a4
Коммит
d1075b72c8
|
@ -1,3 +1,8 @@
|
|||
Tue Aug 12 12:57:28 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||
|
||||
* vm_exec.c: improve performance in ppc64 arch.
|
||||
[ruby-core:63437] [Feature #9997]
|
||||
|
||||
Tue Aug 12 12:14:52 2014 Akira Matsuda <ronnie@dio.jp>
|
||||
|
||||
* lib/fileutils.rb: fix typo.
|
||||
|
|
|
@ -24,6 +24,9 @@ static void vm_analysis_insn(int insn);
|
|||
#elif defined(__GNUC__) && defined(__i386__)
|
||||
#define DECL_SC_REG(type, r, reg) register type reg_##r __asm__("e" reg)
|
||||
|
||||
#elif defined(__GNUC__) && defined(__powerpc64__)
|
||||
#define DECL_SC_REG(type, r, reg) register type reg_##r __asm__("r" reg)
|
||||
|
||||
#else
|
||||
#define DECL_SC_REG(type, r, reg) register type reg_##r
|
||||
#endif
|
||||
|
@ -70,6 +73,11 @@ vm_exec_core(rb_thread_t *th, VALUE initial)
|
|||
# endif
|
||||
#define USE_MACHINE_REGS 1
|
||||
|
||||
#elif defined(__GNUC__) && defined(__powerpc64__)
|
||||
DECL_SC_REG(VALUE *, pc, "14");
|
||||
DECL_SC_REG(rb_control_frame_t *, cfp, "15");
|
||||
#define USE_MACHINE_REGS 1
|
||||
|
||||
#else
|
||||
register rb_control_frame_t *reg_cfp;
|
||||
VALUE *reg_pc;
|
||||
|
|
Загрузка…
Ссылка в новой задаче