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_; |