v8/test/cctest/heap
jgruber 7223024658 [factory] Simplify JSFunction creation
There's three common situations in which we need to create JSFunction
objects.  1) from the compiler, 2) from tests, and 3) everything else
(mostly during bootstrapping).

This is an attempt to simplify case 3), which previously relied on
several Factory::NewFunction overloads where it was not clear how the
semantics of each overload differed.

This CL removes all but one overload, and packs arguments into a new
NewFunctionArgs helper class.

It also removes the hacks around
SFI::set_lazy_deserialization_builtin_id by explicitly passing
builtin_id into Factory::NewSharedFunctionInfo.

Drive-by-fix: Properly set is_constructor hint in
SimpleCreateSharedFunctionInfo.

Bug: v8:6624
Cq-Include-Trybots: master.tryserver.chromium.linux:linux_chromium_rel_ng
Change-Id: Ica94d95e72e443055db5e7ff9e8cdf4115201ef1
Reviewed-on: https://chromium-review.googlesource.com/757094
Commit-Queue: Jakob Gruber <jgruber@chromium.org>
Reviewed-by: Michael Starzinger <mstarzinger@chromium.org>
Reviewed-by: Andreas Haas <ahaas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#49224}
2017-11-08 13:52:13 +00:00
..
heap-tester.h [heap] Heap remove broken perferred page handling by the Scavenger 2017-11-02 20:51:33 +00:00
heap-utils.cc Annotate all sites that still mutate {Code} objects. 2017-11-06 16:35:46 +00:00
heap-utils.h [heap] Exclude the owner of the linear allocation area from evacuation. 2016-11-03 12:13:23 +00:00
test-alloc.cc [factory] Simplify JSFunction creation 2017-11-08 13:52:13 +00:00
test-array-buffer-tracker.cc Dispose isolate at end of UNINITIALIZED_TEST 2017-10-04 16:21:09 +00:00
test-compaction.cc Fix CompactionPartiallyAbortedPageWithStoreBufferEntries 2017-10-18 09:27:11 +00:00
test-concurrent-marking.cc [heap] Introduce on-hold concurrent marking work list 2017-10-10 11:33:39 +00:00
test-heap.cc [factory] Simplify JSFunction creation 2017-11-08 13:52:13 +00:00
test-incremental-marking.cc [fullcodegen] Delete FullCodegen. 2017-08-11 11:50:05 +00:00
test-invalidated-slots.cc [test] Add stress_incremental_marking testing variant 2017-10-05 13:10:42 +00:00
test-lab.cc [iwyu] Remove stale TODOs about objects-inl.h inclusion. 2017-10-09 11:14:59 +00:00
test-mark-compact.cc [factory] Simplify JSFunction creation 2017-11-08 13:52:13 +00:00
test-page-promotion.cc [heap] Pause Sweeper tasks on Scavenge 2017-10-16 15:27:09 +00:00
test-spaces.cc [jumbo] Fix collision between test-alloc.cc and test-spaces.cc. 2017-10-26 14:19:26 +00:00