Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Commit

Permalink
Update V8 patch for node 8.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
hferreiro committed Sep 11, 2017
1 parent 2f2afab commit 65625a2
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions patches/v8/filter.patch
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,37 @@ index 494ba22f2934d6418f36afc471c47f431bf5d7b1..b3025def092496e14a067efaa193d456
defines = [ "BUILDING_V8_SHARED" ]
}
}
diff --git a/include/v8.h b/include/v8.h
index 3d5e823cde7b8578085e6e9524058e0d44c25b1a..129a601cd89bcfcaeef6c359084774b8fb6ba782 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -7148,6 +7148,9 @@ class V8_EXPORT Isolate {
V8_DEPRECATE_SOON("CpuProfiler should be created with CpuProfiler::New call.",
CpuProfiler* GetCpuProfiler());

+ /** Returns the ArrayBuffer::Allocator used in this isolate. */
+ ArrayBuffer::Allocator* GetArrayBufferAllocator();
+
/** Returns true if this isolate has a current context. */
bool InContext();

diff --git a/src/api.cc b/src/api.cc
index 10d44feeb02106eccead280ac3bf16cd3b473fc1..ec1d583ea7d4b79889226d6bff6775888e05f43b 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -8262,6 +8262,12 @@ CpuProfiler* Isolate::GetCpuProfiler() {
}


+ArrayBuffer::Allocator* Isolate::GetArrayBufferAllocator() {
+ i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this);
+ return isolate->array_buffer_allocator();
+}
+
+
bool Isolate::InContext() {
i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this);
return isolate->context() != NULL;
diff --git a/src/profiler/profiler-listener.cc b/src/profiler/profiler-listener.cc
index 169b12da0770c12b24d5881a85b87853668437cc..fe9ec80a86a506bfd989c781e71c35bc12e5bef2 100644
--- a/src/profiler/profiler-listener.cc
Expand Down

0 comments on commit 65625a2

Please sign in to comment.