Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Unified Diff: src/zone/zone-segment.cc

Issue 2377943003: Fixed zapping of contents (Closed)
Patch Set: Reaction to comments Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/zone/zone.cc ('K') | « src/zone/zone-segment.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/zone/zone-segment.cc
diff --git a/src/builtins/builtins-iterator.cc b/src/zone/zone-segment.cc
similarity index 52%
copy from src/builtins/builtins-iterator.cc
copy to src/zone/zone-segment.cc
index 7b91e364eb2cfd22517a9157f0a235acc9bdd046..f63b530667a52723df7742cedefdded4603af882 100644
--- a/src/builtins/builtins-iterator.cc
+++ b/src/zone/zone-segment.cc
@@ -2,16 +2,21 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "src/builtins/builtins.h"
-#include "src/builtins/builtins-utils.h"
+#include "src/zone/zone-segment.h"
namespace v8 {
namespace internal {
-void Builtins::Generate_IteratorPrototypeIterator(
- CodeStubAssembler* assembler) {
- assembler->Return(assembler->Parameter(0));
+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
« src/zone/zone.cc ('K') | « src/zone/zone-segment.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698