Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Commit 2f75785

Browse files
committed
deps: upgrade v8 to 3.18.4
1 parent 5ddf7f4 commit 2f75785

File tree

225 files changed

+8583
-3787
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

225 files changed

+8583
-3787
lines changed

deps/v8/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
*~
2020
.cpplint-cache
2121
.d8_history
22+
bsuite
2223
d8
2324
d8_g
2425
shell

deps/v8/AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ ARM Ltd.
99
Hewlett-Packard Development Company, LP
1010
Igalia, S.L.
1111
Joyent, Inc.
12+
Bloomberg Finance L.P.
1213

1314
Akinori MUSHA <[email protected]>
1415
Alexander Botero-Lowry <[email protected]>

deps/v8/ChangeLog

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,35 @@
1+
2013-04-26: Version 3.18.4
2+
3+
Added a preliminary API for ES6 ArrayBuffers
4+
5+
Replaced qsort with std::sort. (Chromium issue 2639)
6+
7+
Performance and stability improvements on all platforms.
8+
9+
10+
2013-04-24: Version 3.18.3
11+
12+
Exposed the GC under a name that is less collision prone than window.gc.
13+
(issue 2641)
14+
15+
Do not emit double values at their use sites. (Chromium issue 234101)
16+
17+
Added methods to allow resuming execution after calling
18+
TerminateExecution(). (issue 2361)
19+
20+
Performance and stability improvements on all platforms.
21+
22+
23+
2013-04-22: Version 3.18.2
24+
25+
OS::MemMove/OS::MemCopy: Don't call through to generated code when size
26+
== 0 to avoid prefetching invalid memory (Chromium issue 233500)
27+
28+
Removed heap snapshot size limit. (Chromium issue 232305)
29+
30+
Performance and stability improvements on all platforms.
31+
32+
133
2013-04-18: Version 3.18.1
234

335
Removed SCons related files and deprecated test suite configurations.

deps/v8/build/README.txt

Lines changed: 6 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,9 @@
1-
This directory contains the V8 GYP files used to generate actual project files
2-
for different build systems.
1+
For build instructions, please refer to:
32

4-
This is currently work in progress but this is expected to replace the SCons
5-
based build system.
3+
https://code.google.com/p/v8/wiki/BuildingWithGYP
64

7-
To use this a checkout of GYP is needed inside this directory. From the root of
8-
the V8 project do the following:
5+
TL;DR version on *nix:
6+
$ make dependencies # Only needed once.
7+
$ make ia32.release -j8
8+
$ make ia32.release.check # Optionally: run tests.
99

10-
$ svn co http://gyp.googlecode.com/svn/trunk build/gyp
11-
12-
Note for the command lines below that Debug is the default configuration,
13-
so specifying that on the command lines is not required.
14-
15-
16-
To generate Makefiles on Linux:
17-
-------------------------------
18-
19-
$ build/gyp_v8
20-
21-
This will build makefiles for ia32, x64 and the ARM simulator with names
22-
Makefile-ia32, Makefile-x64 and Makefile-armu respectively.
23-
24-
To build and run for ia32 in debug and release version do:
25-
26-
$ make -f Makefile-ia32
27-
$ out/Debug/shell
28-
$ make -f Makefile-ia32 BUILDTYPE=Release
29-
$ out/Release/shell
30-
31-
Change the makefile to build and run for the other architectures.
32-
33-
34-
To generate Xcode project files on Mac OS:
35-
------------------------------------------
36-
37-
$ build/gyp_v8
38-
39-
This will make an Xcode project for the ia32 architecture. To build and run do:
40-
41-
$ xcodebuild -project build/all.xcodeproj
42-
$ samples/build/Debug/shell
43-
$ xcodebuild -project build/all.xcodeproj -configuration Release
44-
$ samples/build/Release/shell
45-
46-
47-
To generate Visual Studio solution and project files on Windows:
48-
----------------------------------------------------------------
49-
50-
On Windows an additional third party component is required. This is cygwin in
51-
the same version as is used by the Chromium project. This can be checked out
52-
from the Chromium repository. From the root of the V8 project do the following:
53-
54-
> svn co http://src.chromium.org/svn/trunk/deps/third_party/cygwin@66844 third_party/cygwin
55-
56-
To run GYP Python is required and it is recommended to use the same version as
57-
is used by the Chromium project. This can also be checked out from the Chromium
58-
repository. From the root of the V8 project do the following:
59-
60-
> svn co http://src.chromium.org/svn/trunk/tools/third_party/python_26@89111 third_party/python_26
61-
62-
Now generate Visual Studio solution and project files for the ia32 architecture:
63-
64-
> third_party\python_26\python build/gyp_v8
65-
66-
Now open build\All.sln in Visual Studio.

deps/v8/build/common.gypi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,15 @@
454454
}],
455455
['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" \
456456
or OS=="android"', {
457+
'cflags!': [
458+
'-O2',
459+
'-Os',
460+
],
461+
'cflags': [
462+
'-fdata-sections',
463+
'-ffunction-sections',
464+
'-O3',
465+
],
457466
'conditions': [
458467
[ 'gcc_version==44 and clang==0', {
459468
'cflags': [

deps/v8/build/gyp_v8

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232

3333
import glob
3434
import os
35+
import platform
3536
import shlex
3637
import sys
3738

@@ -43,9 +44,6 @@ if __name__ == '__main__':
4344
script_dir = os.path.dirname(__file__)
4445
v8_root = '.'
4546

46-
sys.path.insert(0, os.path.join(v8_root, 'tools'))
47-
import utils
48-
4947
sys.path.insert(0, os.path.join(v8_root, 'build', 'gyp', 'pylib'))
5048
import gyp
5149

@@ -164,6 +162,6 @@ if __name__ == '__main__':
164162

165163
# Generate for the architectures supported on the given platform.
166164
gyp_args = list(args)
167-
if utils.GuessOS() == 'linux':
165+
if platform.system() == 'Linux':
168166
gyp_args.append('--generator-output=out')
169167
run_gyp(gyp_args)

deps/v8/include/v8-profiler.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,11 @@ class V8EXPORT HeapProfiler {
554554
/** Returns memory used for profiler internal data and snapshots. */
555555
size_t GetProfilerMemorySize();
556556

557+
/**
558+
* Sets a RetainedObjectInfo for an object group (see V8::SetObjectGroupId).
559+
*/
560+
void SetRetainedObjectInfo(UniqueId id, RetainedObjectInfo* info);
561+
557562
private:
558563
HeapProfiler();
559564
~HeapProfiler();

0 commit comments

Comments
 (0)