OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
695 | 695 |
696 | 696 |
697 // Iterator that supports iterating through all JavaScript frames. | 697 // Iterator that supports iterating through all JavaScript frames. |
698 template<typename Iterator> | 698 template<typename Iterator> |
699 class JavaScriptFrameIteratorTemp BASE_EMBEDDED { | 699 class JavaScriptFrameIteratorTemp BASE_EMBEDDED { |
700 public: | 700 public: |
701 JavaScriptFrameIteratorTemp() { if (!done()) Advance(); } | 701 JavaScriptFrameIteratorTemp() { if (!done()) Advance(); } |
702 | 702 |
703 inline explicit JavaScriptFrameIteratorTemp(Isolate* isolate); | 703 inline explicit JavaScriptFrameIteratorTemp(Isolate* isolate); |
704 | 704 |
| 705 inline JavaScriptFrameIteratorTemp(Isolate* isolate, ThreadLocalTop* top); |
| 706 |
705 // Skip frames until the frame with the given id is reached. | 707 // Skip frames until the frame with the given id is reached. |
706 explicit JavaScriptFrameIteratorTemp(StackFrame::Id id) { AdvanceToId(id); } | 708 explicit JavaScriptFrameIteratorTemp(StackFrame::Id id) { AdvanceToId(id); } |
707 | 709 |
708 inline JavaScriptFrameIteratorTemp(Isolate* isolate, StackFrame::Id id); | 710 inline JavaScriptFrameIteratorTemp(Isolate* isolate, StackFrame::Id id); |
709 | 711 |
710 JavaScriptFrameIteratorTemp(Address fp, | 712 JavaScriptFrameIteratorTemp(Address fp, |
711 Address sp, | 713 Address sp, |
712 Address low_bound, | 714 Address low_bound, |
713 Address high_bound) : | 715 Address high_bound) : |
714 iterator_(fp, sp, low_bound, high_bound) { | 716 iterator_(fp, sp, low_bound, high_bound) { |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
865 }; | 867 }; |
866 | 868 |
867 | 869 |
868 // Reads all frames on the current stack and copies them into the current | 870 // Reads all frames on the current stack and copies them into the current |
869 // zone memory. | 871 // zone memory. |
870 Vector<StackFrame*> CreateStackMap(); | 872 Vector<StackFrame*> CreateStackMap(); |
871 | 873 |
872 } } // namespace v8::internal | 874 } } // namespace v8::internal |
873 | 875 |
874 #endif // V8_FRAMES_H_ | 876 #endif // V8_FRAMES_H_ |
OLD | NEW |