Fix overflow issue in Zone::New

When requesting a large allocation near the end of the address space,
the computation could overflow and erroneously *not* grow the Zone
as required.

BUG=chromium:606115
LOG=y

Review-Url: https://codereview.chromium.org/1930873002
Cr-Commit-Position: refs/heads/master@{#35903}
1 file changed
tree: 3132dc90398ede2fca1fd4785d387bf65208e287
  1. benchmarks/
  2. build/
  3. docs/
  4. gypfiles/
  5. include/
  6. infra/
  7. samples/
  8. src/
  9. test/
  10. testing/
  11. third_party/
  12. tools/
  13. .clang-format
  14. .gitignore
  15. .ycm_extra_conf.py
  16. AUTHORS
  17. BUILD.gn
  18. ChangeLog
  19. CODE_OF_CONDUCT.md
  20. codereview.settings
  21. DEPS
  22. LICENSE
  23. LICENSE.strongtalk
  24. LICENSE.v8
  25. LICENSE.valgrind
  26. Makefile
  27. Makefile.android
  28. Makefile.nacl
  29. OWNERS
  30. PRESUBMIT.py
  31. README.md
  32. snapshot_toolchain.gni
  33. WATCHLISTS
README.md

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.