v8/test/unittests/api
Seth Brenith 6eeb994d35 Fix a failing DCHECK
The destructor for BackgroundMergeTask checks that the task doesn't have
pending foreground work. However, there are valid cases where the task
can be abandoned without completing its foreground work, either because
another copy of the same script showed up in the Isolate compilation
cache or because the serialized code data had an incorrect source hash
and was rejected. This change removes the problematic DCHECK and adds a
new one in code-serializer.cc at a point where we can actually be sure
there isn't pending foreground work.

Bug: chromium:1400781
Change-Id: Idb3538229d25f297adf5b2696c4b4b50d85557b1
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4105926
Commit-Queue: Seth Brenith <seth.brenith@microsoft.com>
Reviewed-by: Leszek Swirski <leszeks@chromium.org>
Cr-Commit-Position: refs/heads/main@{#84869}
2022-12-15 14:06:59 +00:00
..
access-check-unittest.cc [test] Replace v8_str with NewString in unittests/ 2022-08-09 17:22:58 +00:00
accessor-unittest.cc [unittests] Use v8_flags for accessing flag values 2022-09-15 17:51:59 +00:00
api-icu-unittest.cc [intl] Migrate to ICU 72 2022-11-21 07:04:20 +00:00
api-wasm-unittest.cc [cleanup] Remove Wasm exception-handling runtime flag 2022-11-04 22:50:50 +00:00
context-unittest.cc [api] Implement v8::Context::HasTemplateLiteralObject 2022-09-22 09:47:56 +00:00
deserialize-unittest.cc Fix a failing DCHECK 2022-12-15 14:06:59 +00:00
exception-unittest.cc [unittests] Use v8_flags for accessing flag values 2022-09-15 17:51:59 +00:00
gc-callbacks-unittest.cc [unittests] Use v8_flags for accessing flag values 2022-09-15 17:51:59 +00:00
interceptor-unittest.cc [runtime] Fix handling of interceptors 2022-03-24 17:50:12 +00:00
isolate-unittest.cc [execution] Report first old space page as CrashKey 2022-11-02 08:26:30 +00:00
remote-object-unittest.cc [test] Remove some unused includes (2) 2022-07-19 08:55:55 +00:00
resource-constraints-unittest.cc Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
v8-maybe-unittest.cc api: Allow v8::Maybe<MovableType>. 2022-04-30 21:47:24 +00:00
v8-object-unittest.cc [unittests] Use v8_flags for accessing flag values 2022-09-15 17:51:59 +00:00
v8-script-unittest.cc [test] Replace v8_str with NewString in unittests/ 2022-08-09 17:22:58 +00:00