Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/snapshot/deserializer-allocator.cc')
-rw-r--r--deps/v8/src/snapshot/deserializer-allocator.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/deps/v8/src/snapshot/deserializer-allocator.cc b/deps/v8/src/snapshot/deserializer-allocator.cc
index e58e7b66aca..a3d3eca7114 100644
--- a/deps/v8/src/snapshot/deserializer-allocator.cc
+++ b/deps/v8/src/snapshot/deserializer-allocator.cc
@@ -5,6 +5,7 @@
#include "src/snapshot/deserializer-allocator.h"
#include "src/heap/heap-inl.h" // crbug.com/v8/8499
+#include "src/heap/memory-chunk.h"
namespace v8 {
namespace internal {
@@ -84,7 +85,8 @@ Address DeserializerAllocator::Allocate(SnapshotSpace space, int size) {
DCHECK(ReadOnlyRoots(heap_).free_space_map().IsMap());
DCHECK(ReadOnlyRoots(heap_).one_pointer_filler_map().IsMap());
DCHECK(ReadOnlyRoots(heap_).two_pointer_filler_map().IsMap());
- obj = heap_->AlignWithFiller(obj, size, reserved, next_alignment_);
+ obj = Heap::AlignWithFiller(ReadOnlyRoots(heap_), obj, size, reserved,
+ next_alignment_);
address = obj.address();
next_alignment_ = kWordAligned;
return address;