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

Side by Side Diff: src/vm-state.h

Issue 19775017: Fix call stack sampling for the case when native callback invokes JS function (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed test failure in debug mode 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 | Annotate | Revision Log
« no previous file with comments | « src/sampler.cc ('k') | src/vm-state-inl.h » ('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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 private: 43 private:
44 Isolate* isolate_; 44 Isolate* isolate_;
45 StateTag previous_tag_; 45 StateTag previous_tag_;
46 }; 46 };
47 47
48 48
49 class ExternalCallbackScope BASE_EMBEDDED { 49 class ExternalCallbackScope BASE_EMBEDDED {
50 public: 50 public:
51 inline ExternalCallbackScope(Isolate* isolate, Address callback); 51 inline ExternalCallbackScope(Isolate* isolate, Address callback);
52 inline ~ExternalCallbackScope(); 52 inline ~ExternalCallbackScope();
53 Address callback() { return callback_; }
54 Address* callback_address() { return &callback_; }
55 ExternalCallbackScope* previous() { return previous_scope_; }
56 inline Address scope_address();
57
53 private: 58 private:
54 Isolate* isolate_; 59 Isolate* isolate_;
55 Address previous_callback_; 60 Address callback_;
61 ExternalCallbackScope* previous_scope_;
62 #ifdef USE_SIMULATOR
63 Address scope_address_;
64 #endif
56 }; 65 };
57 66
58 } } // namespace v8::internal 67 } } // namespace v8::internal
59 68
60 69
61 #endif // V8_VM_STATE_H_ 70 #endif // V8_VM_STATE_H_
OLDNEW
« no previous file with comments | « src/sampler.cc ('k') | src/vm-state-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698