Index: src/code-events.h |
diff --git a/src/code-events.h b/src/code-events.h |
index db43d88b681a12dc04c95c1d37bbb7c51b11b0d4..056aa4139d6955520d18a8ac5b5016928d6a72a8 100644 |
--- a/src/code-events.h |
+++ b/src/code-events.h |
@@ -105,7 +105,9 @@ class CodeEventListener { |
virtual void CodeMovingGCEvent() = 0; |
virtual void CodeDisableOptEvent(AbstractCode* code, |
SharedFunctionInfo* shared) = 0; |
- virtual void CodeDeoptEvent(Code* code, Address pc, int fp_to_sp_delta) = 0; |
+ enum DeoptKind { kSoft, kLazy, kEager }; |
+ virtual void CodeDeoptEvent(Code* code, DeoptKind kind, Address pc, |
+ int fp_to_sp_delta) = 0; |
}; |
class CodeEventDispatcher { |
@@ -170,8 +172,9 @@ class CodeEventDispatcher { |
void CodeDisableOptEvent(AbstractCode* code, SharedFunctionInfo* shared) { |
CODE_EVENT_DISPATCH(CodeDisableOptEvent(code, shared)); |
} |
- void CodeDeoptEvent(Code* code, Address pc, int fp_to_sp_delta) { |
- CODE_EVENT_DISPATCH(CodeDeoptEvent(code, pc, fp_to_sp_delta)); |
+ void CodeDeoptEvent(Code* code, CodeEventListener::DeoptKind kind, Address pc, |
+ int fp_to_sp_delta) { |
+ CODE_EVENT_DISPATCH(CodeDeoptEvent(code, kind, pc, fp_to_sp_delta)); |
} |
#undef CODE_EVENT_DISPATCH |