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 "allocation.h" | 8 #include "allocation.h" |
9 #include "handles.h" | 9 #include "handles.h" |
10 #include "safepoint-table.h" | 10 #include "safepoint-table.h" |
(...skipping 912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
923 | 923 |
924 // Find the nth JavaScript frame on the stack. The caller must | 924 // Find the nth JavaScript frame on the stack. The caller must |
925 // guarantee that such a frame exists. | 925 // guarantee that such a frame exists. |
926 JavaScriptFrame* FindJavaScriptFrame(int n); | 926 JavaScriptFrame* FindJavaScriptFrame(int n); |
927 | 927 |
928 private: | 928 private: |
929 StackFrameIterator iterator_; | 929 StackFrameIterator iterator_; |
930 }; | 930 }; |
931 | 931 |
932 | 932 |
933 // Used specify the type of prologue to generate. | |
934 enum PrologueFrameMode { | |
935 BUILD_FUNCTION_FRAME, | |
936 BUILD_STUB_FRAME | |
937 }; | |
938 | |
939 | |
940 // Reads all frames on the current stack and copies them into the current | 933 // Reads all frames on the current stack and copies them into the current |
941 // zone memory. | 934 // zone memory. |
942 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); | 935 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); |
943 | 936 |
944 } } // namespace v8::internal | 937 } } // namespace v8::internal |
945 | 938 |
946 #endif // V8_FRAMES_H_ | 939 #endif // V8_FRAMES_H_ |
OLD | NEW |