summaryrefslogtreecommitdiff
path: root/deps/v8/src/zone/zone-segment.cc
blob: f63b530667a52723df7742cedefdded4603af882 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright 2016 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "src/zone/zone-segment.h"

namespace v8 {
namespace internal {

void Segment::ZapContents() {
#ifdef DEBUG
  memset(start(), kZapDeadByte, capacity());
#endif
}

void Segment::ZapHeader() {
#ifdef DEBUG
  memset(this, kZapDeadByte, sizeof(Segment));
#endif
}
}  // namespace internal
}  // namespace v8