summaryrefslogtreecommitdiff
path: root/chromium/v8/src/logging/code-events.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/v8/src/logging/code-events.h')
-rw-r--r--chromium/v8/src/logging/code-events.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chromium/v8/src/logging/code-events.h b/chromium/v8/src/logging/code-events.h
index c009ba0b15d..cda7c39fc7c 100644
--- a/chromium/v8/src/logging/code-events.h
+++ b/chromium/v8/src/logging/code-events.h
@@ -98,6 +98,7 @@ class CodeEventListener {
// Not handlified as this happens during GC. No allocation allowed.
virtual void CodeMoveEvent(AbstractCode from, AbstractCode to) = 0;
virtual void SharedFunctionInfoMoveEvent(Address from, Address to) = 0;
+ virtual void NativeContextMoveEvent(Address from, Address to) = 0;
virtual void CodeMovingGCEvent() = 0;
virtual void CodeDisableOptEvent(Handle<AbstractCode> code,
Handle<SharedFunctionInfo> shared) = 0;
@@ -217,6 +218,11 @@ class CodeEventDispatcher : public CodeEventListener {
listener->SharedFunctionInfoMoveEvent(from, to);
});
}
+ void NativeContextMoveEvent(Address from, Address to) override {
+ DispatchEventToListeners([=](CodeEventListener* listener) {
+ listener->NativeContextMoveEvent(from, to);
+ });
+ }
void CodeMovingGCEvent() override {
DispatchEventToListeners(
[](CodeEventListener* listener) { listener->CodeMovingGCEvent(); });