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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 | |
Vyacheslav Egorov (Chromium)
2012/02/24 10:35:59
trailing white space.
Sigurður Ásgeirsson
2012/02/24 14:46:04
Ooops, done.
| |
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 Loading... | |
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_ |
OLD | NEW |