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

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

Issue 2052993002: [interpreter] Compilation fix in bytecode source position tester. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/interpreter/source-position-matcher.cc
diff --git a/test/cctest/interpreter/source-position-matcher.cc b/test/cctest/interpreter/source-position-matcher.cc
index 6c97540f276b2a31e9f77c5e7e26f87c4dda5262..122f2c83fca89228688b8f12720d89692cb56074 100644
--- a/test/cctest/interpreter/source-position-matcher.cc
+++ b/test/cctest/interpreter/source-position-matcher.cc
@@ -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;
}
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698