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

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

Issue 1409993006: Fix external callback logging in profiler. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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/log.cc ('k') | no next file » | 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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_VM_STATE_H_ 5 #ifndef V8_VM_STATE_H_
6 #define V8_VM_STATE_H_ 6 #define V8_VM_STATE_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/isolate.h" 9 #include "src/isolate.h"
10 10
(...skipping 15 matching lines...) Expand all
26 Isolate* isolate_; 26 Isolate* isolate_;
27 StateTag previous_tag_; 27 StateTag previous_tag_;
28 }; 28 };
29 29
30 30
31 class ExternalCallbackScope BASE_EMBEDDED { 31 class ExternalCallbackScope BASE_EMBEDDED {
32 public: 32 public:
33 inline ExternalCallbackScope(Isolate* isolate, Address callback); 33 inline ExternalCallbackScope(Isolate* isolate, Address callback);
34 inline ~ExternalCallbackScope(); 34 inline ~ExternalCallbackScope();
35 Address callback() { return callback_; } 35 Address callback() { return callback_; }
36 Address* callback_address() { return &callback_; } 36 Address* callback_entrypoint_address() {
37 if (callback_ == nullptr) return nullptr;
38 #if USES_FUNCTION_DESCRIPTORS
39 return FUNCTION_ENTRYPOINT_ADDRESS(callback_);
40 #else
41 return &callback_;
42 #endif
43 }
37 ExternalCallbackScope* previous() { return previous_scope_; } 44 ExternalCallbackScope* previous() { return previous_scope_; }
38 inline Address scope_address(); 45 inline Address scope_address();
39 46
40 private: 47 private:
41 Isolate* isolate_; 48 Isolate* isolate_;
42 Address callback_; 49 Address callback_;
43 ExternalCallbackScope* previous_scope_; 50 ExternalCallbackScope* previous_scope_;
44 #ifdef USE_SIMULATOR 51 #ifdef USE_SIMULATOR
45 Address scope_address_; 52 Address scope_address_;
46 #endif 53 #endif
47 }; 54 };
48 55
49 } // namespace internal 56 } // namespace internal
50 } // namespace v8 57 } // namespace v8
51 58
52 59
53 #endif // V8_VM_STATE_H_ 60 #endif // V8_VM_STATE_H_
OLDNEW
« no previous file with comments | « src/log.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698