Index: src/debug/debug.cc |
diff --git a/src/debug/debug.cc b/src/debug/debug.cc |
index a914d2e3812d017a7c45263c5915d551b9c6ed7e..5fc284728f90ac0879185cfae985966b11204288 100644 |
--- a/src/debug/debug.cc |
+++ b/src/debug/debug.cc |
@@ -28,6 +28,7 @@ |
#include "src/list.h" |
#include "src/log.h" |
#include "src/messages.h" |
+#include "src/objects/debug-objects-inl.h" |
#include "src/snapshot/natives.h" |
#include "src/wasm/wasm-module.h" |
#include "src/wasm/wasm-objects.h" |
@@ -248,6 +249,11 @@ void CodeBreakIterator::SkipToPosition(int position, |
SkipTo(it.BreakIndexFromPosition(position, alignment)); |
} |
+int CodeBreakIterator::code_offset() { |
+ return static_cast<int>(rinfo()->pc() - |
+ debug_info_->DebugCode()->instruction_start()); |
+} |
+ |
void CodeBreakIterator::SetDebugBreak() { |
DebugBreakType debug_break_type = GetDebugBreakType(); |
DCHECK(debug_break_type >= DEBUG_BREAK_SLOT); |