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

Unified Diff: src/debug/debug.h

Issue 2095893002: Use source position table for unoptimized code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix gc mole Created 4 years, 6 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/DEPS ('k') | src/debug/debug.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/debug/debug.h
diff --git a/src/debug/debug.h b/src/debug/debug.h
index eb2708c32f36ee802463e529b07fb57b2d171b54..bd381d7102d4a25b66f610732d73dc893267bccf 100644
--- a/src/debug/debug.h
+++ b/src/debug/debug.h
@@ -16,8 +16,8 @@
#include "src/factory.h"
#include "src/flags.h"
#include "src/frames.h"
-#include "src/interpreter/source-position-table.h"
#include "src/runtime/runtime.h"
+#include "src/source-position-table.h"
#include "src/string-stream.h"
#include "src/v8threads.h"
@@ -143,7 +143,6 @@ class BreakLocation {
protected:
explicit Iterator(Handle<DebugInfo> debug_info);
- int ReturnPosition();
Isolate* isolate() { return debug_info_->GetIsolate(); }
@@ -178,6 +177,8 @@ class BreakLocation {
RelocInfo* rinfo() { return reloc_iterator_.rinfo(); }
RelocIterator reloc_iterator_;
+ SourcePositionTableIterator source_position_iterator_;
+ int start_position_;
DISALLOW_COPY_AND_ASSIGN(CodeIterator);
};
@@ -191,13 +192,13 @@ class BreakLocation {
void Next() override;
int code_offset() override {
- return source_position_iterator_.bytecode_offset();
+ return source_position_iterator_.code_offset();
}
private:
DebugBreakType GetDebugBreakType();
- interpreter::SourcePositionTableIterator source_position_iterator_;
+ SourcePositionTableIterator source_position_iterator_;
BreakLocatorType break_locator_type_;
int start_position_;
DISALLOW_COPY_AND_ASSIGN(BytecodeArrayIterator);
« no previous file with comments | « src/DEPS ('k') | src/debug/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698