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 d62302a2cd653cd6928a5346251211cf2ace1ae0..230e57d32628ee1424aceff2ef76d3df663983c6 100644 |
--- a/test/unittests/interpreter/source-position-table-unittest.cc |
+++ b/test/unittests/interpreter/source-position-table-unittest.cc |
@@ -25,7 +25,7 @@ static int offsets[] = {0, 1, 2, 3, 4, 30, 31, 32, |
TEST_F(SourcePositionTableTest, EncodeStatement) { |
SourcePositionTableBuilder builder(isolate(), zone()); |
for (int i = 0; i < arraysize(offsets); i++) { |
- builder.AddStatementPosition(offsets[i], offsets[i]); |
+ builder.AddPosition(offsets[i], offsets[i], true); |
} |
// To test correctness, we rely on the assertions in ToSourcePositionTable(). |
@@ -36,8 +36,8 @@ TEST_F(SourcePositionTableTest, EncodeStatement) { |
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] + 1); |
+ builder.AddPosition(offsets[i], offsets[i], true); |
+ builder.AddPosition(offsets[i], offsets[i] + 1, true); |
} |
// To test correctness, we rely on the assertions in ToSourcePositionTable(). |
@@ -48,7 +48,7 @@ TEST_F(SourcePositionTableTest, EncodeStatementDuplicates) { |
TEST_F(SourcePositionTableTest, EncodeExpression) { |
SourcePositionTableBuilder builder(isolate(), zone()); |
for (int i = 0; i < arraysize(offsets); i++) { |
- builder.AddExpressionPosition(offsets[i], offsets[i]); |
+ builder.AddPosition(offsets[i], offsets[i], false); |
} |
CHECK(!builder.ToSourcePositionTable().is_null()); |
} |
@@ -60,9 +60,9 @@ TEST_F(SourcePositionTableTest, EncodeAscending) { |
for (int i = 0; i < arraysize(offsets); i++) { |
accumulator += offsets[i]; |
if (i % 2) { |
- builder.AddStatementPosition(accumulator, accumulator); |
+ builder.AddPosition(accumulator, accumulator, true); |
} else { |
- builder.AddExpressionPosition(accumulator, accumulator); |
+ builder.AddPosition(accumulator, accumulator, false); |
} |
} |
@@ -70,9 +70,9 @@ TEST_F(SourcePositionTableTest, EncodeAscending) { |
for (int i = 0; i < arraysize(offsets); i++) { |
accumulator -= offsets[i]; |
if (i % 2) { |
- builder.AddStatementPosition(accumulator, accumulator); |
+ builder.AddPosition(accumulator, accumulator, true); |
} else { |
- builder.AddExpressionPosition(accumulator, accumulator); |
+ builder.AddPosition(accumulator, accumulator, false); |
} |
} |