Index: src/interpreter/source-position-table.cc |
diff --git a/src/interpreter/source-position-table.cc b/src/interpreter/source-position-table.cc |
index a7364a49ba4f151a404498572480450e7e00351d..1d7f368242d679501d5301e7e895b6585eaa0c52 100644 |
--- a/src/interpreter/source-position-table.cc |
+++ b/src/interpreter/source-position-table.cc |
@@ -117,12 +117,20 @@ void DecodeEntry(ByteArray* bytes, int* index, PositionTableEntry* entry) { |
void SourcePositionTableBuilder::AddStatementPosition(size_t bytecode_offset, |
int source_position) { |
- AddEntry({static_cast<int>(bytecode_offset), source_position, true}); |
+ int offset = static_cast<int>(bytecode_offset); |
+ AddEntry({offset, source_position, true}); |
+ LOG_CODE_EVENT(isolate_, CodeLinePosInfoAddStatementPositionEvent( |
+ jit_handler_data_, offset, source_position)); |
+ LOG_CODE_EVENT(isolate_, CodeLinePosInfoAddPositionEvent( |
+ jit_handler_data_, offset, source_position)); |
} |
void SourcePositionTableBuilder::AddExpressionPosition(size_t bytecode_offset, |
int source_position) { |
- AddEntry({static_cast<int>(bytecode_offset), source_position, false}); |
+ int offset = static_cast<int>(bytecode_offset); |
+ AddEntry({offset, source_position, false}); |
+ LOG_CODE_EVENT(isolate_, CodeLinePosInfoAddPositionEvent( |
+ jit_handler_data_, offset, source_position)); |
} |
void SourcePositionTableBuilder::AddEntry(const PositionTableEntry& entry) { |