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

Side by Side Diff: src/frames.h

Issue 16578008: Improved function entry hook coverage (Closed) Base URL: https://chromium.googlesource.com/external/v8.git@post_fix
Patch Set: Fix Windows X64 compile warnings." Created 7 years, 5 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
« no previous file with comments | « src/code-stubs.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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 290
291 virtual void Iterate(ObjectVisitor* v) const = 0; 291 virtual void Iterate(ObjectVisitor* v) const = 0;
292 static void IteratePc(ObjectVisitor* v, Address* pc_address, Code* holder); 292 static void IteratePc(ObjectVisitor* v, Address* pc_address, Code* holder);
293 293
294 // Sets a callback function for return-address rewriting profilers 294 // Sets a callback function for return-address rewriting profilers
295 // to resolve the location of a return address to the location of the 295 // to resolve the location of a return address to the location of the
296 // profiler's stashed return address. 296 // profiler's stashed return address.
297 static void SetReturnAddressLocationResolver( 297 static void SetReturnAddressLocationResolver(
298 ReturnAddressLocationResolver resolver); 298 ReturnAddressLocationResolver resolver);
299 299
300 // Resolves pc_address through the resolution address function if one is set.
301 static inline Address* ResolveReturnAddressLocation(Address* pc_address);
302
303
300 // Printing support. 304 // Printing support.
301 enum PrintMode { OVERVIEW, DETAILS }; 305 enum PrintMode { OVERVIEW, DETAILS };
302 virtual void Print(StringStream* accumulator, 306 virtual void Print(StringStream* accumulator,
303 PrintMode mode, 307 PrintMode mode,
304 int index) const { } 308 int index) const { }
305 309
306 Isolate* isolate() const { return isolate_; } 310 Isolate* isolate() const { return isolate_; }
307 311
308 protected: 312 protected:
309 inline explicit StackFrame(StackFrameIteratorBase* iterator); 313 inline explicit StackFrame(StackFrameIteratorBase* iterator);
(...skipping 15 matching lines...) Expand all
325 329
326 #ifdef DEBUG 330 #ifdef DEBUG
327 bool can_access_heap_objects() const; 331 bool can_access_heap_objects() const;
328 #endif 332 #endif
329 333
330 private: 334 private:
331 const StackFrameIteratorBase* iterator_; 335 const StackFrameIteratorBase* iterator_;
332 Isolate* isolate_; 336 Isolate* isolate_;
333 State state_; 337 State state_;
334 338
339 static ReturnAddressLocationResolver return_address_location_resolver_;
340
335 // Fill in the state of the calling frame. 341 // Fill in the state of the calling frame.
336 virtual void ComputeCallerState(State* state) const = 0; 342 virtual void ComputeCallerState(State* state) const = 0;
337 343
338 // Get the type and the state of the calling frame. 344 // Get the type and the state of the calling frame.
339 virtual Type GetCallerState(State* state) const; 345 virtual Type GetCallerState(State* state) const;
340 346
341 static const intptr_t kIsolateTag = 1; 347 static const intptr_t kIsolateTag = 1;
342 348
343 friend class StackFrameIterator; 349 friend class StackFrameIterator;
344 friend class StackFrameIteratorBase; 350 friend class StackFrameIteratorBase;
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
909 }; 915 };
910 916
911 917
912 // Reads all frames on the current stack and copies them into the current 918 // Reads all frames on the current stack and copies them into the current
913 // zone memory. 919 // zone memory.
914 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); 920 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone);
915 921
916 } } // namespace v8::internal 922 } } // namespace v8::internal
917 923
918 #endif // V8_FRAMES_H_ 924 #endif // V8_FRAMES_H_
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/frames.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698