Chromium Code Reviews| Index: src/interpreter/source-position-table.h |
| diff --git a/src/interpreter/source-position-table.h b/src/interpreter/source-position-table.h |
| index 3ac58d621787939383f8d442f241138e06df05a5..057f50b09f6d7dcd46b9c910c7415e7ab7046404 100644 |
| --- a/src/interpreter/source-position-table.h |
| +++ b/src/interpreter/source-position-table.h |
| @@ -42,16 +42,16 @@ class SourcePositionTableBuilder : public PositionsRecorder { |
| #ifdef ENABLE_SLOW_DCHECKS |
| raw_entries_(zone), |
| #endif |
| - candidate_(kUninitializedCandidateOffset, 0, false) { |
| + previous_() { |
| } |
| void AddStatementPosition(size_t bytecode_offset, int source_position); |
| void AddExpressionPosition(size_t bytecode_offset, int source_position); |
|
rmcilroy
2016/05/12 12:15:14
Remove these two functions, I don't think they are
oth
2016/05/12 14:59:53
Done.
|
| + void AddPosition(size_t bytecode_offset, int source_position, |
| + bool is_statement); |
| Handle<ByteArray> ToSourcePositionTable(); |
| private: |
| - static const int kUninitializedCandidateOffset = -1; |
| - |
| void AddEntry(const PositionTableEntry& entry); |
| void CommitEntry(); |
| @@ -60,7 +60,6 @@ class SourcePositionTableBuilder : public PositionsRecorder { |
| #ifdef ENABLE_SLOW_DCHECKS |
| ZoneVector<PositionTableEntry> raw_entries_; |
| #endif |
| - PositionTableEntry candidate_; // Next entry to be written, if initialized. |
| PositionTableEntry previous_; // Previously written entry, to compute delta. |
| }; |