aboutsummaryrefslogtreecommitdiffstats
path: root/vm_exec.h
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-05 05:59:23 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-05 05:59:23 +0000
commit295bc2fe2577336807db6e2c30bd642bdb6482bc (patch)
treee8af2c0334772bc31cc943c68fd2a884605830cc /vm_exec.h
parent623a79c376fec2f76cc33819807f1903b40c3dea (diff)
downloadruby-295bc2fe2577336807db6e2c30bd642bdb6482bc.tar.gz
removes the dtrace support. reverts r26239, r26238 and r26235.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_exec.h')
-rw-r--r--vm_exec.h35
1 files changed, 2 insertions, 33 deletions
diff --git a/vm_exec.h b/vm_exec.h
index 0a72f17854..9ae81794bd 100644
--- a/vm_exec.h
+++ b/vm_exec.h
@@ -52,39 +52,8 @@ typedef rb_iseq_t *ISEQ;
#else
#define debugs
-extern const char *rb_vm_insn_name(int);
-#define DEBUG_ENTER_INSN(insn) \
- do { \
- if (UNLIKELY(TRACE_INSN_ENTRY_ENABLED())) { \
- rb_control_frame_t *cfp = GET_CFP(); \
- rb_iseq_t *iseq = cfp->iseq; \
- if (iseq != NULL && VM_FRAME_TYPE(cfp) != VM_FRAME_MAGIC_FINISH) { \
- VALUE *seq = iseq->iseq; \
- int pc = cfp->pc - iseq->iseq_encoded; \
- FIRE_INSN_ENTRY((char *)rb_vm_insn_name(seq[pc]), \
- seq+1, \
- (char *)rb_sourcefile(), \
- rb_sourceline()); \
- } \
- } \
- } \
- while (0)
-#define DEBUG_END_INSN() \
- do { \
- if (UNLIKELY(TRACE_INSN_RETURN_ENABLED())) { \
- rb_control_frame_t *cfp = GET_CFP(); \
- rb_iseq_t *iseq = cfp->iseq; \
- if (iseq != NULL && VM_FRAME_TYPE(cfp) != VM_FRAME_MAGIC_FINISH) { \
- VALUE *seq = iseq->iseq; \
- int pc = cfp->pc - iseq->iseq_encoded; \
- FIRE_INSN_RETURN((char *)rb_vm_insn_name(seq[pc]), \
- seq+1, \
- (char *)rb_sourcefile(), \
- rb_sourceline()); \
- } \
- } \
- } \
- while (0)
+#define DEBUG_ENTER_INSN(insn)
+#define DEBUG_END_INSN()
#endif
#define throwdebug if(0)printf