| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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_CODE_EVENTS_H_ | 5 #ifndef V8_CODE_EVENTS_H_ |
| 6 #define V8_CODE_EVENTS_H_ | 6 #define V8_CODE_EVENTS_H_ |
| 7 | 7 |
| 8 #include <unordered_set> | 8 #include <unordered_set> |
| 9 | 9 |
| 10 #include "src/base/platform/mutex.h" | 10 #include "src/base/platform/mutex.h" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 }; | 83 }; |
| 84 #undef DECLARE_ENUM | 84 #undef DECLARE_ENUM |
| 85 | 85 |
| 86 virtual ~CodeEventListener() {} | 86 virtual ~CodeEventListener() {} |
| 87 | 87 |
| 88 virtual void CodeCreateEvent(LogEventsAndTags tag, AbstractCode* code, | 88 virtual void CodeCreateEvent(LogEventsAndTags tag, AbstractCode* code, |
| 89 const char* comment) = 0; | 89 const char* comment) = 0; |
| 90 virtual void CodeCreateEvent(LogEventsAndTags tag, AbstractCode* code, | 90 virtual void CodeCreateEvent(LogEventsAndTags tag, AbstractCode* code, |
| 91 Name* name) = 0; | 91 Name* name) = 0; |
| 92 virtual void CodeCreateEvent(LogEventsAndTags tag, AbstractCode* code, | 92 virtual void CodeCreateEvent(LogEventsAndTags tag, AbstractCode* code, |
| 93 SharedFunctionInfo* shared, Name* name) = 0; | 93 SharedFunctionInfo* shared, Name* source) = 0; |
| 94 virtual void CodeCreateEvent(LogEventsAndTags tag, AbstractCode* code, | 94 virtual void CodeCreateEvent(LogEventsAndTags tag, AbstractCode* code, |
| 95 SharedFunctionInfo* shared, Name* source, | 95 SharedFunctionInfo* shared, Name* source, |
| 96 int line, int column) = 0; | 96 int line, int column) = 0; |
| 97 virtual void CodeCreateEvent(LogEventsAndTags tag, AbstractCode* code, | 97 virtual void CodeCreateEvent(LogEventsAndTags tag, AbstractCode* code, |
| 98 int args_count) = 0; | 98 int args_count) = 0; |
| 99 virtual void CallbackEvent(Name* name, Address entry_point) = 0; | 99 virtual void CallbackEvent(Name* name, Address entry_point) = 0; |
| 100 virtual void GetterCallbackEvent(Name* name, Address entry_point) = 0; | 100 virtual void GetterCallbackEvent(Name* name, Address entry_point) = 0; |
| 101 virtual void SetterCallbackEvent(Name* name, Address entry_point) = 0; | 101 virtual void SetterCallbackEvent(Name* name, Address entry_point) = 0; |
| 102 virtual void RegExpCodeCreateEvent(AbstractCode* code, String* source) = 0; | 102 virtual void RegExpCodeCreateEvent(AbstractCode* code, String* source) = 0; |
| 103 virtual void CodeMoveEvent(AbstractCode* from, Address to) = 0; | 103 virtual void CodeMoveEvent(AbstractCode* from, Address to) = 0; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 std::unordered_set<CodeEventListener*> listeners_; | 179 std::unordered_set<CodeEventListener*> listeners_; |
| 180 base::Mutex mutex_; | 180 base::Mutex mutex_; |
| 181 | 181 |
| 182 DISALLOW_COPY_AND_ASSIGN(CodeEventDispatcher); | 182 DISALLOW_COPY_AND_ASSIGN(CodeEventDispatcher); |
| 183 }; | 183 }; |
| 184 | 184 |
| 185 } // namespace internal | 185 } // namespace internal |
| 186 } // namespace v8 | 186 } // namespace v8 |
| 187 | 187 |
| 188 #endif // V8_CODE_EVENTS_H_ | 188 #endif // V8_CODE_EVENTS_H_ |
| OLD | NEW |