зеркало из https://github.com/mozilla/gecko-dev.git
Bug 975636 - Fix parallel bitop VM functions. (r=nmatsakis)
This commit is contained in:
Родитель
3847f3a544
Коммит
69137d59d3
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче