v8/src
Patrick Thier 3e40f8f091 Add check for class constructor to CallFunction
Raise an exception if CallFunction is invoked with a class constructor.
The check was initially removed in [1] but there are cases where we
could end in CallFunction with class constructors from optimized code.

[1] https://crrev.com/c/3186434

Bug: chromium:1271384
Change-Id: I0d700c4b1d117334c1c4c14719e24cd1f2c5e3a2
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3291313
Commit-Queue: Patrick Thier <pthier@chromium.org>
Reviewed-by: Jakob Gruber <jgruber@chromium.org>
Cr-Commit-Position: refs/heads/main@{#77967}
2021-11-18 12:44:10 +00:00
..
api [builtins] add Torque fast-path for String.prototype.localeCompare 2021-11-17 12:55:13 +00:00
asmjs [ext-code-space] Avoid Code <-> CodeT conversions in runtime, pt.1 2021-11-08 14:08:24 +00:00
ast [cleanup][objects] Make FunctionKind an enum class 2021-11-16 16:18:28 +00:00
base Allow customizing the RegionAllocator's split and merge operations 2021-11-15 13:59:14 +00:00
baseline [heap] Support mprotect off thread 2021-11-10 17:52:37 +00:00
bigint Skip the readability/check rule on bigint directory 2021-11-09 14:57:49 +00:00
builtins Add check for class constructor to CallFunction 2021-11-18 12:44:10 +00:00
codegen [x64] Implement 256-bit assembler for v(p)blendv* 2021-11-18 00:01:37 +00:00
common [web snapshots] Fix error reporting 2021-11-18 10:25:38 +00:00
compiler [wasm] Update permitted calls in unrolled loops 2021-11-18 11:39:06 +00:00
compiler-dispatcher [compiler] Post compile tasks from ignition instead of the parser 2021-11-15 10:17:19 +00:00
d8 [web snapshots] Fix error reporting 2021-11-18 10:25:38 +00:00
date [builtins][date] Fix -Wshadow warnings 2021-11-15 19:46:43 +00:00
debug [cleanup][objects] Make FunctionKind an enum class 2021-11-16 16:18:28 +00:00
deoptimizer [deoptimizer] Fix -Wshadow 2021-11-12 19:41:07 +00:00
diagnostics [cleanup] Rename RelocInfo::NONE to RelocInfo::NO_INFO to fix -Wshadow 2021-11-17 19:11:40 +00:00
execution [builtins] add Torque fast-path for String.prototype.localeCompare 2021-11-17 12:55:13 +00:00
extensions [interpreter] Port GetDispatchCountersObject to internal 2021-08-25 09:50:51 +00:00
flags [wasm][turbofan] Disable inlining of JS->Wasm calls by default 2021-11-18 10:38:26 +00:00
handles [handles] Branch hints and force-inline in HandleScope 2021-11-11 07:56:47 +00:00
heap [heap] Support AllocationType::kSharedOld in LocalHeap and LocalFactory 2021-11-18 01:34:08 +00:00
ic [cleanup] Make IcCheckType an enum class 2021-11-17 16:41:00 +00:00
init [cleanup] Fix some -Wshadow warnings 2021-11-15 19:48:29 +00:00
inspector [inspector] Cache StackFrames by script, line and column number. 2021-11-11 07:34:27 +00:00
interpreter [bytecode-generator] Move source code position for classes 2021-11-17 09:40:32 +00:00
json [objects] Make PropertyKind an enum class to fix -Wshadow 2021-11-15 19:05:14 +00:00
libplatform Introduce v8_enable_virtual_memory_cage 2021-08-11 16:13:42 +00:00
libsampler Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
logging [snapshot] Add SnapshotDecompress RCS scope 2021-11-15 11:44:45 +00:00
numbers [numbers] Rename ConversionFlags:NO_FLAG to NO_CONVERSION_FLAGS 2021-11-11 22:04:22 +00:00
objects [turbofan] fix type assertion for OtherUndetectable type 2021-11-18 11:48:26 +00:00
parsing [cleanup][objects] Make FunctionKind an enum class 2021-11-16 16:18:28 +00:00
profiler [objects] Make PropertyKind an enum class to fix -Wshadow 2021-11-15 19:05:14 +00:00
protobuf Remove petermarshall from OWNERS 2021-03-31 11:00:22 +00:00
regexp [regexp] Fix -Wshadow warnings 2021-11-15 22:33:43 +00:00
roots [wasm] Make ActiveContinuation a root 2021-11-12 17:24:06 +00:00
runtime [cleanup] Make IcCheckType an enum class 2021-11-17 16:41:00 +00:00
sanitizer Reland "[elements] Avoid racy data reads/writes" 2021-05-06 10:46:52 +00:00
security Introduce CagedPointer 2021-10-29 13:36:07 +00:00
snapshot [flags] Improve flag to verify and create snapshot checksums 2021-11-16 15:06:37 +00:00
strings [objects] Make PropertyKind an enum class to fix -Wshadow 2021-11-15 19:05:14 +00:00
tasks Remove rmcilroy from OWNERS. 2021-08-19 16:30:27 +00:00
third_party Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
torque [torque] Emit full codesearch links for source positions 2021-11-11 10:38:47 +00:00
tracing [base] Move utils/vector.h to base/vector.h 2021-06-18 13:33:13 +00:00
trap-handler [trap-handler] Fix -Wshadow warnings 2021-10-15 23:09:46 +00:00
utils [utils] Fix -Wshadow warnings 2021-11-11 17:19:10 +00:00
wasm [cleanup] Rename RelocInfo::NONE to RelocInfo::NO_INFO to fix -Wshadow 2021-11-17 19:11:40 +00:00
web-snapshot [web snapshots] Fix error reporting 2021-11-18 10:25:38 +00:00
zone [regexp] Release regexp zone memory during JS parsing 2021-11-02 11:56:11 +00:00
DEPS cppgc: Prohibit Oilpan usage from within V8 2021-08-25 08:24:33 +00:00
DIR_METADATA Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
OWNERS Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00