fixes for benchmarks
This commit is contained in:
Родитель
8855d03cc5
Коммит
e82689262a
|
@ -286,12 +286,11 @@ function __initializeRuntime__() {
|
|||
Module['FHEAP'] = FHEAP;
|
||||
|
||||
STACK_ROOT = STACKTOP = alignMemoryPage(10);
|
||||
var totalStack = 1024*1024; // XXX: Changing this value can lead to bad perf on v8!
|
||||
try {
|
||||
var x = TOTAL_STACK;
|
||||
} catch(e) {
|
||||
TOTAL_STACK = 1024*1024; // Reserved room for stack XXX: Changing this value can lead to bad perf on v8!
|
||||
}
|
||||
STACK_MAX = STACK_ROOT + TOTAL_STACK;
|
||||
totalStack = TOTAL_STACK;
|
||||
} catch(e){}
|
||||
STACK_MAX = STACK_ROOT + totalStack;
|
||||
|
||||
STATICTOP = alignMemoryPage(STACK_MAX);
|
||||
}
|
||||
|
|
|
@ -216,10 +216,10 @@ function flatten(x) {
|
|||
// Sets
|
||||
|
||||
function set() {
|
||||
if (typeof arguments[0] === 'object') arguments = arguments[0];
|
||||
var args = typeof arguments[0] === 'object' ? arguments[0] : arguments;
|
||||
var ret = {};
|
||||
for (var i = 0; i < arguments.length; i++) {
|
||||
ret[arguments[i]] = 0;
|
||||
for (var i = 0; i < args.length; i++) {
|
||||
ret[args[i]] = 0;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -1877,10 +1877,12 @@ else:
|
|||
JS_ENGINE = SPIDERMONKEY_ENGINE
|
||||
#JS_ENGINE = V8_ENGINE
|
||||
|
||||
global COMPILER_TEST_OPTS; COMPILER_TEST_OPTS = []
|
||||
|
||||
QUANTUM_SIZE = 4
|
||||
RELOOP = OPTIMIZE = 1
|
||||
USE_TYPED_ARRAYS = 0
|
||||
GUARD_MEMORY = SAFE_HEAP = CHECK_OVERFLOWS = CORRECT_OVERFLOWS = 0
|
||||
GUARD_MEMORY = SAFE_HEAP = CHECK_OVERFLOWS = CORRECT_OVERFLOWS = CHECK_SIGNS = 0
|
||||
CORRECT_SIGNS = 0
|
||||
CORRECT_OVERFLOWS_LINES = CORRECT_SIGNS_LINES = []
|
||||
LLVM_OPTS = 1
|
||||
|
|
Загрузка…
Ссылка в новой задаче