Go to file
marja 978f41a1da RegExpParser: Fix Reset()ting to the end.
The bug would occur when we try to Reset() to a position already at the end.

This happens e.g., when the regexp ends with \u. What used to happen in that
case: 1) Advance past \ and u (to the end) (which wouldn't increase next_pos_
enough) 2) Try to parse 4 hex digits 3) When that failed, Reset() to the
position which should've been at the end but wasn't.

To be able to properly Reset() to a position at the end, we need to allow
next_pos_ to move beyond the end (since position() is next_pos_ - 1).

Minimal repro case:

var r = /foo\u/
r.test("foou") // should be true, was false.

(Note that \u not followed by 4 hex didits should be interpreted as an identity
escape. It already worked unless \u was at the end of the regexp.)

BUG=v8:3756
LOG=NO

Review URL: https://codereview.chromium.org/802313003

Cr-Commit-Position: refs/heads/master@{#25838}
2014-12-16 12:14:19 +00:00
benchmarks Revert "Refactoring: Make gtest testsuite the default." 2014-09-02 09:17:26 +00:00
build Consistently use only one of virtual/OVERRIDE/FINAL. 2014-12-12 10:44:25 +00:00
include Extract non-IO part of mksnapshot into an API method. 2014-12-10 14:20:26 +00:00
samples Add interceptor support for symbols 2014-11-27 10:21:39 +00:00
src RegExpParser: Fix Reset()ting to the end. 2014-12-16 12:14:19 +00:00
test RegExpParser: Fix Reset()ting to the end. 2014-12-16 12:14:19 +00:00
testing Remove v8stdint.h, it doesn't serve a purpose anymore. 2014-10-21 08:25:14 +00:00
tools [turbofan] First version of loop analysis: loop finder on the soup of nodes. 2014-12-16 09:36:40 +00:00
.clang-format Change clang-format config to allow for two empty lines between functions 2013-12-03 10:39:21 +00:00
.gitignore Add support for downloading clang 2014-11-27 10:29:51 +00:00
AUTHORS Improve String.repeat. 2014-10-17 10:01:38 +00:00
BUILD.gn [turbofan] First version of loop analysis: loop finder on the soup of nodes. 2014-12-16 09:36:40 +00:00
ChangeLog Upgrade version and change log after branch. 2014-11-10 10:41:13 +00:00
codereview.settings Make codereview.settings ready for git. 2014-11-12 17:40:32 +00:00
DEPS Update V8 DEPS. 2014-12-16 04:28:50 +00:00
LICENSE Update LICENSE date. 2014-02-18 10:50:22 +00:00
LICENSE.strongtalk Add LICENSE.v8, LICENSE.strongtalk and LICENSE.valgrind to the v8 2011-02-03 07:10:06 +00:00
LICENSE.v8 Add LICENSE.v8, LICENSE.strongtalk and LICENSE.valgrind to the v8 2011-02-03 07:10:06 +00:00
LICENSE.valgrind Add LICENSE.v8, LICENSE.strongtalk and LICENSE.valgrind to the v8 2011-02-03 07:10:06 +00:00
Makefile Reland "Use same blob format for internal and external snapshots." 2014-12-10 11:46:55 +00:00
Makefile.android Fix ARM64 build 2014-12-08 13:04:17 +00:00
Makefile.nacl Use the pnacl-clang toolchain for (P)NaCL builds 2014-10-06 08:10:50 +00:00
OWNERS Add myself to OWNERS 2014-12-08 05:46:46 +00:00
PRESUBMIT.py Update default trybots. 2014-11-19 13:00:16 +00:00
README.md Update all DEPS to match chromium's DEPS at edb488e 2014-12-08 12:27:26 +00:00
WATCHLISTS Add myself to a watchlist for the public API. 2013-10-10 11:37:48 +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://code.google.com/p/v8/

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/*