v8/test/unittests/interpreter
Shu-yu Guo b41df346db [ShadowRealm] Make CallSite#getFunction/getThis throw
ShadowRealms have a callable boundary: there cannot be any edges between
objects in the ShadowRealm and those from other realms. V8's
prepareCallStack API breaks this invariant via getFunction() and
getThis(). This CL makes those functions throw when called inside
ShadowRealms.

See also
https://docs.google.com/document/d/1aXEy4YCC9CduxLs7MGw-UOm0P4OuG7W-cScBnLG3ALI/edit?usp=sharing

Bug: v8:11989
Change-Id: I5a2b8fa735c0f10583c8cede4062645986b2d914
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4108810
Reviewed-by: Camillo Bruni <cbruni@chromium.org>
Commit-Queue: Shu-yu Guo <syg@chromium.org>
Reviewed-by: Adam Klein <adamk@chromium.org>
Cr-Commit-Position: refs/heads/main@{#84944}
2022-12-19 20:13:27 +00:00
..
bytecode_expectations [ShadowRealm] Make CallSite#getFunction/getThis throw 2022-12-19 20:13:27 +00:00
bytecode-array-builder-unittest.cc [inspector] Remove Type Profiler 2022-10-10 11:50:16 +00:00
bytecode-array-iterator-unittest.cc [ic] name Set/Define/Store property operations more consistently 2022-03-08 18:48:16 +00:00
bytecode-array-random-iterator-unittest.cc [ic] name Set/Define/Store property operations more consistently 2022-03-08 18:48:16 +00:00
bytecode-array-writer-unittest.cc [interpreter] Use v8_flags for accessing flag values 2022-09-15 12:06:07 +00:00
bytecode-decoder-unittest.cc [ignition] Remove unused count from param index getters 2021-12-16 15:43:22 +00:00
bytecode-expectations-printer.cc [interpreter] Use v8_flags for accessing flag values 2022-09-15 12:06:07 +00:00
bytecode-expectations-printer.h [test] Move cctest/interpreter to unittests 2022-06-10 08:37:10 +00:00
bytecode-generator-unittest.cc [interpreter] Use v8_flags for accessing flag values 2022-09-15 12:06:07 +00:00
bytecode-node-unittest.cc [ic] name Set/Define/Store property operations more consistently 2022-03-08 18:48:16 +00:00
bytecode-operands-unittest.cc Move remaining files in src/ 2019-05-24 18:24:36 +00:00
bytecode-register-allocator-unittest.cc Move remaining files in src/ 2019-05-24 18:24:36 +00:00
bytecode-register-optimizer-unittest.cc [ignition] Remove unused count from param index getters 2021-12-16 15:43:22 +00:00
bytecode-source-info-unittest.cc Move remaining files in src/ 2019-05-24 18:24:36 +00:00
bytecode-utils.h Move relevant files to src/execution 2019-05-22 08:36:33 +00:00
bytecodes-unittest.cc [ignition] Remove unused count from param index getters 2021-12-16 15:43:22 +00:00
constant-array-builder-unittest.cc [offthread] Add an OffThreadIsolate 2020-02-04 11:37:47 +00:00
generate-bytecode-expectations.cc [interpreter] Use v8_flags for accessing flag values 2022-09-15 12:06:07 +00:00
interpreter-assembler-unittest.cc [interpreter] Rename bytecode operand flag accessors in assembler 2022-08-31 14:36:17 +00:00
interpreter-assembler-unittest.h [Compiler] Remove untrusted code mitigations. 2021-08-12 12:58:24 +00:00
interpreter-intrinsics-unittest.cc [test] Move cctest/interpreter to unittests 2022-06-10 08:37:10 +00:00
interpreter-tester.cc [interpreter] Use v8_flags for accessing flag values 2022-09-15 12:06:07 +00:00
interpreter-tester.h [test] Move cctest/interpreter to unittests 2022-06-10 08:37:10 +00:00
interpreter-unittest.cc [turbofan] Support BigIntEqual 2022-12-14 10:37:47 +00:00
source-position-matcher.cc [test] Move cctest/interpreter to unittests 2022-06-10 08:37:10 +00:00
source-position-matcher.h [test] Move cctest/interpreter to unittests 2022-06-10 08:37:10 +00:00
source-positions-unittest.cc Fix some random presubmit failures 2022-09-16 10:41:24 +00:00