fix ivar and fvar lookup code
parent
f4b8d077bb
commit
3e8db1042a
|
@ -481,26 +481,32 @@ lookup_id:
|
||||||
);
|
);
|
||||||
switch (id.get_type()) {
|
switch (id.get_type()) {
|
||||||
case ident_type::IVAR:
|
case ident_type::IVAR:
|
||||||
|
if (ltype == VAL_POP) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
gs.gen_lookup_ivar(id, ltype);
|
||||||
switch (ltype) {
|
switch (ltype) {
|
||||||
case VAL_CODE:
|
case VAL_CODE:
|
||||||
case VAL_IDENT:
|
case VAL_IDENT:
|
||||||
gs.gen_lookup_ivar(id, ltype);
|
lookup_done(gs, ltype);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return;
|
break;
|
||||||
}
|
}
|
||||||
lookup_done(gs, ltype);
|
|
||||||
return;
|
return;
|
||||||
case ident_type::FVAR:
|
case ident_type::FVAR:
|
||||||
|
if (ltype == VAL_POP) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
gs.gen_lookup_fvar(id, ltype);
|
||||||
switch (ltype) {
|
switch (ltype) {
|
||||||
case VAL_CODE:
|
case VAL_CODE:
|
||||||
case VAL_IDENT:
|
case VAL_IDENT:
|
||||||
gs.gen_lookup_fvar(id, ltype);
|
lookup_done(gs, ltype);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return;
|
break;
|
||||||
}
|
}
|
||||||
lookup_done(gs, ltype);
|
|
||||||
return;
|
return;
|
||||||
case ident_type::SVAR:
|
case ident_type::SVAR:
|
||||||
switch (ltype) {
|
switch (ltype) {
|
||||||
|
|
Loading…
Reference in New Issue