Remove sporadic else after return (534364 followup).

This commit is contained in:
Brendan Eich 2009-12-13 09:04:46 -08:00
parent cbfcd61cea
commit 2c1104d609

View File

@ -1723,9 +1723,8 @@ public:
// this function returns a double as two 32bit values, so replace
// call with qjoin(qhi(call), call)
return split(ci, args);
} else {
return out->insCall(ci, args);
}
return out->insCall(ci, args);
}
};
@ -8315,14 +8314,17 @@ TraceRecorder::f2i(LIns* f)
if (ci == &js_UnboxDouble_ci) {
LIns* args[] = { fcallarg(f, 0) };
return lir->insCall(&js_UnboxInt32_ci, args);
} else if (ci == &js_StringToNumber_ci) {
}
if (ci == &js_StringToNumber_ci) {
LIns* args[] = { fcallarg(f, 1), fcallarg(f, 0) };
return lir->insCall(&js_StringToInt32_ci, args);
} else if (ci == &js_String_p_charCodeAt0_ci) {
}
if (ci == &js_String_p_charCodeAt0_ci) {
// Use a fast path builtin for a charCodeAt that converts to an int right away.
LIns* args[] = { fcallarg(f, 1) };
return lir->insCall(&js_String_p_charCodeAt0_int_ci, args);
} else if (ci == &js_String_p_charCodeAt_ci) {
}
if (ci == &js_String_p_charCodeAt_ci) {
LIns* idx = fcallarg(f, 1);
// If the index is not already an integer, force it to be an integer.
idx = isPromote(idx)