| Index: src/zone/zone-segment.cc
|
| diff --git a/src/base/file-utils.h b/src/zone/zone-segment.cc
|
| similarity index 52%
|
| copy from src/base/file-utils.h
|
| copy to src/zone/zone-segment.cc
|
| index ce9e9a1c41cb2876f363d5093585cbe3947f402d..1fa49d49ba8b328b86fc5d9e147edcc5060e7e4b 100644
|
| --- a/src/base/file-utils.h
|
| +++ b/src/zone/zone-segment.cc
|
| @@ -2,17 +2,22 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef V8_FILE_UTILS_H_
|
| -#define V8_FILE_UTILS_H_
|
| +#include "src/zone/zone-segment.h"
|
|
|
| namespace v8 {
|
| namespace internal {
|
|
|
| -// Helper functions to manipulate file paths.
|
| +void Segment::ZapContents() {
|
| +#ifdef DEBUG
|
| + memset(start(), kZapDeadByte, capacity());
|
| +#endif
|
| +}
|
|
|
| -char* RelativePath(char** buffer, const char* exec_path, const char* name);
|
| +void Segment::ZapHeader() {
|
| +#ifdef DEBUG
|
| + memset(this, kZapDeadByte, sizeof(Segment));
|
| +#endif
|
| +}
|
|
|
| } // namespace internal
|
| } // namespace v8
|
| -
|
| -#endif // V8_FILE_UTILS_H_
|
|
|