v8/test
Benedikt Meurer f1ddb2faa4 [inspector] Account for dynamic nature of the fn.name property.
With https://crrev.com/c/3272577 we introduced a `StackFrame` cache for
the inspector, which is keyed on the script ID, line and column number,
so the syntactic properties of the function. However, the name that we
report for functions is dynamic and can change (per closure) by
explicitly reconfiguring the "name" property via

```js
var f = function() { /* ... */ }
Object.defineProperty(f, "name", {value: "super duper function"});
```

for example, so we need to take that into account as well, and only use
the cached `StackFrame` instance if the dynamic names still match up.
Otherwise we just overwrite the cached entry with a new instance (the
assumption here is that "name" isn't reconfigured often).

Fixed: chromium:1274529
Bug: chromium:1268436
Change-Id: I519017c762aed5b4f93b9dc4553fa81d5979f1a1
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3306376
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Cr-Commit-Position: refs/heads/main@{#78127}
2021-11-29 13:28:54 +00:00
..
benchmarks cppgc: Add binary trees benchmark 2021-11-18 16:42:24 +00:00
bigint
cctest [debugger] Explicitly encode 'other' as a reason when stepping 2021-11-29 07:19:56 +00:00
common [wasm] Internal representation for function references 2021-11-24 13:07:28 +00:00
debugger [loong64][mips][test] Some tests do not need to be skipped 2021-11-25 07:06:58 +00:00
debugging
fuzzer [fuzzer] Use recursion scope only for nullable references in GenerateRef 2021-11-17 11:47:30 +00:00
fuzzilli
inspector [inspector] Account for dynamic nature of the fn.name property. 2021-11-29 13:28:54 +00:00
intl [intl] Fix two issues in the localeCompare fast path 2021-11-24 08:28:39 +00:00
js-perf-test [class] add initialize-instance.js to JSTests3 resources 2021-11-25 15:49:19 +00:00
memory
message [runtime] Ensure JSMessageObject has source positions 2021-11-12 17:43:31 +00:00
mjsunit [wasm][test] Improve speculative inlining tests 2021-11-29 12:36:57 +00:00
mkgrokdump [heap] Handle paged spaces in Heap::MakeHeapIterable 2021-11-15 08:47:18 +00:00
mozilla
test262 Reland [rab/gsab] Add RAB / GSAB support to DataViews 2021-11-23 16:48:54 +00:00
torque [torque] Make return types required 2021-09-30 15:54:17 +00:00
unittests Reland "cppgc: Fix data race ObjectSizeTrait" 2021-11-29 13:14:25 +00:00
wasm-api-tests [wasm][test] Cleanup macros 2021-09-24 16:47:54 +00:00
wasm-js Revert "Reland "[wasm] Update spec tests"" 2021-11-26 11:49:33 +00:00
wasm-spec-tests Revert "Reland "[wasm] Update spec tests"" 2021-11-26 11:49:33 +00:00
webkit [tests] Increase stack-size limit to make tests pass in debug mode 2021-10-26 07:05:19 +00:00
BUILD.gn
OWNERS