[BinAST] JSAPI tests for Context 0.1
Categories
(Core :: JavaScript Engine, task, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox71 | --- | fixed |
People
(Reporter: Yoric, Assigned: Yoric)
References
Details
Attachments
(40 files, 2 obsolete files)
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review |
Updated•6 years ago
|
| Assignee | ||
Comment 1•6 years ago
|
||
| Assignee | ||
Comment 2•6 years ago
|
||
| Assignee | ||
Comment 3•6 years ago
|
||
We have two fields cx_, one defined in the parent class and one in the child class. The latter masks the former but is uninitialized.
Getting rid of the child version.
Depends on D41176
| Assignee | ||
Comment 4•6 years ago
|
||
Depends on D42503
| Assignee | ||
Comment 5•6 years ago
|
||
The walk order in the grammar is a bit unusual. Some items are treated immediately, while others are enqueued for later use (maybe this is a form of manual TCO?) This patch fixes the order to make
it match with the Python implementation.
Also, we add readUnpackedLong as some numbers are not stored as varnums.
Depends on D42845
| Assignee | ||
Comment 6•6 years ago
|
||
Depends on D42846
| Assignee | ||
Comment 7•6 years ago
|
||
Depends on D42847
| Assignee | ||
Comment 8•6 years ago
|
||
Depends on D42848
| Assignee | ||
Comment 9•6 years ago
|
||
Depends on D42849
| Assignee | ||
Comment 10•6 years ago
|
||
Depends on D42850
| Assignee | ||
Comment 11•6 years ago
|
||
Depends on D42851
| Assignee | ||
Comment 12•6 years ago
|
||
Depends on D42854
| Assignee | ||
Comment 13•6 years ago
|
||
Depends on D43057
| Assignee | ||
Comment 14•6 years ago
|
||
Depends on D43059
| Assignee | ||
Comment 15•6 years ago
|
||
Depends on D43062
| Assignee | ||
Comment 16•6 years ago
|
||
Depends on D43063
| Assignee | ||
Comment 17•6 years ago
|
||
Depends on D43064
| Assignee | ||
Comment 18•6 years ago
|
||
There may be a bitLength of 0 in a table in two cases:
- a table with a single value;
- an indexed table with many values that have a probability of 0.
We refactor BinASTReaderContext::readMultipleValuesTable to handle both cases.
Depends on D43065
| Assignee | ||
Comment 19•6 years ago
|
||
Depends on D43991
| Assignee | ||
Comment 20•6 years ago
|
||
Depends on D43993
| Assignee | ||
Comment 21•6 years ago
|
||
Depends on D43994
| Assignee | ||
Comment 22•6 years ago
|
||
Depends on D43995
| Assignee | ||
Comment 23•6 years ago
|
||
Depends on D43996
| Assignee | ||
Comment 24•6 years ago
|
||
Depends on D43997
| Assignee | ||
Comment 25•6 years ago
|
||
Depends on D43998
| Assignee | ||
Comment 26•6 years ago
|
||
Depends on D43999
| Assignee | ||
Comment 27•6 years ago
|
||
Depends on D44000
| Assignee | ||
Comment 28•6 years ago
|
||
Depends on D44001
| Assignee | ||
Comment 29•6 years ago
|
||
Depends on D44002
| Assignee | ||
Comment 30•6 years ago
|
||
Depends on D44003
| Assignee | ||
Comment 31•6 years ago
|
||
Depends on D44004
| Assignee | ||
Comment 32•6 years ago
|
||
Depends on D44005
| Assignee | ||
Comment 33•6 years ago
|
||
Depends on D44007
| Assignee | ||
Comment 34•6 years ago
|
||
Depends on D44008
| Assignee | ||
Comment 35•6 years ago
|
||
Depends on D44010
| Assignee | ||
Comment 36•6 years ago
|
||
Depends on D44011
Comment 37•6 years ago
|
||
Comment 38•6 years ago
|
||
Backed out for bustages on BinASTTokenReaderContext.cpp
backout: https://hg.mozilla.org/integration/autoland/rev/397bbb20d928970eb59c8d18cd2aa739b81cffee
failure log example: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=264523401&repo=autoland&lineNumber=6443
[task 2019-09-02T09:20:02.369Z] 09:20:02 INFO - make[4]: Leaving directory '/builds/worker/workspace/build/src/obj-firefox/config/external/icu/i18n'
[task 2019-09-02T09:20:02.447Z] 09:20:02 INFO - make[4]: Entering directory '/builds/worker/workspace/build/src/obj-firefox/js/src/frontend'
[task 2019-09-02T09:20:02.447Z] 09:20:02 INFO - /builds/worker/fetches/sccache/sccache /builds/worker/fetches/clang/bin/clang++ -o BinASTTokenReaderContext.o -c -I/builds/worker/workspace/build/src/obj-firefox/dist/system_wrappers -include /builds/worker/workspace/build/src/config/gcc_hidden.h -DNDEBUG=1 -DTRIMMED=1 -DWASM_SUPPORTS_HUGE_MEMORY -DJS_CACHEIR_SPEW -DJS_STRUCTURED_SPEW -DJS_HAS_CTYPES -DFFI_BUILDING -DEXPORT_JS_API -DMOZ_HAS_MOZGLUE -I/builds/worker/workspace/build/src/js/src/frontend -I/builds/worker/workspace/build/src/obj-firefox/js/src/frontend -I/builds/worker/workspace/build/src/obj-firefox/js/src -I/builds/worker/workspace/build/src/js/src -I/builds/worker/workspace/build/src/obj-firefox/dist/include -I/builds/worker/workspace/build/src/obj-firefox/dist/include/nspr -fPIC -DMOZILLA_CLIENT -include /builds/worker/workspace/build/src/obj-firefox/js/src/js-confdefs.h -Qunused-arguments -U_FORTIFY_SOURCE -Qunused-arguments -Wall -Wbitfield-enum-conversion -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wshadow-field-in-constructor-modified -Wsign-compare -Wtype-limits -Wunreachable-code -Wunreachable-code-return -Wwrite-strings -Wno-invalid-offsetof -Wclass-varargs -Wfloat-overflow-conversion -Wfloat-zero-conversion -Wloop-analysis -Wc++1z-compat -Wc++2a-compat -Wcomma -Wimplicit-fallthrough -Werror=non-literal-null-conversion -Wstring-conversion -Wtautological-overlap-compare -Wtautological-unsigned-enum-zero-compare -Wtautological-unsigned-zero-compare -Wno-error=tautological-type-limit-compare -Wno-inline-new-delete -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=backend-plugin -Wno-error=return-std-move -Wno-error=atomic-alignment -Wformat -Wformat-security -Wno-gnu-zero-variadic-macro-arguments -Wno-noexcept-type -Wno-unknown-warning-option -Wno-return-type-c-linkage -D_GLIBCXX_USE_CXX11_ABI=0 -fno-sized-deallocation -fno-aligned-new -fsanitize=bool,bounds,vla-bound -fno-sanitize-recover=bool,bounds,vla-bound -fsanitize-blacklist=/builds/worker/workspace/build/src/obj-firefox/js/src/ubsan_blacklist.txt -fsanitize=address -fcrash-diagnostics-dir=/builds/worker/artifacts -U_FORTIFY_SOURCE -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -g -Xclang -load -Xclang /builds/worker/workspace/build/src/obj-firefox/build/clang-plugin/libclang-plugin.so -Xclang -add-plugin -Xclang moz-check -O2 -gline-tables-only -fno-omit-frame-pointer -funwind-tables -Werror -fno-strict-aliasing -Werror=format -Wno-shadow -MD -MP -MF .deps/BinASTTokenReaderContext.o.pp /builds/worker/workspace/build/src/js/src/frontend/BinASTTokenReaderContext.cpp
[task 2019-09-02T09:20:02.447Z] 09:20:02 ERROR - /builds/worker/workspace/build/src/js/src/frontend/BinASTTokenReaderContext.cpp:1500:40: error: no member named 'ContextPrinter' in 'js::frontend::BinASTTokenReaderBase'
[task 2019-09-02T09:20:02.447Z] 09:20:02 INFO - js::frontend::BinASTTokenReaderBase::ContextPrinter::print("bool", context);
[task 2019-09-02T09:20:02.447Z] 09:20:02 INFO - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
[task 2019-09-02T09:20:02.447Z] 09:20:02 ERROR - /builds/worker/workspace/build/src/js/src/frontend/BinASTTokenReaderContext.cpp:1506:40: error: no member named 'ContextPrinter' in 'js::frontend::BinASTTokenReaderBase'
[task 2019-09-02T09:20:02.448Z] 09:20:02 INFO - js::frontend::BinASTTokenReaderBase::ContextPrinter::print("double", context);
[task 2019-09-02T09:20:02.448Z] 09:20:02 INFO - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
[task 2019-09-02T09:20:02.448Z] 09:20:02 ERROR - /builds/worker/workspace/build/src/js/src/frontend/BinASTTokenReaderContext.cpp:1512:40: error: no member named 'ContextPrinter' in 'js::frontend::BinASTTokenReaderBase'
[task 2019-09-02T09:20:02.448Z] 09:20:02 INFO - js::frontend::BinASTTokenReaderBase::ContextPrinter::print("atom?", context);
[task 2019-09-02T09:20:02.448Z] 09:20:02 INFO - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
[task 2019-09-02T09:20:02.448Z] 09:20:02 ERROR - /builds/worker/workspace/build/src/js/src/frontend/BinASTTokenReaderContext.cpp:1518:40: error: no member named 'ContextPrinter' in 'js::frontend::BinASTTokenReaderBase'
[task 2019-09-02T09:20:02.448Z] 09:20:02 INFO - js::frontend::BinASTTokenReaderBase::ContextPrinter::print("atom", context);
[task 2019-09-02T09:20:02.448Z] 09:20:02 INFO - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
[task 2019-09-02T09:20:02.448Z] 09:20:02 ERROR - /builds/worker/workspace/build/src/js/src/frontend/BinASTTokenReaderContext.cpp:1543:40: error: no member named 'ContextPrinter' in 'js::frontend::BinASTTokenReaderBase'
[task 2019-09-02T09:20:02.448Z] 09:20:02 INFO - js::frontend::BinASTTokenReaderBase::ContextPrinter::print("variant",
[task 2019-09-02T09:20:02.448Z] 09:20:02 INFO - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
failure log example: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=264523470&repo=autoland&lineNumber=1141
[task 2019-09-02T09:14:39.253Z] In file included from /builds/worker/workspace/build/src/js/src/frontend/BinASTTokenReaderContext.h:10:0,
[task 2019-09-02T09:14:39.253Z] from /builds/worker/workspace/build/src/js/src/frontend/BinASTTokenReaderContext.cpp:7:
[task 2019-09-02T09:14:39.253Z] /builds/worker/workspace/build/src/js/src/frontend/BinASTTokenReaderContext.cpp: In member function 'bool js::frontend::HuffmanPreludeReader::Boolean::lessThan(uint32_t, uint32_t)':
[task 2019-09-02T09:14:39.253Z] /builds/worker/workspace/build/src/js/src/frontend/BinASTTokenReaderContext.cpp:258:20: error: comparison of unsigned expression >= 0 is always true [-Werror=type-limits]
[task 2019-09-02T09:14:39.253Z] MOZ_ASSERT(0 <= aIndex && aIndex <= 1);
[task 2019-09-02T09:14:39.253Z] ~~^~~~
[task 2019-09-02T09:14:39.253Z] /builds/worker/workspace/build/src/obj-spider/dist/include/mozilla/Assertions.h:426:58: note: in definition of macro 'MOZ_VALIDATE_ASSERT_CONDITION_TYPE'
[task 2019-09-02T09:14:39.253Z] mozilla::detail::AssertionConditionType<decltype(x)>::isValid,
[task 2019-09-02T09:14:39.253Z] ^
[task 2019-09-02T09:14:39.253Z] /builds/worker/workspace/build/src/obj-spider/dist/include/mozilla/Assertions.h:463:31: note: in expansion of macro 'MOZ_ASSERT_HELPER1'
[task 2019-09-02T09:14:39.254Z] #define MOZ_ASSERT_GLUE(a, b) a b
[task 2019-09-02T09:14:39.254Z] ^
[task 2019-09-02T09:14:39.254Z] /builds/worker/workspace/build/src/obj-spider/dist/include/mozilla/Assertions.h:471:5: note: in expansion of macro 'MOZ_ASSERT_GLUE'
[task 2019-09-02T09:14:39.254Z] MOZ_ASSERT_GLUE(
[task 2019-09-02T09:14:39.254Z] ^~~~~~~~~~~~~~~
Updated•6 years ago
|
Comment 40•6 years ago
|
||
Comment 41•6 years ago
|
||
Backed out for spidermonkey bustages
backout: https://hg.mozilla.org/integration/autoland/rev/0ff0d3f2026cfe22bf6f9c90965c9381d123fbe5
failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=264567374&repo=autoland&lineNumber=85609 mozcrash.py | application crashed [@ js::frontend::HuffmanDictionary::HuffmanDictionary]
failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=264567319&repo=autoland&lineNumber=44509
| Assignee | ||
Comment 42•6 years ago
|
||
| Assignee | ||
Comment 43•6 years ago
|
||
| Assignee | ||
Comment 44•6 years ago
|
||
Comment 45•6 years ago
|
||
Comment 46•6 years ago
|
||
Depends on D44446
Comment 47•6 years ago
|
||
Depends on D44447
Comment 48•6 years ago
|
||
Comment 49•6 years ago
|
||
Backed out for SM build bustages
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=264714679&repo=autoland&lineNumber=44372
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=264714739&repo=autoland&lineNumber=85689
Backout: https://hg.mozilla.org/integration/autoland/rev/bff5b6ee3f835ae83a1f43cd2ac924195e31a351
Comment 50•6 years ago
|
||
Comment 51•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/5c4201771f69
https://hg.mozilla.org/mozilla-central/rev/6861bcd9334e
https://hg.mozilla.org/mozilla-central/rev/a8915d370390
https://hg.mozilla.org/mozilla-central/rev/1837e5c1b1b2
https://hg.mozilla.org/mozilla-central/rev/a66e5328d99f
https://hg.mozilla.org/mozilla-central/rev/bdaa46d9955b
https://hg.mozilla.org/mozilla-central/rev/1da2f144426c
https://hg.mozilla.org/mozilla-central/rev/4d8366e093fa
https://hg.mozilla.org/mozilla-central/rev/b77d7ca251ff
https://hg.mozilla.org/mozilla-central/rev/3c9638c5654d
https://hg.mozilla.org/mozilla-central/rev/68c88329e9e8
https://hg.mozilla.org/mozilla-central/rev/bb9aae5006a9
https://hg.mozilla.org/mozilla-central/rev/23e0eff414e5
https://hg.mozilla.org/mozilla-central/rev/89fb53191ead
https://hg.mozilla.org/mozilla-central/rev/1059911f52e0
https://hg.mozilla.org/mozilla-central/rev/5e990a84bf6c
https://hg.mozilla.org/mozilla-central/rev/9e39e5cc0317
https://hg.mozilla.org/mozilla-central/rev/147b05de5721
https://hg.mozilla.org/mozilla-central/rev/7dd8428314db
https://hg.mozilla.org/mozilla-central/rev/7ed60dd2b1da
https://hg.mozilla.org/mozilla-central/rev/4462b5cdadb2
https://hg.mozilla.org/mozilla-central/rev/9bfa819e3aca
https://hg.mozilla.org/mozilla-central/rev/0104f04b7a0e
https://hg.mozilla.org/mozilla-central/rev/cdd32ee1362d
https://hg.mozilla.org/mozilla-central/rev/7905ca0d74d1
https://hg.mozilla.org/mozilla-central/rev/3abf41b283f1
https://hg.mozilla.org/mozilla-central/rev/f867c4876903
https://hg.mozilla.org/mozilla-central/rev/46f8a0637ae0
https://hg.mozilla.org/mozilla-central/rev/3cb7aa3a7300
https://hg.mozilla.org/mozilla-central/rev/188cf41e5f81
https://hg.mozilla.org/mozilla-central/rev/91c3a4db85ee
https://hg.mozilla.org/mozilla-central/rev/7e9669d8202d
https://hg.mozilla.org/mozilla-central/rev/3c33e0331c98
https://hg.mozilla.org/mozilla-central/rev/27581d303b32
https://hg.mozilla.org/mozilla-central/rev/4acf3523ee6a
https://hg.mozilla.org/mozilla-central/rev/1440b194e922
https://hg.mozilla.org/mozilla-central/rev/0c55fd936d60
https://hg.mozilla.org/mozilla-central/rev/3620a800cc66
https://hg.mozilla.org/mozilla-central/rev/8ee77eca36ad
https://hg.mozilla.org/mozilla-central/rev/f97dcd69b564
Updated•6 years ago
|
| Assignee | ||
Updated•6 years ago
|
Updated•5 years ago
|
Description
•