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

Side by Side Diff: src/frames.h

Issue 9401019: Support for return-address rewriting profilers. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add inline specifier for ResolveReturnAddressLocation. Created 8 years, 10 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 | « src/api.cc ('k') | 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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 // safepoint entry and the number of stack slots. The pc must be at 234 // safepoint entry and the number of stack slots. The pc must be at
235 // a safepoint. 235 // a safepoint.
236 static Code* GetSafepointData(Isolate* isolate, 236 static Code* GetSafepointData(Isolate* isolate,
237 Address pc, 237 Address pc,
238 SafepointEntry* safepoint_entry, 238 SafepointEntry* safepoint_entry,
239 unsigned* stack_slots); 239 unsigned* stack_slots);
240 240
241 virtual void Iterate(ObjectVisitor* v) const = 0; 241 virtual void Iterate(ObjectVisitor* v) const = 0;
242 static void IteratePc(ObjectVisitor* v, Address* pc_address, Code* holder); 242 static void IteratePc(ObjectVisitor* v, Address* pc_address, Code* holder);
243 243
244 // Sets a callback function for return-address rewriting profilers
245 // to resolve the location of a return address to the location of the
246 // profiler's stashed return address.
247 static void SetReturnAddressLocationResolver(
248 ReturnAddressLocationResolver resolver);
244 249
245 // Printing support. 250 // Printing support.
246 enum PrintMode { OVERVIEW, DETAILS }; 251 enum PrintMode { OVERVIEW, DETAILS };
247 virtual void Print(StringStream* accumulator, 252 virtual void Print(StringStream* accumulator,
248 PrintMode mode, 253 PrintMode mode,
249 int index) const { } 254 int index) const { }
250 255
251 protected: 256 protected:
252 inline explicit StackFrame(StackFrameIterator* iterator); 257 inline explicit StackFrame(StackFrameIterator* iterator);
253 virtual ~StackFrame() { } 258 virtual ~StackFrame() { }
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
876 }; 881 };
877 882
878 883
879 // Reads all frames on the current stack and copies them into the current 884 // Reads all frames on the current stack and copies them into the current
880 // zone memory. 885 // zone memory.
881 Vector<StackFrame*> CreateStackMap(); 886 Vector<StackFrame*> CreateStackMap();
882 887
883 } } // namespace v8::internal 888 } } // namespace v8::internal
884 889
885 #endif // V8_FRAMES_H_ 890 #endif // V8_FRAMES_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/frames.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698