зеркало из https://github.com/mozilla/gecko-dev.git
Improve TABLESWITCH comment precision and add XXX about JSVERSION_IS_ECMAv2.
This commit is contained in:
Родитель
b80096d040
Коммит
a95987dd0b
|
@ -2242,7 +2242,8 @@ js_Interpret(JSContext *cx, jsval *result)
|
||||||
/*
|
/*
|
||||||
* ECMAv2 forbids conversion of discriminant, so we will skip to
|
* ECMAv2 forbids conversion of discriminant, so we will skip to
|
||||||
* the default case if the discriminant isn't an int jsval.
|
* the default case if the discriminant isn't an int jsval.
|
||||||
* (This opcode is only emitted for all-integer switches.)
|
* (This opcode is emitted only for dense jsint-domain switches.)
|
||||||
|
* XXX don't use JSVERSION_IS_ECMAv2, it's wrong and overloaded
|
||||||
*/
|
*/
|
||||||
if (cx->version == JSVERSION_DEFAULT ||
|
if (cx->version == JSVERSION_DEFAULT ||
|
||||||
cx->version >= JSVERSION_1_4) {
|
cx->version >= JSVERSION_1_4) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче