зеркало из https://github.com/mozilla/gecko-dev.git
Bug 854103 - Ignore the high bits of returnReg in js_InternalInterpret on x86_64 when it actually holds a bool. r=dvander
This commit is contained in:
Родитель
cb9f22d4b6
Коммит
f59e63a2d2
|
@ -880,7 +880,7 @@ js_InternalInterpret(void *returnData, void *returnType, void *returnReg, js::VM
|
|||
}
|
||||
|
||||
case REJOIN_PUSH_BOOLEAN:
|
||||
nextsp[-1].setBoolean(returnReg != NULL);
|
||||
nextsp[-1].setBoolean((JSBool)(uintptr_t)returnReg);
|
||||
f.regs.pc = nextpc;
|
||||
break;
|
||||
|
||||
|
@ -1071,10 +1071,10 @@ js_InternalInterpret(void *returnData, void *returnType, void *returnReg, js::VM
|
|||
bool takeBranch = false;
|
||||
switch (JSOp(*nextpc)) {
|
||||
case JSOP_IFNE:
|
||||
takeBranch = returnReg != NULL;
|
||||
takeBranch = (JSBool)(uintptr_t)returnReg;
|
||||
break;
|
||||
case JSOP_IFEQ:
|
||||
takeBranch = returnReg == NULL;
|
||||
takeBranch = !(JSBool)(uintptr_t)returnReg;
|
||||
break;
|
||||
default:
|
||||
JS_NOT_REACHED("Bad branch op");
|
||||
|
|
Загрузка…
Ссылка в новой задаче