File tree Expand file tree Collapse file tree 2 files changed +0
-23
lines changed Expand file tree Collapse file tree 2 files changed +0
-23
lines changed Original file line number Diff line number Diff line change 4444
4545namespace  node  {
4646
47- NoArrayBufferZeroFillScope::NoArrayBufferZeroFillScope (
48-     IsolateData* isolate_data)
49-     : node_allocator_(isolate_data->node_allocator ()) {
50-   if  (node_allocator_ != nullptr ) node_allocator_->zero_fill_field ()[0 ] = 0 ;
51- }
52- 
53- NoArrayBufferZeroFillScope::~NoArrayBufferZeroFillScope () {
54-   if  (node_allocator_ != nullptr ) node_allocator_->zero_fill_field ()[0 ] = 1 ;
55- }
56- 
5747inline  v8::Isolate* IsolateData::isolate () const  {
5848  return  isolate_;
5949}
Original file line number Diff line number Diff line change @@ -112,19 +112,6 @@ class ModuleWrap;
112112class  Environment ;
113113class  Realm ;
114114
115- //  Disables zero-filling for ArrayBuffer allocations in this scope. This is
116- //  similar to how we implement Buffer.allocUnsafe() in JS land.
117- class  NoArrayBufferZeroFillScope  {
118-  public: 
119-   inline  explicit  NoArrayBufferZeroFillScope (IsolateData* isolate_data);
120-   inline  ~NoArrayBufferZeroFillScope ();
121- 
122-  private: 
123-   NodeArrayBufferAllocator* node_allocator_;
124- 
125-   friend  class  Environment ;
126- };
127- 
128115struct  IsolateDataSerializeInfo  {
129116  std::vector<SnapshotIndex> primitive_values;
130117  std::vector<PropInfo> template_values;
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments