File tree 2 files changed +0
-23
lines changed
2 files changed +0
-23
lines changed Original file line number Diff line number Diff line change 44
44
45
45
namespace node {
46
46
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
-
57
47
inline v8::Isolate* IsolateData::isolate () const {
58
48
return isolate_;
59
49
}
Original file line number Diff line number Diff line change @@ -112,19 +112,6 @@ class ModuleWrap;
112
112
class Environment ;
113
113
class Realm ;
114
114
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
-
128
115
struct IsolateDataSerializeInfo {
129
116
std::vector<SnapshotIndex> primitive_values;
130
117
std::vector<PropInfo> template_values;
You can’t perform that action at this time.
0 commit comments