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

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: small fix 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
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..dddf1e16004f1d14030e058dc2ade9c2caf026b7 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 AlreadyHasPosition(int bytecode_offset) {
vogelheim 2016/02/11 12:33:59 AlreadyHasPosition is somewhat weaker than AssertM
Yang 2016/02/11 14:16:55 Correct. We can no longer guarantee that. For exam
+ // Return whether bytecode offset already has a position assigned.
+ return entries_.size() != 0 &&
+ entries_.back().bytecode_offset == bytecode_offset;
}
Isolate* isolate_;

Powered by Google App Engine
This is Rietveld 408576698