OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
874 | 874 |
875 private: | 875 private: |
876 bool IsValidFrame(); | 876 bool IsValidFrame(); |
877 }; | 877 }; |
878 | 878 |
879 | 879 |
880 class SafeStackFrameIterator: public StackFrameIteratorBase { | 880 class SafeStackFrameIterator: public StackFrameIteratorBase { |
881 public: | 881 public: |
882 SafeStackFrameIterator(Isolate* isolate, | 882 SafeStackFrameIterator(Isolate* isolate, |
883 Address fp, Address sp, | 883 Address fp, Address sp, |
884 Address low_bound, Address high_bound); | 884 Address js_entry_sp); |
885 | 885 |
886 inline JavaScriptFrame* frame() const; | 886 inline JavaScriptFrame* frame() const; |
887 void Advance(); | 887 void Advance(); |
888 | 888 |
889 StackFrame::Type top_frame_type() const { return top_frame_type_; } | 889 StackFrame::Type top_frame_type() const { return top_frame_type_; } |
890 | 890 |
891 private: | 891 private: |
892 void AdvanceOneFrame(); | 892 void AdvanceOneFrame(); |
893 | 893 |
894 bool IsValidStackAddress(Address addr) const { | 894 bool IsValidStackAddress(Address addr) const { |
(...skipping 23 matching lines...) Expand all Loading... |
918 }; | 918 }; |
919 | 919 |
920 | 920 |
921 // Reads all frames on the current stack and copies them into the current | 921 // Reads all frames on the current stack and copies them into the current |
922 // zone memory. | 922 // zone memory. |
923 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); | 923 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); |
924 | 924 |
925 } } // namespace v8::internal | 925 } } // namespace v8::internal |
926 | 926 |
927 #endif // V8_FRAMES_H_ | 927 #endif // V8_FRAMES_H_ |
OLD | NEW |