Backed out changeset 368fb0c5a339 due to jsreftest breakage.

This commit is contained in:
Nicholas Nethercote 2010-10-20 16:27:04 -07:00
Родитель ed5ad8281d
Коммит 4692a0d507
935 изменённых файлов: 84 добавлений и 84 удалений

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

@ -570,11 +570,11 @@ endif
ifdef ENABLE_TRACEJIT ifdef ENABLE_TRACEJIT
ifndef WINCE ifndef WINCE
check:: check::
$(wildcard $(RUN_TEST_PROGRAM)) $(PYTHON) -u $(srcdir)/jit-test/jit_test.py \ $(wildcard $(RUN_TEST_PROGRAM)) $(PYTHON) -u $(srcdir)/trace-test/trace_test.py \
--no-slow --no-progress --tinderbox $(DIST)/bin/js$(BIN_SUFFIX) --no-slow --no-progress --tinderbox $(DIST)/bin/js$(BIN_SUFFIX)
check-valgrind:: check-valgrind::
$(wildcard $(RUN_TEST_PROGRAM)) $(PYTHON) -u $(srcdir)/jit-test/jit_test.py \ $(wildcard $(RUN_TEST_PROGRAM)) $(PYTHON) -u $(srcdir)/trace-test/trace_test.py \
--valgrind --no-slow --no-progress --tinderbox $(DIST)/bin/js$(BIN_SUFFIX) --valgrind --no-slow --no-progress --tinderbox $(DIST)/bin/js$(BIN_SUFFIX)
endif endif
endif endif

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

@ -1,2 +0,0 @@
// |jit-test| error: SyntaxError;
let(y = let(d = []) u, x

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

@ -1,2 +0,0 @@
// |jit-test| error: SyntaxError;
let({}=[c for(x in[])]){let

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

@ -1,3 +0,0 @@
// |jit-test| error: TypeError;
var bts = true.toString;
bts();

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

@ -1,3 +0,0 @@
// |jit-test| error: ReferenceError
x ? o : [] && x

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

@ -1,6 +0,0 @@
// |jit-test| error: invalid sharp variable use #1#
[] = #1#
with(7) {
var c
}

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

@ -1,3 +0,0 @@
// |jit-test| error: ReferenceError
[].x >>= a | 0

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

@ -1,2 +0,0 @@
// |jit-test| error: ReferenceError;
7%s;

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

@ -36,7 +36,7 @@
* *
* ***** END LICENSE BLOCK ***** */ * ***** END LICENSE BLOCK ***** */
/* NB: Keep this list synced with jitstatHandler in jit-test.js. */ /* NB: Keep this list synced with jitstatHandler in trace-test.js. */
/** /**
* Proper use of this file: Consumers must define JITSTAT; they can optionally * Proper use of this file: Consumers must define JITSTAT; they can optionally
* also define MONITOR_JITSTAT or RECORDER_JITSTAT or both to do separate * also define MONITOR_JITSTAT or RECORDER_JITSTAT or both to do separate

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

@ -248,7 +248,7 @@ BytecodeAnalyzer::analyze(uint32 index)
* leaveblock 1 * leaveblock 1
* retrval * retrval
* leaveblock 1 * leaveblock 1
* (see testNullCallee in jit-tests) * (see testNullCallee in trace-tests)
*/ */
JS_ASSERT(js_CodeSpec[op].length == 1); JS_ASSERT(js_CodeSpec[op].length == 1);
uint32 offs = (pc + 1) - script->code; uint32 offs = (pc + 1) - script->code;

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

@ -387,7 +387,7 @@ if __name__ == '__main__':
lib_dir = os.path.join(script_dir, 'lib') lib_dir = os.path.join(script_dir, 'lib')
# The [TESTS] optional arguments are paths of test files relative # The [TESTS] optional arguments are paths of test files relative
# to the jit-test/tests directory. # to the trace-test/tests directory.
from optparse import OptionParser from optparse import OptionParser
op = OptionParser(usage='%prog [options] JS_SHELL test') op = OptionParser(usage='%prog [options] JS_SHELL test')

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

@ -1,5 +1,5 @@
url-prefix ../../jsreftest.html?test=js1_8_1/trace/ url-prefix ../../jsreftest.html?test=js1_8_1/trace/
script math-jit-tests.js script math-trace-tests.js
skip script regress-451673.js # bogus perf test (bug 540512) skip script regress-451673.js # bogus perf test (bug 540512)
skip script regress-451974-01.js # bogus perf test (bug 540512) skip script regress-451974-01.js # bogus perf test (bug 540512)
skip script regress-451974-02.js # bogus perf test (bug 540512) skip script regress-451974-02.js # bogus perf test (bug 540512)

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

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

@ -173,7 +173,7 @@ function assertError(src, errorType) {
// general tests // general tests
// NB: These are useful but for now jit-test doesn't do I/O reliably. // NB: These are useful but for now trace-test doesn't do I/O reliably.
//program(_).assert(Reflect.parse(snarf('data/flapjax.txt'))); //program(_).assert(Reflect.parse(snarf('data/flapjax.txt')));
//program(_).assert(Reflect.parse(snarf('data/jquery-1.4.2.txt'))); //program(_).assert(Reflect.parse(snarf('data/jquery-1.4.2.txt')));

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

@ -1346,9 +1346,9 @@ js1_8_1/regress/regress-530879.js
js1_8_1/strict/12.2.1.js js1_8_1/strict/12.2.1.js
js1_8_1/strict/generator-eval-arguments.js js1_8_1/strict/generator-eval-arguments.js
js1_8_1/strict/let-block-eval-arguments.js js1_8_1/strict/let-block-eval-arguments.js
js1_8_1/trace/math-jit-tests.js js1_8_1/trace/math-trace-tests.js
js1_8_1/trace/testDeepBailFromNonNative.js js1_8_1/trace/testDeepBailFromNonNative.js
js1_8_1/trace/jit-test.js js1_8_1/trace/trace-test.js
js1_8_5/extensions/censor-strict-caller.js js1_8_5/extensions/censor-strict-caller.js
js1_8_5/extensions/destructure-accessor.js js1_8_5/extensions/destructure-accessor.js
js1_8_5/extensions/reflect-parse.js js1_8_5/extensions/reflect-parse.js

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

@ -13,7 +13,7 @@ Python 2.5. This is already a standard requirement for building our tree.
Basic usage: Basic usage:
python jit_test.py <path-to-js-shell> python trace_test.py <path-to-js-shell>
The progress bar shows [#tests passed, #tests failed, #tests run] at the left. The progress bar shows [#tests passed, #tests failed, #tests run] at the left.
If all tests pass, the output is 'PASSED ALL'. The test suite can be interrupted If all tests pass, the output is 'PASSED ALL'. The test suite can be interrupted
@ -21,11 +21,11 @@ at any time with Ctrl+C and partial results will be printed.
To run only the basic tests, not including the slow tests: To run only the basic tests, not including the slow tests:
python jit_test.py <path-to-js-shell> basic python trace_test.py <path-to-js-shell> basic
For more options: For more options:
python jit_test.py -h python trace_test.py -h
* CREATING NEW TESTS * CREATING NEW TESTS
@ -44,12 +44,12 @@ test case:
The first line of a test case can contain a special comment controlling how the The first line of a test case can contain a special comment controlling how the
test is run. For example: test is run. For example:
// |jit-test| allow-oom; // |trace-test| allow-oom;
The general format in EBNF is: The general format in EBNF is:
metaline ::= cookie { item ";" } metaline ::= cookie { item ";" }
cookie ::= "|jit-test|" cookie ::= "|trace-test|"
item ::= flag | attribute item ::= flag | attribute
flag ::= "slow" | "allow-oom" flag ::= "slow" | "allow-oom"

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

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

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

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше