Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Unified Diff: src/debug/debug.cc

Issue 2900713004: [objects] Extract DebugInfo and BreakPointInfo to own file (Closed)
Patch Set: Remove undefs from objects-inl.h Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/debug/debug.h ('k') | src/deoptimizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « src/debug/debug.h ('k') | src/deoptimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698