@@ -5218,7 +5218,8 @@ class V8_EXPORT SharedArrayBuffer : public Object {
52185218 allocation_length_(0 ),
52195219 allocation_mode_(Allocator::AllocationMode::kNormal ),
52205220 deleter_(nullptr ),
5221- deleter_data_(nullptr ) {}
5221+ deleter_data_(nullptr ),
5222+ is_growable_(false ) {}
52225223
52235224 void * AllocationBase () const { return allocation_base_; }
52245225 size_t AllocationLength () const { return allocation_length_; }
@@ -5230,12 +5231,13 @@ class V8_EXPORT SharedArrayBuffer : public Object {
52305231 size_t ByteLength () const { return byte_length_; }
52315232 DeleterCallback Deleter () const { return deleter_; }
52325233 void * DeleterData () const { return deleter_data_; }
5234+ bool IsGrowable () const { return is_growable_; }
52335235
52345236 private:
52355237 Contents (void * data, size_t byte_length, void * allocation_base,
52365238 size_t allocation_length,
52375239 Allocator::AllocationMode allocation_mode, DeleterCallback deleter,
5238- void * deleter_data);
5240+ void * deleter_data, bool is_growable );
52395241
52405242 void * data_;
52415243 size_t byte_length_;
@@ -5244,6 +5246,7 @@ class V8_EXPORT SharedArrayBuffer : public Object {
52445246 Allocator::AllocationMode allocation_mode_;
52455247 DeleterCallback deleter_;
52465248 void * deleter_data_;
5249+ bool is_growable_;
52475250
52485251 friend class SharedArrayBuffer ;
52495252 };
@@ -6900,8 +6903,7 @@ class V8_EXPORT MicrotaskQueue {
69006903 /* *
69016904 * Creates an empty MicrotaskQueue instance.
69026905 */
6903- static std::unique_ptr<MicrotaskQueue> New (
6904- Isolate* isolate, MicrotasksPolicy policy = MicrotasksPolicy::kAuto );
6906+ static std::unique_ptr<MicrotaskQueue> New (Isolate* isolate);
69056907
69066908 virtual ~MicrotaskQueue () = default ;
69076909
@@ -6949,15 +6951,6 @@ class V8_EXPORT MicrotaskQueue {
69496951 */
69506952 virtual bool IsRunningMicrotasks () const = 0;
69516953
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-
69616954 private:
69626955 friend class internal ::MicrotaskQueue;
69636956 MicrotaskQueue () = default ;
0 commit comments