| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8a16f80 commit da3459b
5 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -38,7 +38,7 @@ | |||
| 38 | 38 | ||
| 39 | 39 | # Reset this number to 0 on major V8 upgrades. | |
| 40 | 40 | # Increment by one for each non-official patch applied to deps/v8. | |
| 41 | - 'v8_embedder_string': '-node.17', | ||
| 41 | + 'v8_embedder_string': '-node.18', | ||
| 42 | 42 | ||
| 43 | 43 | ##### V8 defaults for Node.js ##### | |
| 44 | 44 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5218,7 +5218,8 @@ class V8_EXPORT SharedArrayBuffer : public Object { | |||
| 5218 | 5218 | allocation_length_(0), | |
| 5219 | 5219 | allocation_mode_(Allocator::AllocationMode::kNormal), | |
| 5220 | 5220 | deleter_(nullptr), | |
| 5221 | - deleter_data_(nullptr) {} | ||
| 5221 | + deleter_data_(nullptr), | ||
| 5222 | + is_growable_(false) {} | ||
| 5222 | 5223 | ||
| 5223 | 5224 | void* AllocationBase() const { return allocation_base_; } | |
| 5224 | 5225 | size_t AllocationLength() const { return allocation_length_; } | |
@@ -5230,12 +5231,13 @@ class V8_EXPORT SharedArrayBuffer : public Object { | |||
| 5230 | 5231 | size_t ByteLength() const { return byte_length_; } | |
| 5231 | 5232 | DeleterCallback Deleter() const { return deleter_; } | |
| 5232 | 5233 | void* DeleterData() const { return deleter_data_; } | |
| 5234 | + bool IsGrowable() const { return is_growable_; } | ||
| 5233 | 5235 | ||
| 5234 | 5236 | private: | |
| 5235 | 5237 | Contents(void* data, size_t byte_length, void* allocation_base, | |
| 5236 | 5238 | size_t allocation_length, | |
| 5237 | 5239 | Allocator::AllocationMode allocation_mode, DeleterCallback deleter, | |
| 5238 | - void* deleter_data); | ||
| 5240 | + void* deleter_data, bool is_growable); | ||
| 5239 | 5241 | ||
| 5240 | 5242 | void* data_; | |
| 5241 | 5243 | size_t byte_length_; | |
@@ -5244,6 +5246,7 @@ class V8_EXPORT SharedArrayBuffer : public Object { | |||
| 5244 | 5246 | Allocator::AllocationMode allocation_mode_; | |
| 5245 | 5247 | DeleterCallback deleter_; | |
| 5246 | 5248 | void* deleter_data_; | |
| 5249 | + bool is_growable_; | ||
| 5247 | 5250 | ||
| 5248 | 5251 | friend class SharedArrayBuffer; | |
| 5249 | 5252 | }; | |
@@ -6900,8 +6903,7 @@ class V8_EXPORT MicrotaskQueue { | |||
| 6900 | 6903 | /** | |
| 6901 | 6904 | * Creates an empty MicrotaskQueue instance. | |
| 6902 | 6905 | */ | |
| 6903 | - static std::unique_ptr<MicrotaskQueue> New( | ||
| 6904 | - Isolate* isolate, MicrotasksPolicy policy = MicrotasksPolicy::kAuto); | ||
| 6906 | + static std::unique_ptr<MicrotaskQueue> New(Isolate* isolate); | ||
| 6905 | 6907 | ||
| 6906 | 6908 | virtual ~MicrotaskQueue() = default; | |
| 6907 | 6909 | ||
@@ -6949,15 +6951,6 @@ class V8_EXPORT MicrotaskQueue { | |||
| 6949 | 6951 | */ | |
| 6950 | 6952 | virtual bool IsRunningMicrotasks() const = 0; | |
| 6951 | 6953 | ||
| 6952 | - /** | ||
| 6953 | - * Returns the current depth of nested MicrotasksScope that has | ||
| 6954 | - * kRunMicrotasks. | ||
| 6955 | - */ | ||
| 6956 | - virtual int GetMicrotasksScopeDepth() const = 0; | ||
| 6957 | - | ||
| 6958 | - MicrotaskQueue(const MicrotaskQueue&) = delete; | ||
| 6959 | - MicrotaskQueue& operator=(const MicrotaskQueue&) = delete; | ||
| 6960 | - | ||
| 6961 | 6954 | private: | |
| 6962 | 6955 | friend class internal::MicrotaskQueue; | |
| 6963 | 6956 | MicrotaskQueue() = default; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7471,14 +7471,15 @@ v8::SharedArrayBuffer::Contents v8::SharedArrayBuffer::Externalize() { | |||
| 7471 | 7471 | v8::SharedArrayBuffer::Contents::Contents( | |
| 7472 | 7472 | void* data, size_t byte_length, void* allocation_base, | |
| 7473 | 7473 | size_t allocation_length, Allocator::AllocationMode allocation_mode, | |
| 7474 | - DeleterCallback deleter, void* deleter_data) | ||
| 7474 | + DeleterCallback deleter, void* deleter_data, bool is_growable) | ||
| 7475 | 7475 | : data_(data), | |
| 7476 | 7476 | byte_length_(byte_length), | |
| 7477 | 7477 | allocation_base_(allocation_base), | |
| 7478 | 7478 | allocation_length_(allocation_length), | |
| 7479 | 7479 | allocation_mode_(allocation_mode), | |
| 7480 | 7480 | deleter_(deleter), | |
| 7481 | - deleter_data_(deleter_data) { | ||
| 7481 | + deleter_data_(deleter_data), | ||
| 7482 | + is_growable_(is_growable) { | ||
| 7482 | 7483 | DCHECK_LE(allocation_base_, data_); | |
| 7483 | 7484 | DCHECK_LE(byte_length_, allocation_length_); | |
| 7484 | 7485 | } | |
@@ -7496,7 +7497,8 @@ v8::SharedArrayBuffer::Contents v8::SharedArrayBuffer::GetContents() { | |||
| 7496 | 7497 | : reinterpret_cast<Contents::DeleterCallback>(ArrayBufferDeleter), | |
| 7497 | 7498 | self->is_wasm_memory() | |
| 7498 | 7499 | ? static_cast<void*>(self->GetIsolate()->wasm_engine()) | |
| 7499 | - : static_cast<void*>(self->GetIsolate()->array_buffer_allocator())); | ||
| 7500 | + : static_cast<void*>(self->GetIsolate()->array_buffer_allocator()), | ||
| 7501 | + false); | ||
| 7500 | 7502 | return contents; | |
| 7501 | 7503 | } | |
| 7502 | 7504 | ||
@@ -8673,13 +8675,8 @@ void v8::Isolate::LocaleConfigurationChangeNotification() { | |||
| 8673 | 8675 | } | |
| 8674 | 8676 | ||
| 8675 | 8677 | // static | |
| 8676 | - std::unique_ptr<MicrotaskQueue> MicrotaskQueue::New(Isolate* isolate, | ||
| 8677 | - MicrotasksPolicy policy) { | ||
| 8678 | - auto microtask_queue = | ||
| 8679 | - i::MicrotaskQueue::New(reinterpret_cast<i::Isolate*>(isolate)); | ||
| 8680 | - microtask_queue->set_microtasks_policy(policy); | ||
| 8681 | - std::unique_ptr<MicrotaskQueue> ret(std::move(microtask_queue)); | ||
| 8682 | - return ret; | ||
| 8678 | + std::unique_ptr<MicrotaskQueue> MicrotaskQueue::New(Isolate* isolate) { | ||
| 8679 | + return i::MicrotaskQueue::New(reinterpret_cast<i::Isolate*>(isolate)); | ||
| 8683 | 8680 | } | |
| 8684 | 8681 | ||
| 8685 | 8682 | MicrotasksScope::MicrotasksScope(Isolate* isolate, MicrotasksScope::Type type) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -214,10 +214,6 @@ void MicrotaskQueue::IterateMicrotasks(RootVisitor* visitor) { | |||
| 214 | 214 | } | |
| 215 | 215 | } | |
| 216 | 216 | ||
| 217 | - int MicrotaskQueue::GetMicrotasksScopeDepth() const { | ||
| 218 | - return microtasks_depth_; | ||
| 219 | - } | ||
| 220 | - | ||
| 221 | 217 | void MicrotaskQueue::AddMicrotasksCompletedCallback( | |
| 222 | 218 | MicrotasksCompletedCallbackWithData callback, void* data) { | |
| 223 | 219 | CallbackWithData callback_with_data(callback, data); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -62,7 +62,7 @@ class V8_EXPORT_PRIVATE MicrotaskQueue final : public v8::MicrotaskQueue { | |||
| 62 | 62 | // invocation, which happens when depth reaches zero. | |
| 63 | 63 | void IncrementMicrotasksScopeDepth() { ++microtasks_depth_; } | |
| 64 | 64 | void DecrementMicrotasksScopeDepth() { --microtasks_depth_; } | |
| 65 | - int GetMicrotasksScopeDepth() const override; | ||
| 65 | + int GetMicrotasksScopeDepth() const { return microtasks_depth_; } | ||
| 66 | 66 | ||
| 67 | 67 | // Possibly nested microtasks suppression scopes prevent microtasks | |
| 68 | 68 | // from running. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments