* compile.c (struct iseq_link_element, struct iseq_insn_data): made
enum for debuggers. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f4f95b98d4
commit
9ddb37f071
@ -1,3 +1,8 @@
|
|||||||
|
Sun Apr 20 14:58:57 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* compile.c (struct iseq_link_element, struct iseq_insn_data): made
|
||||||
|
enum for debuggers.
|
||||||
|
|
||||||
Sun Apr 20 14:44:45 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Sun Apr 20 14:44:45 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* compile.c (iseq_compile_each): fix for splat in when and rescue.
|
* compile.c (iseq_compile_each): fix for splat in when and rescue.
|
||||||
|
14
compile.c
14
compile.c
@ -34,13 +34,13 @@ VALUE vm_eval(void *);
|
|||||||
|
|
||||||
/* types */
|
/* types */
|
||||||
|
|
||||||
#define ISEQ_ELEMENT_NONE INT2FIX(0x00)
|
|
||||||
#define ISEQ_ELEMENT_LABEL INT2FIX(0x01)
|
|
||||||
#define ISEQ_ELEMENT_INSN INT2FIX(0x02)
|
|
||||||
#define ISEQ_ELEMENT_ADJUST INT2FIX(0x03)
|
|
||||||
|
|
||||||
typedef struct iseq_link_element {
|
typedef struct iseq_link_element {
|
||||||
int type;
|
enum {
|
||||||
|
ISEQ_ELEMENT_NONE = INT2FIX(0x00),
|
||||||
|
ISEQ_ELEMENT_LABEL = INT2FIX(0x01),
|
||||||
|
ISEQ_ELEMENT_INSN = INT2FIX(0x02),
|
||||||
|
ISEQ_ELEMENT_ADJUST = INT2FIX(0x03),
|
||||||
|
} type;
|
||||||
struct iseq_link_element *next;
|
struct iseq_link_element *next;
|
||||||
struct iseq_link_element *prev;
|
struct iseq_link_element *prev;
|
||||||
} LINK_ELEMENT;
|
} LINK_ELEMENT;
|
||||||
@ -61,7 +61,7 @@ typedef struct iseq_label_data {
|
|||||||
|
|
||||||
typedef struct iseq_insn_data {
|
typedef struct iseq_insn_data {
|
||||||
LINK_ELEMENT link;
|
LINK_ELEMENT link;
|
||||||
int insn_id;
|
enum ruby_vminsn_type insn_id;
|
||||||
int line_no;
|
int line_no;
|
||||||
int operand_size;
|
int operand_size;
|
||||||
int sc_state;
|
int sc_state;
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
/* BIN : Basic Instruction Name */
|
/* BIN : Basic Instruction Name */
|
||||||
#define BIN(n) YARVINSN_##n
|
#define BIN(n) YARVINSN_##n
|
||||||
|
|
||||||
enum{
|
enum ruby_vminsn_type {
|
||||||
<%= insns %>
|
<%= insns %>
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user