deps: V8: cherry-pick d3308d0 · nodejs/node@bea1a38 (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Commit bea1a38
File tree
4 files changed
lines changed
4 files changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -37,7 +37,7 @@ | ||
37 | 37 | |
38 | 38 | # Reset this number to 0 on major V8 upgrades. |
39 | 39 | # Increment by one for each non-official patch applied to deps/v8. |
40 | -'v8_embedder_string': '-node.2', | |
40 | +'v8_embedder_string': '-node.3', | |
41 | 41 | |
42 | 42 | ##### V8 defaults for Node.js ##### |
43 | 43 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -7700,6 +7700,9 @@ class V8_EXPORT Isolate { | ||
7700 | 7700 | */ |
7701 | 7701 | void SetIdle(bool is_idle); |
7702 | 7702 | |
7703 | +/** Returns the ArrayBuffer::Allocator used in this isolate. */ | |
7704 | + ArrayBuffer::Allocator* GetArrayBufferAllocator(); | |
7705 | + | |
7703 | 7706 | /** Returns true if this isolate has a current context. */ |
7704 | 7707 | bool InContext(); |
7705 | 7708 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -7970,6 +7970,11 @@ void Isolate::SetIdle(bool is_idle) { | ||
7970 | 7970 | isolate->SetIdle(is_idle); |
7971 | 7971 | } |
7972 | 7972 | |
7973 | +ArrayBuffer::Allocator* Isolate::GetArrayBufferAllocator() { | |
7974 | + i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this); | |
7975 | +return isolate->array_buffer_allocator(); | |
7976 | +} | |
7977 | + | |
7973 | 7978 | bool Isolate::InContext() { |
7974 | 7979 | i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this); |
7975 | 7980 | return !isolate->context().is_null(); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -20620,6 +20620,7 @@ TEST(IsolateNewDispose) { | ||
20620 | 20620 | CHECK_NOT_NULL(isolate); |
20621 | 20621 | CHECK(current_isolate != isolate); |
20622 | 20622 | CHECK(current_isolate == CcTest::isolate()); |
20623 | + CHECK(isolate->GetArrayBufferAllocator() == CcTest::array_buffer_allocator()); | |
20623 | 20624 | |
20624 | 20625 | isolate->SetFatalErrorHandler(StoringErrorCallback); |
20625 | 20626 | last_location = last_message = nullptr; |