Go to file
Leszek Swirski 97bda678dd [objects] Move SFI init from factory to Init method
After allocation of an object, we need to initialize it to make it safe
for the GC to see it. For complex objects like SharedFunctionInfo, this
initialization code is long and requires understanding of the object. So,
it makes sense for the initialization to live in the SharedFunctionInfo
code itself (as an Init method) rather than in the factory.

Aside from being a neat cleanup, this will allow us to share this
initialization logic between different allocation methods, as part of the
off-thread allocation project:
https://docs.google.com/document/d/1-_96kok0AcavkbcdqqZvpqt_2q-_XWAsAJwbRXlfwCo/

Bug: chromium:1011762
Change-Id: Ie276eb711423272f85abfeb3d88df1826a77b984
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1872402
Commit-Queue: Leszek Swirski <leszeks@chromium.org>
Reviewed-by: Toon Verwaest <verwaest@chromium.org>
Reviewed-by: Ulan Degenbaev <ulan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#64926}
2019-11-12 22:33:24 +00:00
build_overrides Use relative paths to OWNERS files 2019-08-12 13:52:52 +00:00
custom_deps Use relative paths to OWNERS files 2019-08-12 13:52:52 +00:00
docs
gni [build] Move split_static_library.gni from Chromium repo 2019-11-04 15:45:54 +00:00
include [builtins] Allow 2Gb TypedArrays on 64-bit architectures 2019-11-11 21:42:56 +00:00
infra [build] Remove unused trace-pc-guard coverage from clusterfuzz builds 2019-11-12 10:41:22 +00:00
samples [cleanup] Drop some occurrences of Isolate::Current 2019-06-26 19:39:21 +00:00
src [objects] Move SFI init from factory to Init method 2019-11-12 22:33:24 +00:00
test Revert "[ic] Migrate Code-based handlers to use data driven handler." 2019-11-12 17:17:49 +00:00
testing Use relative paths to OWNERS files 2019-08-12 13:52:52 +00:00
third_party [DevTools] Roll inspector_protocol (v8) (file split) 2019-11-12 10:27:01 +00:00
tools [foozzie] Remove per-testcase random seed 2019-11-12 12:21:51 +00:00
.clang-format
.clang-tidy
.editorconfig
.flake8 Add .flake8 to allow for python style checking. 2019-07-19 21:44:03 +00:00
.git-blame-ignore-revs Add recent code rewrite to .git-blame-ignore-revs 2019-05-23 10:38:45 +00:00
.gitattributes
.gitignore Remove MIPS(64) builders from V8 infra 2019-09-16 11:20:11 +00:00
.gn [build] Dynamically decide if to use system xcode 2019-07-29 08:20:24 +00:00
.vpython
.ycm_extra_conf.py
AUTHORS [builtins] Port Number.prototype.toString to Torque 2019-11-05 11:00:26 +00:00
BUILD.gn Revert "[build] Simplify snapshot target" 2019-11-12 16:21:35 +00:00
ChangeLog
CODE_OF_CONDUCT.md
codereview.settings
COMMON_OWNERS Rename clemensh to clemensb in OWNERS 2019-09-26 08:44:44 +00:00
DEPS Update V8 DEPS. 2019-11-12 03:49:11 +00:00
ENG_REVIEW_OWNERS
INFRA_OWNERS
INTL_OWNERS Add missing owners files 2019-05-31 07:21:01 +00:00
LICENSE
LICENSE.fdlibm
LICENSE.strongtalk
LICENSE.v8
LICENSE.valgrind
MIPS_OWNERS Move architecture dependent files 2019-05-28 14:02:15 +00:00
OWNERS Add syg@chromium.org as DEPS owner for test262 rolls 2019-09-17 19:29:11 +00:00
PPC_OWNERS Move architecture dependent files 2019-05-28 14:02:15 +00:00
PRESUBMIT.py Re-check all files on a DEPS change 2019-09-30 09:23:36 +00:00
README.md
S390_OWNERS Move architecture dependent files 2019-05-28 14:02:15 +00:00
WATCHLISTS Remove 'profiler' category from WATCHLISTS 2019-10-21 08:23:59 +00:00

V8 JavaScript Engine

V8 is Google's open source JavaScript engine.

V8 implements ECMAScript as specified in ECMA-262.

V8 is written in C++ and is used in Google Chrome, the open source browser from Google.

V8 can run standalone, or can be embedded into any C++ application.

V8 Project page: https://v8.dev/docs

Getting the Code

Checkout depot tools, and run

    fetch v8

This will checkout V8 into the directory v8 and fetch all of its dependencies. To stay up to date, run

    git pull origin
    gclient sync

For fetching all branches, add the following into your remote configuration in .git/config:

    fetch = +refs/branch-heads/*:refs/remotes/branch-heads/*
    fetch = +refs/tags/*:refs/tags/*

Contributing

Please follow the instructions mentioned at v8.dev/docs/contribute.