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

Unified Diff: src/interpreter/source-position-table.h

Issue 1682853004: [interpreter, debugger] implement bytecode break location iterator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix build Created 4 years, 10 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/interpreter/bytecodes.cc ('k') | src/interpreter/source-position-table.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/interpreter/source-position-table.h
diff --git a/src/interpreter/source-position-table.h b/src/interpreter/source-position-table.h
index f29f246384d1c1e8146c8124795b7806ea275260..336cf42bc2c1fe00e4205d5f9372539a37a02b7e 100644
--- a/src/interpreter/source-position-table.h
+++ b/src/interpreter/source-position-table.h
@@ -35,9 +35,10 @@ class SourcePositionTableBuilder {
uint32_t source_position_and_type;
};
- void AssertMonotonic(int bytecode_offset) {
- DCHECK(entries_.size() == 0 ||
- entries_.back().bytecode_offset < bytecode_offset);
+ bool CodeOffsetHasPosition(int bytecode_offset) {
+ // Return whether bytecode offset already has a position assigned.
+ return entries_.size() > 0 &&
+ entries_.back().bytecode_offset == bytecode_offset;
}
Isolate* isolate_;
« no previous file with comments | « src/interpreter/bytecodes.cc ('k') | src/interpreter/source-position-table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698