Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(279)

Side by Side Diff: src/frames.h

Issue 14638006: Rollback of r14496 in trunk branch. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/frames.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 951 matching lines...) Expand 10 before | Expand all | Expand 10 after
962 StackFrameIterator iterator_; 962 StackFrameIterator iterator_;
963 }; 963 };
964 964
965 965
966 typedef JavaScriptFrameIteratorTemp<SafeStackFrameIterator> 966 typedef JavaScriptFrameIteratorTemp<SafeStackFrameIterator>
967 SafeJavaScriptFrameIterator; 967 SafeJavaScriptFrameIterator;
968 968
969 969
970 class SafeStackTraceFrameIterator: public SafeJavaScriptFrameIterator { 970 class SafeStackTraceFrameIterator: public SafeJavaScriptFrameIterator {
971 public: 971 public:
972 SafeStackTraceFrameIterator(Isolate* isolate, 972 explicit SafeStackTraceFrameIterator(Isolate* isolate,
973 Address fp, 973 Address fp, Address sp,
974 Address sp, 974 Address low_bound, Address high_bound);
975 Address low_bound,
976 Address high_bound);
977 void Advance(); 975 void Advance();
978 }; 976 };
979 977
980 978
981 class StackFrameLocator BASE_EMBEDDED { 979 class StackFrameLocator BASE_EMBEDDED {
982 public: 980 public:
983 explicit StackFrameLocator(Isolate* isolate) : iterator_(isolate) {} 981 explicit StackFrameLocator(Isolate* isolate) : iterator_(isolate) {}
984 982
985 // Find the nth JavaScript frame on the stack. The caller must 983 // Find the nth JavaScript frame on the stack. The caller must
986 // guarantee that such a frame exists. 984 // guarantee that such a frame exists.
987 JavaScriptFrame* FindJavaScriptFrame(int n); 985 JavaScriptFrame* FindJavaScriptFrame(int n);
988 986
989 private: 987 private:
990 StackFrameIterator iterator_; 988 StackFrameIterator iterator_;
991 }; 989 };
992 990
993 991
994 // Reads all frames on the current stack and copies them into the current 992 // Reads all frames on the current stack and copies them into the current
995 // zone memory. 993 // zone memory.
996 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); 994 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone);
997 995
998 } } // namespace v8::internal 996 } } // namespace v8::internal
999 997
1000 #endif // V8_FRAMES_H_ 998 #endif // V8_FRAMES_H_
OLDNEW
« no previous file with comments | « no previous file | src/frames.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698