commit | 828342dd7fb177bb9248e77494e019a7f214caec | [log] [tgz] |
---|---|---|
author | Jakob Kummerow <jkummerow@chromium.org> | Fri Jan 25 00:45:17 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Jan 25 20:55:25 2019 |
tree | 95ff7241bb4eef9b0392975a4d374025daf3509b | |
parent | 1df72c6fa1cd7028bb0ee5c1453f895eb537cf38 [diff] |
[ubsan][compiler] Avoid out-of-range casts to IrOpcode::Value An enum-typed value should never have a value outside of that enum's range. This patch enforces that in Debug mode, while in Release mode keeping the previous behavior of returning "UnknownOpcode" as the mnemonic for illegal IrOpcode values to ease debugging. Bug: v8:3770 Change-Id: I83a5a356f1fb7a266921940a4495f1d39a1823cd Reviewed-on: https://chromium-review.googlesource.com/c/1436221 Reviewed-by: Jaroslav Sevcik <jarin@chromium.org> Commit-Queue: Jakob Kummerow <jkummerow@chromium.org> Cr-Commit-Position: refs/heads/master@{#59102}
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
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/*
Please follow the instructions mentioned on the V8 wiki.