Index: src/cpu-profiler.h |
diff --git a/src/cpu-profiler.h b/src/cpu-profiler.h |
index e87fe9e77221d8cb21d189cd860ed71b518e9b0b..b9f9f98fd2fb1e2171910c4da82ced020f8ba425 100644 |
--- a/src/cpu-profiler.h |
+++ b/src/cpu-profiler.h |
@@ -26,6 +26,7 @@ class ProfileGenerator; |
#define CODE_EVENTS_TYPE_LIST(V) \ |
V(CODE_CREATION, CodeCreateEventRecord) \ |
V(CODE_MOVE, CodeMoveEventRecord) \ |
+ V(CODE_DISABLE_OPT, CodeDisableOptEventRecord) \ |
V(SHARED_FUNC_MOVE, SharedFunctionInfoMoveEventRecord) \ |
V(REPORT_BUILTIN, ReportBuiltinEventRecord) |
@@ -65,6 +66,15 @@ class CodeMoveEventRecord : public CodeEventRecord { |
}; |
+class CodeDisableOptEventRecord : public CodeEventRecord { |
+ public: |
+ Address start; |
+ const char* bailout_reason; |
+ |
+ INLINE(void UpdateCodeMap(CodeMap* code_map)); |
+}; |
+ |
+ |
class SharedFunctionInfoMoveEventRecord : public CodeEventRecord { |
public: |
Address from; |
@@ -225,6 +235,7 @@ class CpuProfiler : public CodeEventListener { |
Code* code, int args_count); |
virtual void CodeMovingGCEvent() {} |
virtual void CodeMoveEvent(Address from, Address to); |
+ virtual void CodeDisableOptEvent(Code* code, SharedFunctionInfo* shared); |
virtual void CodeDeleteEvent(Address from); |
virtual void GetterCallbackEvent(Name* name, Address entry_point); |
virtual void RegExpCodeCreateEvent(Code* code, String* source); |