v8/test
Benedikt Meurer 5b46f5736f [cleanup] Remove the Map::IsDictionaryMap() method.
There's a `Map::IsDictionaryMap()` method in addition to the
`Map::is_dictionary_map()`, which apparently do very different things:
The former checks whether the instance type of the Map is in a certain
range (FIRST_DICTIONARY_TYPE to LAST_DICTIONARY_TYPE), while the latter
checks the `is_dictionary_map` bit (which means that the backing store
for the properties of a JSObject is in slow mode). To make matters worse
there's also `CodeStubAssembler::IsDictionaryMap()`, which does the bit
check similar to `Map::is_dictionary_map()`. And to make matters even
worse the FIRST_DICTIONARY_TYPE to LAST_DICTIONARY_TYPE range also
contains instance types for classes that aren't subclass of `Dictionary`
(despite a comment stating the opposite).

So in conclusion it's best to remove the confusing
`Map::IsDictionaryMap()` method, which is anyways wrong, and just test
explicitly for `NameDictionary`, `NumberDictionary` or
`GlobalDictionary` in the appropriate places.

Bug: v8:9183
Change-Id: If35f73261e3cc96938ebf499bf32be3ec725288b
Cq-Include-Trybots: luci.chromium.try:linux-rel,win7-rel
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1627330
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#61770}
2019-05-23 09:02:26 +00:00
..
benchmarks [test] Skip flaky test on predictable mode 2019-05-07 13:57:18 +00:00
cctest [cleanup] Remove the Map::IsDictionaryMap() method. 2019-05-23 09:02:26 +00:00
common Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
debugger Revert "[test] Skip debugger tests failing with JSON parsing" 2019-05-20 13:58:05 +00:00
fuzzer Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
inspector [wasm] Use new names for instructions 2019-05-21 18:33:21 +00:00
intl [Intl] Intl.NumberFormat Unified API Proposal 2019-05-21 17:23:21 +00:00
js-perf-test [benchmarks] Move Array slice benchmarks to js-perf-test 2019-05-20 09:05:52 +00:00
memory [perf] Refactor the Memory benchmark to use d8 2019-05-06 15:10:57 +00:00
message Reland "[stack-trace] Include API functions in Error.stack stack trace" 2019-05-21 10:40:30 +00:00
mjsunit [turbofan] fix deopt-loop for specuative Boolean to Number conversion 2019-05-22 10:38:39 +00:00
mkgrokdump Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
mozilla Reland "[test] Remove longer timeout on bots" 2019-05-02 13:04:29 +00:00
preparser [test] Don't test jitless without embedded-builtins 2019-02-26 14:33:01 +00:00
test262 Roll Test262 to update RegExp/Unicode tests 2019-05-22 21:57:03 +00:00
torque Add StaticAssert in Torque 2019-05-21 15:39:57 +00:00
unittests Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
wasm-js [testrunner] handle timeout param in file 2019-02-27 17:49:17 +00:00
wasm-spec-tests [wasm] Update spec tests 2019-05-22 14:58:45 +00:00
webkit [test] Stress wasm code gc in "stress_background_compile" 2019-05-02 09:56:05 +00:00
BUILD.gn [tools] Implement confidence-based number of runs 2019-05-09 09:42:28 +00:00
OWNERS Clean up infra owners 2019-05-15 11:18:43 +00:00