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

Unified Diff: test/unittests/interpreter/source-position-table-unittest.cc

Issue 1854113002: [interpreter] statement position always overwrites earlier positions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix Created 4 years, 8 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mjsunit/mjsunit.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/unittests/interpreter/source-position-table-unittest.cc
diff --git a/test/unittests/interpreter/source-position-table-unittest.cc b/test/unittests/interpreter/source-position-table-unittest.cc
index af70179ef454824d7aa2ed96edc759e56b1a2312..d62302a2cd653cd6928a5346251211cf2ace1ae0 100644
--- a/test/unittests/interpreter/source-position-table-unittest.cc
+++ b/test/unittests/interpreter/source-position-table-unittest.cc
@@ -37,15 +37,7 @@ TEST_F(SourcePositionTableTest, EncodeStatementDuplicates) {
SourcePositionTableBuilder builder(isolate(), zone());
for (int i = 0; i < arraysize(offsets); i++) {
builder.AddStatementPosition(offsets[i], offsets[i]);
- builder.AddStatementPosition(
- offsets[i], offsets[i],
- (i % 2 == 0) ? SourcePositionTableBuilder::OVERWRITE_DUPLICATE
- : SourcePositionTableBuilder::DISCARD_DUPLICATE);
- builder.AddStatementPosition(offsets[i], offsets[i]);
- builder.AddStatementPosition(
- offsets[i], offsets[i],
- (i % 2 == 0) ? SourcePositionTableBuilder::OVERWRITE_DUPLICATE
- : SourcePositionTableBuilder::DISCARD_DUPLICATE);
+ builder.AddStatementPosition(offsets[i], offsets[i] + 1);
}
// To test correctness, we rely on the assertions in ToSourcePositionTable().
« no previous file with comments | « test/mjsunit/mjsunit.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698