Skip to content

Commit a6b6295

Browse files
committed
deps: update v8 to 4.5.103
unicode-decoder: fix out-of-band write in utf16 (v8 issue 4274). Include Harmony Array/TypedArray methods unconditionally (Chromium issue 504629). PR-URL: #2183 Reviewed-By: Ben Noordhuis <[email protected]>
1 parent 4ff8f37 commit a6b6295

File tree

303 files changed

+11641
-6671
lines changed

Some content is hidden

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

303 files changed

+11641
-6671
lines changed

deps/v8/BUILD.gn

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,8 @@ action("js2c") {
231231
"src/mirror-debugger.js",
232232
"src/liveedit-debugger.js",
233233
"src/templates.js",
234+
"src/harmony-array.js",
235+
"src/harmony-typedarray.js",
234236
]
235237

236238
outputs = [
@@ -270,9 +272,8 @@ action("js2c_experimental") {
270272
"src/proxy.js",
271273
"src/generator.js",
272274
"src/harmony-atomics.js",
273-
"src/harmony-array.js",
274275
"src/harmony-array-includes.js",
275-
"src/harmony-typedarray.js",
276+
"src/harmony-concat-spreadable.js",
276277
"src/harmony-tostring.js",
277278
"src/harmony-regexp.js",
278279
"src/harmony-reflect.js",
@@ -672,6 +673,8 @@ source_set("v8_base") {
672673
"src/compiler/js-builtin-reducer.h",
673674
"src/compiler/js-context-specialization.cc",
674675
"src/compiler/js-context-specialization.h",
676+
"src/compiler/js-frame-specialization.cc",
677+
"src/compiler/js-frame-specialization.h",
675678
"src/compiler/js-generic-lowering.cc",
676679
"src/compiler/js-generic-lowering.h",
677680
"src/compiler/js-graph.cc",
@@ -729,6 +732,8 @@ source_set("v8_base") {
729732
"src/compiler/pipeline.h",
730733
"src/compiler/pipeline-statistics.cc",
731734
"src/compiler/pipeline-statistics.h",
735+
"src/compiler/raw-machine-assembler.cc",
736+
"src/compiler/raw-machine-assembler.h",
732737
"src/compiler/register-allocator.cc",
733738
"src/compiler/register-allocator.h",
734739
"src/compiler/register-allocator-verifier.cc",
@@ -855,6 +860,8 @@ source_set("v8_base") {
855860
"src/heap/mark-compact-inl.h",
856861
"src/heap/mark-compact.cc",
857862
"src/heap/mark-compact.h",
863+
"src/heap/memory-reducer.cc",
864+
"src/heap/memory-reducer.h",
858865
"src/heap/objects-visiting-inl.h",
859866
"src/heap/objects-visiting.cc",
860867
"src/heap/objects-visiting.h",

deps/v8/ChangeLog

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,66 @@
1+
2015-07-08: Version 4.5.103
2+
3+
Performance and stability improvements on all platforms.
4+
5+
6+
2015-07-08: Version 4.5.102
7+
8+
Performance and stability improvements on all platforms.
9+
10+
11+
2015-07-07: Version 4.5.101
12+
13+
Move compatible receiver check from CompileHandler to UpdateCaches
14+
(Chromium issue 505374).
15+
16+
Performance and stability improvements on all platforms.
17+
18+
19+
2015-07-07: Version 4.5.100
20+
21+
Performance and stability improvements on all platforms.
22+
23+
24+
2015-07-07: Version 4.5.99
25+
26+
unicode-decoder: fix out-of-band write in utf16 (issue 4274).
27+
28+
Performance and stability improvements on all platforms.
29+
30+
31+
2015-07-06: Version 4.5.98
32+
33+
Performance and stability improvements on all platforms.
34+
35+
36+
2015-07-04: Version 4.5.97
37+
38+
Performance and stability improvements on all platforms.
39+
40+
41+
2015-07-03: Version 4.5.96
42+
43+
Performance and stability improvements on all platforms.
44+
45+
46+
2015-07-03: Version 4.5.95
47+
48+
Performance and stability improvements on all platforms.
49+
50+
51+
2015-07-02: Version 4.5.94
52+
53+
Performance and stability improvements on all platforms.
54+
55+
56+
2015-07-02: Version 4.5.93
57+
58+
Include Harmony Array/TypedArray methods unconditionally (Chromium issue
59+
504629).
60+
61+
Performance and stability improvements on all platforms.
62+
63+
164
2015-07-02: Version 4.5.92
265

366
Performance and stability improvements on all platforms.

deps/v8/DEPS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ deps = {
1010
"v8/build/gyp":
1111
Var("git_url") + "/external/gyp.git" + "@" + "5122240c5e5c4d8da12c543d82b03d6089eb77c5",
1212
"v8/third_party/icu":
13-
Var("git_url") + "/chromium/deps/icu.git" + "@" + "1b697da5c2c0112e2b70e7e75d3e3d985f464a8f",
13+
Var("git_url") + "/chromium/deps/icu.git" + "@" + "c81a1a3989c3b66fa323e9a6ee7418d7c08297af",
1414
"v8/buildtools":
1515
Var("git_url") + "/chromium/buildtools.git" + "@" + "ecc8e253abac3b6186a97573871a084f4c0ca3ae",
1616
"v8/testing/gtest":

deps/v8/build/features.gypi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
['v8_enable_i18n_support==1', {
9898
'defines': ['V8_I18N_SUPPORT',],
9999
}],
100-
['v8_use_external_startup_data==1', {
100+
['v8_use_snapshot=="true" and v8_use_external_startup_data==1', {
101101
'defines': ['V8_USE_EXTERNAL_STARTUP_DATA',],
102102
}],
103103
['dcheck_always_on!=0', {
@@ -108,7 +108,7 @@
108108
'DebugBaseCommon': {
109109
'abstract': 1,
110110
'variables': {
111-
'v8_enable_handle_zapping%': 1,
111+
'v8_enable_handle_zapping%': 0,
112112
},
113113
'conditions': [
114114
['v8_enable_handle_zapping==1', {

deps/v8/include/v8-debug.h

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -60,20 +60,20 @@ class V8_EXPORT Debug {
6060
* callbacks as their content becomes invalid. These objects are from the
6161
* debugger event that started the debug message loop.
6262
*/
63-
virtual Handle<Object> GetExecutionState() const = 0;
64-
virtual Handle<Object> GetEventData() const = 0;
63+
virtual Local<Object> GetExecutionState() const = 0;
64+
virtual Local<Object> GetEventData() const = 0;
6565

6666
/**
6767
* Get the debugger protocol JSON.
6868
*/
69-
virtual Handle<String> GetJSON() const = 0;
69+
virtual Local<String> GetJSON() const = 0;
7070

7171
/**
7272
* Get the context active when the debug event happened. Note this is not
7373
* the current active context as the JavaScript part of the debugger is
7474
* running in its own context which is entered at this point.
7575
*/
76-
virtual Handle<Context> GetEventContext() const = 0;
76+
virtual Local<Context> GetEventContext() const = 0;
7777

7878
/**
7979
* Client data passed with the corresponding request if any. This is the
@@ -104,21 +104,21 @@ class V8_EXPORT Debug {
104104
* Access to execution state and event data of the debug event. Don't store
105105
* these cross callbacks as their content becomes invalid.
106106
*/
107-
virtual Handle<Object> GetExecutionState() const = 0;
108-
virtual Handle<Object> GetEventData() const = 0;
107+
virtual Local<Object> GetExecutionState() const = 0;
108+
virtual Local<Object> GetEventData() const = 0;
109109

110110
/**
111111
* Get the context active when the debug event happened. Note this is not
112112
* the current active context as the JavaScript part of the debugger is
113113
* running in its own context which is entered at this point.
114114
*/
115-
virtual Handle<Context> GetEventContext() const = 0;
115+
virtual Local<Context> GetEventContext() const = 0;
116116

117117
/**
118118
* Client data passed with the corresponding callback when it was
119119
* registered.
120120
*/
121-
virtual Handle<Value> GetCallbackData() const = 0;
121+
virtual Local<Value> GetCallbackData() const = 0;
122122

123123
/**
124124
* Client data passed to DebugBreakForCommand function. The
@@ -156,7 +156,7 @@ class V8_EXPORT Debug {
156156
typedef void (*DebugMessageDispatchHandler)();
157157

158158
static bool SetDebugEventListener(EventCallback that,
159-
Handle<Value> data = Handle<Value>());
159+
Local<Value> data = Local<Value>());
160160

161161
// Schedule a debugger break to happen when JavaScript code is run
162162
// in the given isolate.
@@ -196,20 +196,20 @@ class V8_EXPORT Debug {
196196
*/
197197
static V8_DEPRECATE_SOON(
198198
"Use maybe version",
199-
Local<Value> Call(v8::Handle<v8::Function> fun,
200-
Handle<Value> data = Handle<Value>()));
199+
Local<Value> Call(v8::Local<v8::Function> fun,
200+
Local<Value> data = Local<Value>()));
201201
// TODO(dcarney): data arg should be a MaybeLocal
202202
static MaybeLocal<Value> Call(Local<Context> context,
203-
v8::Handle<v8::Function> fun,
204-
Handle<Value> data = Handle<Value>());
203+
v8::Local<v8::Function> fun,
204+
Local<Value> data = Local<Value>());
205205

206206
/**
207207
* Returns a mirror object for the given object.
208208
*/
209209
static V8_DEPRECATE_SOON("Use maybe version",
210-
Local<Value> GetMirror(v8::Handle<v8::Value> obj));
210+
Local<Value> GetMirror(v8::Local<v8::Value> obj));
211211
static MaybeLocal<Value> GetMirror(Local<Context> context,
212-
v8::Handle<v8::Value> obj);
212+
v8::Local<v8::Value> obj);
213213

214214
/**
215215
* Makes V8 process all pending debug messages.

deps/v8/include/v8-profiler.h

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ class V8_EXPORT CpuProfileNode {
6060
};
6161

6262
/** Returns function name (empty string for anonymous functions.) */
63-
Handle<String> GetFunctionName() const;
63+
Local<String> GetFunctionName() const;
6464

6565
/** Returns id of the script where function is located. */
6666
int GetScriptId() const;
6767

6868
/** Returns resource name for script from where the function originates. */
69-
Handle<String> GetScriptResourceName() const;
69+
Local<String> GetScriptResourceName() const;
7070

7171
/**
7272
* Returns the number, 1-based, of the line where the function originates.
@@ -129,7 +129,7 @@ class V8_EXPORT CpuProfileNode {
129129
class V8_EXPORT CpuProfile {
130130
public:
131131
/** Returns CPU profile title. */
132-
Handle<String> GetTitle() const;
132+
Local<String> GetTitle() const;
133133

134134
/** Returns the root node of the top down call tree. */
135135
const CpuProfileNode* GetTopDownRoot() const;
@@ -198,13 +198,13 @@ class V8_EXPORT CpuProfiler {
198198
* |record_samples| parameter controls whether individual samples should
199199
* be recorded in addition to the aggregated tree.
200200
*/
201-
void StartProfiling(Handle<String> title, bool record_samples = false);
201+
void StartProfiling(Local<String> title, bool record_samples = false);
202202

203203
/**
204204
* Stops collecting CPU profile with a given title and returns it.
205205
* If the title given is empty, finishes the last profile started.
206206
*/
207-
CpuProfile* StopProfiling(Handle<String> title);
207+
CpuProfile* StopProfiling(Local<String> title);
208208

209209
/**
210210
* Tells the profiler whether the embedder is idle.
@@ -246,7 +246,7 @@ class V8_EXPORT HeapGraphEdge {
246246
* Returns edge name. This can be a variable name, an element index, or
247247
* a property name.
248248
*/
249-
Handle<Value> GetName() const;
249+
Local<Value> GetName() const;
250250

251251
/** Returns origin node. */
252252
const HeapGraphNode* GetFromNode() const;
@@ -287,7 +287,7 @@ class V8_EXPORT HeapGraphNode {
287287
* of the constructor (for objects), the name of the function (for
288288
* closures), string value, or an empty string (for compiled code).
289289
*/
290-
Handle<String> GetName() const;
290+
Local<String> GetName() const;
291291

292292
/**
293293
* Returns node id. For the same heap object, the id remains the same
@@ -430,8 +430,8 @@ class V8_EXPORT HeapProfiler {
430430
* while the callback is running: only getters on the handle and
431431
* GetPointerFromInternalField on the objects are allowed.
432432
*/
433-
typedef RetainedObjectInfo* (*WrapperInfoCallback)
434-
(uint16_t class_id, Handle<Value> wrapper);
433+
typedef RetainedObjectInfo* (*WrapperInfoCallback)(uint16_t class_id,
434+
Local<Value> wrapper);
435435

436436
/** Returns the number of snapshots taken. */
437437
int GetSnapshotCount();
@@ -443,13 +443,13 @@ class V8_EXPORT HeapProfiler {
443443
* Returns SnapshotObjectId for a heap object referenced by |value| if
444444
* it has been seen by the heap profiler, kUnknownObjectId otherwise.
445445
*/
446-
SnapshotObjectId GetObjectId(Handle<Value> value);
446+
SnapshotObjectId GetObjectId(Local<Value> value);
447447

448448
/**
449449
* Returns heap object with given SnapshotObjectId if the object is alive,
450450
* otherwise empty handle is returned.
451451
*/
452-
Handle<Value> FindObjectById(SnapshotObjectId id);
452+
Local<Value> FindObjectById(SnapshotObjectId id);
453453

454454
/**
455455
* Clears internal map from SnapshotObjectId to heap object. The new objects
@@ -474,7 +474,8 @@ class V8_EXPORT HeapProfiler {
474474
* Returns name to be used in the heap snapshot for given node. Returned
475475
* string must stay alive until snapshot collection is completed.
476476
*/
477-
virtual const char* GetName(Handle<Object> object) = 0;
477+
virtual const char* GetName(Local<Object> object) = 0;
478+
478479
protected:
479480
virtual ~ObjectNameResolver() {}
480481
};

deps/v8/include/v8-version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
// system so their names cannot be changed without changing the scripts.
1111
#define V8_MAJOR_VERSION 4
1212
#define V8_MINOR_VERSION 5
13-
#define V8_BUILD_NUMBER 92
14-
#define V8_PATCH_LEVEL 0
13+
#define V8_BUILD_NUMBER 103
14+
#define V8_PATCH_LEVEL 6
1515

1616
// Use 1 for candidates and 0 otherwise.
1717
// (Boolean macro values are not supported by all preprocessors.)

0 commit comments

Comments
 (0)