OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "test/cctest/interpreter/source-position-matcher.h" | 5 #include "test/cctest/interpreter/source-position-matcher.h" |
6 | 6 |
7 #include "src/objects-inl.h" | 7 #include "src/objects-inl.h" |
8 #include "src/objects.h" | 8 #include "src/objects.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 | 206 |
207 void SourcePositionMatcher::MoveToNextStatement( | 207 void SourcePositionMatcher::MoveToNextStatement( |
208 SourcePositionTableIterator* iterator, | 208 SourcePositionTableIterator* iterator, |
209 std::vector<PositionTableEntry>* positions) { | 209 std::vector<PositionTableEntry>* positions) { |
210 iterator->Advance(); | 210 iterator->Advance(); |
211 positions->clear(); | 211 positions->clear(); |
212 while (!iterator->done()) { | 212 while (!iterator->done()) { |
213 if (iterator->is_statement()) { | 213 if (iterator->is_statement()) { |
214 break; | 214 break; |
215 } | 215 } |
216 positions->push_back({iterator->code_offset(), iterator->source_position(), | 216 positions->push_back({iterator->code_offset(), |
| 217 iterator->source_position().raw(), |
217 iterator->is_statement()}); | 218 iterator->is_statement()}); |
218 iterator->Advance(); | 219 iterator->Advance(); |
219 } | 220 } |
220 } | 221 } |
221 | 222 |
222 } // namespace interpreter | 223 } // namespace interpreter |
223 } // namespace internal | 224 } // namespace internal |
224 } // namespace v8 | 225 } // namespace v8 |
OLD | NEW |