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

Side by Side Diff: test/cctest/interpreter/source-position-matcher.cc

Issue 2451853002: Uniform and precise source positions for inlining (Closed)
Patch Set: fixed gcmole issue Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698