Go to file
Gabriel Charette db73d446b9 Bring Time(Delta)::Min/Max() and related helpers to V8.
Copied as-is modulo compile tweaks from Chromium's base.

Copied tests highlighting existing overflow issues with V8's impl...

TimeDelta::Max() will initially be used in V8 to flag events that
never triggered in a TimedHistogram.

Also constexpr'ed a few things while I was in there, it's harmless
at worst and helps a little at best.
Ideally would constexpr all the Time*::From*() methods like in
Chromium but that has inlining implications and I don't know the
impact that could have on V8.

Bug: chromium:807606
Change-Id: If5aa92759d985be070e12af4dd20f0159169048b
Reviewed-on: https://chromium-review.googlesource.com/899342
Reviewed-by: Hannes Payer <hpayer@chromium.org>
Commit-Queue: Gabriel Charette <gab@chromium.org>
Cr-Commit-Position: refs/heads/master@{#51073}
2018-02-02 15:38:55 +00:00
benchmarks
build_overrides [ndk] Change android ndk root for v8 2018-01-11 08:10:33 +00:00
docs
gni [GN][MIPS] Add ldso_path and gcc_target_rpath config on MIPS 2018-01-30 11:51:24 +00:00
gypfiles [turbofan] LoopVariableOptimizer: use generic FunctionalList implementation 2018-02-01 15:48:09 +00:00
include New API for capturing embedder object graph in heap snapshot. 2018-02-01 08:05:14 +00:00
infra [build] Add configs for new nosnap bots 2018-01-29 16:34:40 +00:00
samples [gyp] move gyp files from src to gypfiles. 2018-01-23 09:54:36 +00:00
src Bring Time(Delta)::Min/Max() and related helpers to V8. 2018-02-02 15:38:55 +00:00
test Bring Time(Delta)::Min/Max() and related helpers to V8. 2018-02-02 15:38:55 +00:00
testing [gyp] move build targets for tests to gypfiles. 2018-01-30 06:31:00 +00:00
third_party Move detect_v8_host_arch out of gypfiles. 2018-01-31 08:21:01 +00:00
tools [test] Make it more likely to use smaller interrupt-budget on fuzzer 2018-02-02 14:45:17 +00:00
.clang-format
.editorconfig
.git-blame-ignore-revs
.gitignore [build] Enable downloading mips toolchain via runhooks 2018-01-31 14:38:43 +00:00
.gn
.vpython
.ycm_extra_conf.py [ycm] Switch from gnu++11 to gnu++14 2017-11-27 07:48:21 +00:00
AUTHORS Revert "Reland: Reimplement Object.entries/values as CSA to optimize performance." 2018-01-22 09:47:43 +00:00
BUILD.gn Revert "[builtins] Add .incbin cctest" 2018-02-01 17:34:32 +00:00
ChangeLog [tools] Merge ChangeLog from latest release 2017-12-19 12:30:56 +00:00
CODE_OF_CONDUCT.md
codereview.settings
DEPS Update V8 DEPS. 2018-02-02 04:58:42 +00:00
LICENSE
LICENSE.fdlibm
LICENSE.strongtalk
LICENSE.v8
LICENSE.valgrind
Makefile [gyp] move build targets for tests to gypfiles. 2018-01-30 06:31:00 +00:00
Makefile.android
OWNERS Update top-level OWNERS. 2018-01-19 08:37:12 +00:00
PRESUBMIT.py [gyp] move gyp files from src to gypfiles. 2018-01-23 09:54:36 +00:00
README.md
snapshot_toolchain.gni
WATCHLISTS

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://github.com/v8/v8/wiki

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 on the V8 wiki.