v8/src
jameslahm 823a221a36 [web-snapshot] Allocate Context after setting up ScopeInfo
... in DeserializeContexts.

Allocate the context before filling the scope info with the correct
variable name may cause DCHECK failure in TorqueGeneratedClassVerifiers::ScopeInfoVerify.
This CL changes the context variables serialization order from
"name, value, name, value" to "name, name... value, value...".
And only allocate and fill the context after setting up the correct
scope info.

Bug: v8:12832
Change-Id: I6e91aa867a528b7ffcae85de0f2364d0f9ea1bd7
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3607374
Reviewed-by: Marja Hölttä <marja@chromium.org>
Commit-Queue: 王澳 <wangao.james@bytedance.com>
Cr-Commit-Position: refs/heads/main@{#80184}
2022-04-26 12:52:45 +00:00
..
api [bazel] Only add traphandler if wasm is enabled 2022-04-25 14:50:29 +00:00
asmjs Reland "[asm] Reject import calls with too many parameters" 2022-03-09 15:46:32 +00:00
ast Reland "[interpreter] Optimize strict equal boolean" 2022-04-25 10:02:05 +00:00
base [wasm] Implement cached PKU-protected assembler buffers 2022-04-26 11:29:52 +00:00
baseline Reland "[osr] Use the new OSR cache" 2022-04-26 07:26:52 +00:00
bigint Reland "Reland "[Torque] Generalize Torque literals to larger size"" 2022-02-04 09:40:24 +00:00
builtins [maglev] Add Box/UnboxNumbers and Float64Add nodes 2022-04-26 10:56:22 +00:00
codegen Reland "[string] Non-transitioning shared strings" 2022-04-26 11:56:15 +00:00
common [ShadowRealm] Implement ShadowRealm.prototype.importValue 2022-04-22 15:04:26 +00:00
compiler [wasm-gc] Fix roundtrips of JS functions through Wasm 2022-04-26 11:02:22 +00:00
compiler-dispatcher Reland "[osr] Basic support for concurrent OSR" 2022-04-04 13:48:26 +00:00
d8 [wasm] Update spec tests 2022-04-26 11:55:12 +00:00
date [inspector] Side-effect free DateMirror descriptions. 2022-04-06 13:19:33 +00:00
debug Plumb Isolate through own property enumeration functions 2022-04-25 22:54:22 +00:00
deoptimizer [osr] Opportunistically keep deoptimized OSR code in the cache 2022-04-26 10:52:33 +00:00
diagnostics Reland "[string] Non-transitioning shared strings" 2022-04-26 11:56:15 +00:00
execution Reland "[string] Non-transitioning shared strings" 2022-04-26 11:56:15 +00:00
extensions [heap] Statistics extension needs to check whether new space exists 2022-03-23 09:30:51 +00:00
flags [turboshaft] initial commit 2022-04-25 09:12:15 +00:00
handles [handles, heap] Process young GlobalHandle nodes in GC 2022-04-25 18:33:52 +00:00
heap Reland "[string] Non-transitioning shared strings" 2022-04-26 11:56:15 +00:00
ic Reland "[string] Non-transitioning shared strings" 2022-04-26 11:56:15 +00:00
init [ShadowRealm] Make filenames consistent 2022-04-25 23:49:02 +00:00
inspector [inspector] Add 'canBeRestarted' flag to CallFrames when debugger pauses 2022-04-20 12:40:34 +00:00
interpreter Reland "[osr] Use the new OSR cache" 2022-04-26 07:26:52 +00:00
json Plumb Isolate through own property enumeration functions 2022-04-25 22:54:22 +00:00
libplatform Split V8_OS_MACOSX into V8_OS_DARWIN and V8_OS_MACOS 2022-02-18 10:24:59 +00:00
libsampler Split V8_OS_MACOSX into V8_OS_DARWIN and V8_OS_MACOS 2022-02-18 10:24:59 +00:00
logging [turboshaft] initial commit 2022-04-25 09:12:15 +00:00
maglev [maglev] Add Box/UnboxNumbers and Float64Add nodes 2022-04-26 10:56:22 +00:00
numbers [runtime] Add Arguments::positive_smi_value_at(int index) helper 2022-03-10 10:50:55 +00:00
objects Reland "[string] Non-transitioning shared strings" 2022-04-26 11:56:15 +00:00
parsing [log] Rename logging classes 2022-04-19 12:07:16 +00:00
profiler Categorize object shape info in heap snapshots 2022-04-22 16:19:26 +00:00
protobuf Remove petermarshall from OWNERS 2021-03-31 11:00:22 +00:00
regexp [riscv64] Fix relocation attribute not loaded correctly 2022-04-25 08:13:52 +00:00
roots [builtins] Use builtin context for SourceTextModule closures 2022-04-25 15:30:52 +00:00
runtime [osr] Opportunistically keep deoptimized OSR code in the cache 2022-04-26 10:52:33 +00:00
sandbox [base] Don't return bool from VirtualAddressSpace::Free* routines 2022-03-07 16:53:23 +00:00
sanitizer Reland "[elements] Avoid racy data reads/writes" 2021-05-06 10:46:52 +00:00
snapshot Reland "[string] Non-transitioning shared strings" 2022-04-26 11:56:15 +00:00
strings [string] SLOW_DCHECK string hash during lifetime of String::FlatContent 2022-02-14 17:26:37 +00:00
tasks Remove rmcilroy from OWNERS. 2021-08-19 16:30:27 +00:00
temporal [Temporal] Part2 Add constructor and simple getters. 2022-01-07 19:18:33 +00:00
third_party [log] Rename logging classes 2022-04-19 12:07:16 +00:00
torque [torque] Generate asserts for C++ object definitions 2022-04-07 13:22:25 +00:00
tracing Add missing trace category group to trace-categories.h 2022-01-12 19:47:55 +00:00
trap-handler Remove set but otherwise unused variable 2022-03-31 16:37:14 +00:00
utils [rwx][muc] Prepare BoundedPageAllocator for fast W^X on M1 2022-04-25 20:09:22 +00:00
wasm [wasm] Implement cached PKU-protected assembler buffers 2022-04-26 11:29:52 +00:00
web-snapshot [web-snapshot] Allocate Context after setting up ScopeInfo 2022-04-26 12:52:45 +00:00
zone [rwx][muc] Prepare BoundedPageAllocator for fast W^X on M1 2022-04-25 20:09:22 +00:00
DEPS [maglev] Add a skeleton MaglevConcurrentDispatcher impl 2022-03-03 17:32:21 +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