v8/test
peterwmwong c5c50e1860 [builtins] Port WeakMap/WeakSet constructor to CSA
- Remove weak-collection.js
- Adds TFJ builtins for WeakSet and WeakMap constructors
- Unified helpers and constructor behavior into a BaseCollectionsAssembler
- Fast paths for...
  - unmodified constructor function
  - argument is a fast JS array
  - entries are fast JS arrays, for Map/WeakMap
  - no arguments passed

Quick benchmarks shows significant improvements (1.12x - 5.7x!) for ALL collection constructors (weak and non-weak):
https://github.com/peterwmwong/v8-perf/blob/master/weakcollection-constructor/README.md

More could be done for performance.  Currently we always call out to JS to add entries, if we knew the prototype was unmodified, we could call the builtins directly.

Bug: v8:5049, v8:6604
Change-Id: Id7912c1eed5bcf512df7fd6238f04166a8a5937e
Reviewed-on: https://chromium-review.googlesource.com/760385
Reviewed-by: Jakob Gruber <jgruber@chromium.org>
Commit-Queue: Jakob Gruber <jgruber@chromium.org>
Cr-Commit-Position: refs/heads/master@{#49343}
2017-11-14 08:43:38 +00:00
..
benchmarks [test] Let flags from test case have precedence 2017-10-27 13:22:39 +00:00
cctest [test] Fix cctest/test-regexp/ParserWithoutLookbehind 2017-11-14 08:11:17 +00:00
common [wasm] Support block parameters 2017-10-24 11:44:26 +00:00
debugger [test] Let flags from test case have precedence 2017-10-27 13:22:39 +00:00
fuzzer [wasm fuzzer] fix i64.store generation error 2017-11-09 13:20:25 +00:00
inspector [map] Fix map constructor to correctly throw. 2017-11-08 19:54:20 +00:00
intl Revert "Make intl/overrides/caching.js more 'robust'" 2017-11-13 19:13:13 +00:00
js-perf-test [parser] Use n-ary addition for template strings 2017-10-31 16:02:53 +00:00
memory [snapshot] add tracking for builtin snapshot size. 2017-08-31 07:29:31 +00:00
message [test/message] Allow numbers to have more than one leading digit. 2017-11-03 15:25:25 +00:00
mjsunit [builtins] Port WeakMap/WeakSet constructor to CSA 2017-11-14 08:43:38 +00:00
mkgrokdump [test] Let flags from test case have precedence 2017-10-27 13:22:39 +00:00
mozilla [d8] Report errors in setTimeout 2017-11-03 12:21:53 +00:00
preparser [test] Let flags from test case have precedence 2017-10-27 13:22:39 +00:00
promises-aplus [test] Let flags from test case have precedence 2017-10-27 13:22:39 +00:00
test262 [test] Re-enable all Unicode property tests 2017-11-10 09:09:20 +00:00
unittests [TurboFan] Diagnostic code to track down bug in representation selection 2017-11-13 15:00:20 +00:00
wasm-spec-tests [test] Let flags from test case have precedence 2017-10-27 13:22:39 +00:00
webkit Temporary GC fuzzer. 2017-11-10 14:23:38 +00:00
bot_default.gyp
bot_default.isolate
BUILD.gn
default.gyp
default.isolate
optimize_for_size.gyp
optimize_for_size.isolate
perf.gyp
perf.isolate