Ruby  2.0.0p195(2013-05-14revision40734)
iseq.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  iseq.h -
4 
5  $Author: nobu $
6  created at: 04/01/01 23:36:57 JST
7 
8  Copyright (C) 2004-2008 Koichi Sasada
9 
10 **********************************************************************/
11 
12 #ifndef RUBY_COMPILE_H
13 #define RUBY_COMPILE_H
14 
15 #if defined __GNUC__ && __GNUC__ >= 4
16 #pragma GCC visibility push(default)
17 #endif
18 
19 /* compile.c */
23  VALUE exception, VALUE body);
24 
25 /* iseq.c */
26 VALUE rb_iseq_load(VALUE data, VALUE parent, VALUE opt);
27 VALUE rb_iseq_parameters(const rb_iseq_t *iseq, int is_proc);
29 unsigned int rb_iseq_line_no(const rb_iseq_t *iseq, size_t pos);
30 
31 int rb_iseq_line_trace_each(VALUE iseqval, int (*func)(int line, rb_event_flag_t *events_ptr, void *d), void *data);
34 
35 /* proc.c */
37 rb_iseq_t *rb_proc_get_iseq(VALUE proc, int *is_proc);
38 
49 };
50 
52  unsigned int position;
53  unsigned int line_no;
54 };
55 
57  enum catch_type {
64  } type;
66  unsigned long start;
67  unsigned long end;
68  unsigned long cont;
69  unsigned long sp;
70 };
71 
72 #define INITIAL_ISEQ_COMPILE_DATA_STORAGE_BUFF_SIZE (512)
73 
76  unsigned long pos;
77  unsigned long size;
78  char *buff;
79 };
80 
82  /* GC is needed */
85  VALUE catch_table_ary; /* Array */
86 
87  /* GC is not needed */
95  int loopval_popped; /* used by NODE_BREAK */
99  int last_line;
101  int label_no;
104 #if SUPPORT_JOKE
105  st_table *labels_table;
106 #endif
107 };
108 
109 /* defined? */
110 
129 };
130 
132 
133 #define DEFAULT_SPECIAL_VAR_COUNT 2
134 
135 #if defined __GNUC__ && __GNUC__ >= 4
136 #pragma GCC visibility pop
137 #endif
138 
139 #endif /* RUBY_COMPILE_H */
140