v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
zone-segment.cc
Go to the documentation of this file.
1// Copyright 2016 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
6
8
9namespace v8 {
10namespace internal {
11
13#ifdef DEBUG
14 memset(reinterpret_cast<void*>(start()), kZapDeadByte, capacity());
15#endif
17}
18
20#ifdef DEBUG
21 memset(this, kZapDeadByte, sizeof(Segment));
22#endif
24}
25
26} // namespace internal
27} // namespace v8
Address start() const
size_t capacity() const
#define MSAN_ALLOCATED_UNINITIALIZED_MEMORY(start, size)
Definition msan.h:29