Bug 975636 - Fix parallel bitop VM functions. (r=nmatsakis)

This commit is contained in:
Shu-yu Guo 2014-04-07 13:02:20 -07:00
Родитель 3847f3a544
Коммит 69137d59d3
2 изменённых файлов: 11 добавлений и 4 удалений

Просмотреть файл

@ -0,0 +1,7 @@
load(libdir + "parallelarray-helpers.js");
if (getBuildConfiguration().parallelJS) {
function f(x) { return [] << 0; }
var a = Array.buildPar(9, f);
var b = Array.build(9, f);
assertEqArray(a, b);
}

Просмотреть файл

@ -497,7 +497,7 @@ jit::BitNotPar(ForkJoinContext *cx, HandleValue in, int32_t *out)
JS_BEGIN_MACRO \
int32_t left, right; \
if (lhs.isObject() || rhs.isObject()) \
return TP_RETRY_SEQUENTIALLY; \
return false; \
if (!NonObjectToInt32(cx, lhs, &left) || \
!NonObjectToInt32(cx, rhs, &right)) \
{ \
@ -528,7 +528,7 @@ jit::BitAndPar(ForkJoinContext *cx, HandleValue lhs, HandleValue rhs, int32_t *o
bool
jit::BitLshPar(ForkJoinContext *cx, HandleValue lhs, HandleValue rhs, int32_t *out)
{
BIT_OP(left << (right & 31));
BIT_OP(uint32_t(left) << (right & 31));
}
bool