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 |