[runtime] Move CacheInitialArrayMaps to the bootstrapper
CacheInitialJSArrayMaps was called in the middle of JSFunction::SetPrototype even though this only happens during bootstrapping given that Array.prototype os non-configurable and non-writable. Changes: - Rename CacheInitialArrayMaps to InitializeJSArrayMaps - Add more explicit checks in InitializeJSArrayMaps to link back to the Context indices for better code searching Change-Id: Iad6d20e3d67d715bfd6429037c75ac35ab7f399f Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3571889Reviewed-by: Shu-yu Guo <syg@chromium.org> Commit-Queue: Camillo Bruni <cbruni@chromium.org> Cr-Commit-Position: refs/heads/main@{#79973}
Showing
Please
register
or
sign in
to comment