| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_FRAMES_H_ | 5 #ifndef V8_FRAMES_H_ |
| 6 #define V8_FRAMES_H_ | 6 #define V8_FRAMES_H_ |
| 7 | 7 |
| 8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/flags.h" | 9 #include "src/flags.h" |
| 10 #include "src/handles.h" | 10 #include "src/handles.h" |
| (...skipping 1588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1599 | 1599 |
| 1600 private: | 1600 private: |
| 1601 StackFrameIterator iterator_; | 1601 StackFrameIterator iterator_; |
| 1602 }; | 1602 }; |
| 1603 | 1603 |
| 1604 | 1604 |
| 1605 // Reads all frames on the current stack and copies them into the current | 1605 // Reads all frames on the current stack and copies them into the current |
| 1606 // zone memory. | 1606 // zone memory. |
| 1607 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); | 1607 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); |
| 1608 | 1608 |
| 1609 #ifdef DEBUG |
| 1610 // Walks the stack, finds sections belonging to C++ frames, looks for values |
| 1611 // that look like heap pointers inside them, and zaps them. Intended to flush |
| 1612 // out GC safety issues; only call this when the program must be prepared for |
| 1613 // GC to happen. |
| 1614 void ZapHeapPointersInCppFrames(Isolate* isolate, ThreadLocalTop* t = NULL); |
| 1615 #endif |
| 1616 |
| 1609 } // namespace internal | 1617 } // namespace internal |
| 1610 } // namespace v8 | 1618 } // namespace v8 |
| 1611 | 1619 |
| 1612 #endif // V8_FRAMES_H_ | 1620 #endif // V8_FRAMES_H_ |
| OLD | NEW |