Update common/v8/array_buffer.patch

This commit is contained in:
Aleksei Kuzmin 2018-03-27 20:18:24 +03:00
Родитель 0e2dcbbc73
Коммит 2bd97cef62
1 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -1,10 +1,10 @@
diff --git a/include/v8.h b/include/v8.h
index baf44170f0..88cf5c7a91 100644
index 277cbd442a..49c9f7c9a6 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -6967,6 +6967,9 @@ class V8_EXPORT Isolate {
V8_DEPRECATE_SOON("CpuProfiler should be created with CpuProfiler::New call.",
CpuProfiler* GetCpuProfiler());
@@ -7281,6 +7281,9 @@ class V8_EXPORT Isolate {
V8_DEPRECATED("CpuProfiler should be created with CpuProfiler::New call.",
CpuProfiler* GetCpuProfiler());
+ /** Returns the ArrayBuffer::Allocator used in this isolate. */
+ ArrayBuffer::Allocator* GetArrayBufferAllocator();
@ -13,10 +13,10 @@ index baf44170f0..88cf5c7a91 100644
bool InContext();
diff --git a/src/api.cc b/src/api.cc
index beefd61bdb..09ed5e0af8 100644
index 8531cd5c05..fc0d96c74a 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -8121,6 +8121,12 @@ CpuProfiler* Isolate::GetCpuProfiler() {
@@ -8076,6 +8076,12 @@ CpuProfiler* Isolate::GetCpuProfiler() {
}
@ -28,4 +28,4 @@ index beefd61bdb..09ed5e0af8 100644
+
bool Isolate::InContext() {
i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this);
return isolate->context() != NULL;
return isolate->context() != nullptr;