Skip to content

Commit

Permalink
deps: update v8 to 4.5.103
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
ofrobots committed Jul 16, 2015
1 parent 4ff8f37 commit a6b6295
Show file tree
Hide file tree
Showing 303 changed files with 11,641 additions and 6,671 deletions.
11 changes: 9 additions & 2 deletions deps/v8/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ action("js2c") {
"src/mirror-debugger.js",
"src/liveedit-debugger.js",
"src/templates.js",
"src/harmony-array.js",
"src/harmony-typedarray.js",
]

outputs = [
Expand Down Expand Up @@ -270,9 +272,8 @@ action("js2c_experimental") {
"src/proxy.js",
"src/generator.js",
"src/harmony-atomics.js",
"src/harmony-array.js",
"src/harmony-array-includes.js",
"src/harmony-typedarray.js",
"src/harmony-concat-spreadable.js",
"src/harmony-tostring.js",
"src/harmony-regexp.js",
"src/harmony-reflect.js",
Expand Down Expand Up @@ -672,6 +673,8 @@ source_set("v8_base") {
"src/compiler/js-builtin-reducer.h",
"src/compiler/js-context-specialization.cc",
"src/compiler/js-context-specialization.h",
"src/compiler/js-frame-specialization.cc",
"src/compiler/js-frame-specialization.h",
"src/compiler/js-generic-lowering.cc",
"src/compiler/js-generic-lowering.h",
"src/compiler/js-graph.cc",
Expand Down Expand Up @@ -729,6 +732,8 @@ source_set("v8_base") {
"src/compiler/pipeline.h",
"src/compiler/pipeline-statistics.cc",
"src/compiler/pipeline-statistics.h",
"src/compiler/raw-machine-assembler.cc",
"src/compiler/raw-machine-assembler.h",
"src/compiler/register-allocator.cc",
"src/compiler/register-allocator.h",
"src/compiler/register-allocator-verifier.cc",
Expand Down Expand Up @@ -855,6 +860,8 @@ source_set("v8_base") {
"src/heap/mark-compact-inl.h",
"src/heap/mark-compact.cc",
"src/heap/mark-compact.h",
"src/heap/memory-reducer.cc",
"src/heap/memory-reducer.h",
"src/heap/objects-visiting-inl.h",
"src/heap/objects-visiting.cc",
"src/heap/objects-visiting.h",
Expand Down
63 changes: 63 additions & 0 deletions deps/v8/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,66 @@
2015-07-08: Version 4.5.103

Performance and stability improvements on all platforms.


2015-07-08: Version 4.5.102

Performance and stability improvements on all platforms.


2015-07-07: Version 4.5.101

Move compatible receiver check from CompileHandler to UpdateCaches
(Chromium issue 505374).

Performance and stability improvements on all platforms.


2015-07-07: Version 4.5.100

Performance and stability improvements on all platforms.


2015-07-07: Version 4.5.99

unicode-decoder: fix out-of-band write in utf16 (issue 4274).

Performance and stability improvements on all platforms.


2015-07-06: Version 4.5.98

Performance and stability improvements on all platforms.


2015-07-04: Version 4.5.97

Performance and stability improvements on all platforms.


2015-07-03: Version 4.5.96

Performance and stability improvements on all platforms.


2015-07-03: Version 4.5.95

Performance and stability improvements on all platforms.


2015-07-02: Version 4.5.94

Performance and stability improvements on all platforms.


2015-07-02: Version 4.5.93

Include Harmony Array/TypedArray methods unconditionally (Chromium issue
504629).

Performance and stability improvements on all platforms.


2015-07-02: Version 4.5.92

Performance and stability improvements on all platforms.
Expand Down
2 changes: 1 addition & 1 deletion deps/v8/DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ deps = {
"v8/build/gyp":
Var("git_url") + "/external/gyp.git" + "@" + "5122240c5e5c4d8da12c543d82b03d6089eb77c5",
"v8/third_party/icu":
Var("git_url") + "/chromium/deps/icu.git" + "@" + "1b697da5c2c0112e2b70e7e75d3e3d985f464a8f",
Var("git_url") + "/chromium/deps/icu.git" + "@" + "c81a1a3989c3b66fa323e9a6ee7418d7c08297af",
"v8/buildtools":
Var("git_url") + "/chromium/buildtools.git" + "@" + "ecc8e253abac3b6186a97573871a084f4c0ca3ae",
"v8/testing/gtest":
Expand Down
4 changes: 2 additions & 2 deletions deps/v8/build/features.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
['v8_enable_i18n_support==1', {
'defines': ['V8_I18N_SUPPORT',],
}],
['v8_use_external_startup_data==1', {
['v8_use_snapshot=="true" and v8_use_external_startup_data==1', {
'defines': ['V8_USE_EXTERNAL_STARTUP_DATA',],
}],
['dcheck_always_on!=0', {
Expand All @@ -108,7 +108,7 @@
'DebugBaseCommon': {
'abstract': 1,
'variables': {
'v8_enable_handle_zapping%': 1,
'v8_enable_handle_zapping%': 0,
},
'conditions': [
['v8_enable_handle_zapping==1', {
Expand Down
30 changes: 15 additions & 15 deletions deps/v8/include/v8-debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,20 @@ class V8_EXPORT Debug {
* callbacks as their content becomes invalid. These objects are from the
* debugger event that started the debug message loop.
*/
virtual Handle<Object> GetExecutionState() const = 0;
virtual Handle<Object> GetEventData() const = 0;
virtual Local<Object> GetExecutionState() const = 0;
virtual Local<Object> GetEventData() const = 0;

/**
* Get the debugger protocol JSON.
*/
virtual Handle<String> GetJSON() const = 0;
virtual Local<String> GetJSON() const = 0;

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

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

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

/**
* Client data passed with the corresponding callback when it was
* registered.
*/
virtual Handle<Value> GetCallbackData() const = 0;
virtual Local<Value> GetCallbackData() const = 0;

/**
* Client data passed to DebugBreakForCommand function. The
Expand Down Expand Up @@ -156,7 +156,7 @@ class V8_EXPORT Debug {
typedef void (*DebugMessageDispatchHandler)();

static bool SetDebugEventListener(EventCallback that,
Handle<Value> data = Handle<Value>());
Local<Value> data = Local<Value>());

// Schedule a debugger break to happen when JavaScript code is run
// in the given isolate.
Expand Down Expand Up @@ -196,20 +196,20 @@ class V8_EXPORT Debug {
*/
static V8_DEPRECATE_SOON(
"Use maybe version",
Local<Value> Call(v8::Handle<v8::Function> fun,
Handle<Value> data = Handle<Value>()));
Local<Value> Call(v8::Local<v8::Function> fun,
Local<Value> data = Local<Value>()));
// TODO(dcarney): data arg should be a MaybeLocal
static MaybeLocal<Value> Call(Local<Context> context,
v8::Handle<v8::Function> fun,
Handle<Value> data = Handle<Value>());
v8::Local<v8::Function> fun,
Local<Value> data = Local<Value>());

/**
* Returns a mirror object for the given object.
*/
static V8_DEPRECATE_SOON("Use maybe version",
Local<Value> GetMirror(v8::Handle<v8::Value> obj));
Local<Value> GetMirror(v8::Local<v8::Value> obj));
static MaybeLocal<Value> GetMirror(Local<Context> context,
v8::Handle<v8::Value> obj);
v8::Local<v8::Value> obj);

/**
* Makes V8 process all pending debug messages.
Expand Down
25 changes: 13 additions & 12 deletions deps/v8/include/v8-profiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ class V8_EXPORT CpuProfileNode {
};

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

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

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

/**
* Returns the number, 1-based, of the line where the function originates.
Expand Down Expand Up @@ -129,7 +129,7 @@ class V8_EXPORT CpuProfileNode {
class V8_EXPORT CpuProfile {
public:
/** Returns CPU profile title. */
Handle<String> GetTitle() const;
Local<String> GetTitle() const;

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

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

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

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

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

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

/**
* Returns heap object with given SnapshotObjectId if the object is alive,
* otherwise empty handle is returned.
*/
Handle<Value> FindObjectById(SnapshotObjectId id);
Local<Value> FindObjectById(SnapshotObjectId id);

/**
* Clears internal map from SnapshotObjectId to heap object. The new objects
Expand All @@ -474,7 +474,8 @@ class V8_EXPORT HeapProfiler {
* Returns name to be used in the heap snapshot for given node. Returned
* string must stay alive until snapshot collection is completed.
*/
virtual const char* GetName(Handle<Object> object) = 0;
virtual const char* GetName(Local<Object> object) = 0;

protected:
virtual ~ObjectNameResolver() {}
};
Expand Down
4 changes: 2 additions & 2 deletions deps/v8/include/v8-version.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
// system so their names cannot be changed without changing the scripts.
#define V8_MAJOR_VERSION 4
#define V8_MINOR_VERSION 5
#define V8_BUILD_NUMBER 92
#define V8_PATCH_LEVEL 0
#define V8_BUILD_NUMBER 103
#define V8_PATCH_LEVEL 6

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

0 comments on commit a6b6295

Please sign in to comment.