mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Hack: demotable stores have to be flagged as int in the exit typemap. This needs cleanup.
This commit is contained in:
parent
64bf4baa1c
commit
ac0b138197
@ -321,11 +321,12 @@ public:
|
||||
interpreter is using. For numbers we have to check what kind of store we used last
|
||||
(integer or double) to figure out what the side exit show reflect in its typemap. */
|
||||
int getStoreType(jsval& v) {
|
||||
LIns* i = recorder.get(&v);
|
||||
int t = isNumber(v)
|
||||
? (recorder.get(&v)->isQuad() ? JSVAL_DOUBLE : JSVAL_INT)
|
||||
? (isPromote(i) ? JSVAL_INT : JSVAL_DOUBLE)
|
||||
: JSVAL_TAG(v);
|
||||
#ifdef DEBUG
|
||||
printf("%c", "OID?S?B"[t]);
|
||||
printf("%c", "OID?S?B*"[t]);
|
||||
#endif
|
||||
return t;
|
||||
}
|
||||
@ -337,7 +338,7 @@ public:
|
||||
{
|
||||
#ifdef DEBUG
|
||||
printf("side exit type map: ");
|
||||
#endif
|
||||
#endif
|
||||
JSStackFrame* global = recorder.getGlobalFrame();
|
||||
for (unsigned n = 0; n < global->script->ngvars; ++n)
|
||||
*m++ = (global->vars[n] != JSVAL_NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user