Commit af10c45e authored by oth's avatar oth Committed by Commit bot

[interpreter] Compilation fix in bytecode source position tester.

TBR=rmcilroy@chromium.org
BUG=chromium:618757
LOG=N

Review-Url: https://codereview.chromium.org/2052993002
Cr-Commit-Position: refs/heads/master@{#36875}
parent 565a8f94
......@@ -14,7 +14,7 @@ namespace interpreter {
// Comparer for PositionTableEntry instances.
struct PositionTableEntryComparer {
bool operator()(const PositionTableEntry& lhs,
const PositionTableEntry& rhs) {
const PositionTableEntry& rhs) const {
int lhs_type_score = type_score(lhs);
int rhs_type_score = type_score(rhs);
if (lhs_type_score == rhs_type_score) {
......@@ -24,7 +24,7 @@ struct PositionTableEntryComparer {
}
}
int type_score(const PositionTableEntry& entry) {
int type_score(const PositionTableEntry& entry) const {
return entry.is_statement ? 1 : 0;
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment