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

Side by Side Diff: src/frames.h

Issue 14650002: frames.h/cc cleanup (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed formatting 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 explicit SafeStackTraceFrameIterator(Isolate* isolate, 972 SafeStackTraceFrameIterator(Isolate* isolate,
973 Address fp, Address sp, 973 Address fp,
974 Address low_bound, Address high_bound); 974 Address sp,
975 Address low_bound,
976 Address high_bound);
975 void Advance(); 977 void Advance();
976 }; 978 };
977 979
978 980
979 class StackFrameLocator BASE_EMBEDDED { 981 class StackFrameLocator BASE_EMBEDDED {
980 public: 982 public:
981 explicit StackFrameLocator(Isolate* isolate) : iterator_(isolate) {} 983 explicit StackFrameLocator(Isolate* isolate) : iterator_(isolate) {}
982 984
983 // Find the nth JavaScript frame on the stack. The caller must 985 // Find the nth JavaScript frame on the stack. The caller must
984 // guarantee that such a frame exists. 986 // guarantee that such a frame exists.
985 JavaScriptFrame* FindJavaScriptFrame(int n); 987 JavaScriptFrame* FindJavaScriptFrame(int n);
986 988
987 private: 989 private:
988 StackFrameIterator iterator_; 990 StackFrameIterator iterator_;
989 }; 991 };
990 992
991 993
992 // Reads all frames on the current stack and copies them into the current 994 // Reads all frames on the current stack and copies them into the current
993 // zone memory. 995 // zone memory.
994 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); 996 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone);
995 997
996 } } // namespace v8::internal 998 } } // namespace v8::internal
997 999
998 #endif // V8_FRAMES_H_ 1000 #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