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

Unified Diff: src/compiler/opcodes.cc

Issue 843043002: [turbofan] Fix typo in IrOpcode::Mnemonic. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 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 | test/unittests/compiler/opcodes-unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/opcodes.cc
diff --git a/src/compiler/opcodes.cc b/src/compiler/opcodes.cc
index 044395c785960959484cbfb54e5dcf64620713c7..1c94c19c780fec8c167a0b4a5bf2277c89bd7d89 100644
--- a/src/compiler/opcodes.cc
+++ b/src/compiler/opcodes.cc
@@ -25,7 +25,7 @@ char const* const kMnemonics[] = {
// static
char const* IrOpcode::Mnemonic(Value value) {
- size_t const n = std::max<size_t>(value, arraysize(kMnemonics) - 1);
+ size_t const n = std::min<size_t>(value, arraysize(kMnemonics) - 1);
return kMnemonics[n];
}
« no previous file with comments | « no previous file | test/unittests/compiler/opcodes-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698