summaryrefslogtreecommitdiff
path: root/vm_exec.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-23 09:34:31 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-23 09:34:31 (GMT)
commit18f6978625fe8adc4fe6e414e73e97d52b566592 (patch)
treef3941e0d248e616a71d486a657de136e80df2a09 /vm_exec.c
parentf965866f4f0a00c8179a1097e89fb4e61f71a92a (diff)
* vm_core.h: constify rb_iseq_constant_body::iseq_encoded and
rb_control_frame_t::pc. * compile.c (rb_iseq_translate_threaded_code): catch up this fix. * iseq.c: ditto. * vm_exec.c (vm_exec_core): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_exec.c')
-rw-r--r--vm_exec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/vm_exec.c b/vm_exec.c
index 330d35a..5e4ff94 100644
--- a/vm_exec.c
+++ b/vm_exec.c
@@ -60,12 +60,12 @@ vm_exec_core(rb_thread_t *th, VALUE initial)
#endif
#if defined(__GNUC__) && defined(__i386__)
- DECL_SC_REG(VALUE *, pc, "di");
+ DECL_SC_REG(const VALUE *, pc, "di");
DECL_SC_REG(rb_control_frame_t *, cfp, "si");
#define USE_MACHINE_REGS 1
#elif defined(__GNUC__) && defined(__x86_64__)
- DECL_SC_REG(VALUE *, pc, "14");
+ DECL_SC_REG(const VALUE *, pc, "14");
# if defined(__native_client__)
DECL_SC_REG(rb_control_frame_t *, cfp, "13");
# else
@@ -74,13 +74,13 @@ vm_exec_core(rb_thread_t *th, VALUE initial)
#define USE_MACHINE_REGS 1
#elif defined(__GNUC__) && defined(__powerpc64__)
- DECL_SC_REG(VALUE *, pc, "14");
+ DECL_SC_REG(const 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;
+ const VALUE *reg_pc;
#endif
#if USE_MACHINE_REGS