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

Unified Diff: src/interpreter/bytecodes.cc

Issue 1269813006: [Interpreter] Remove unnecessary const specifiers on scalar types. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 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 | « src/interpreter/bytecodes.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/interpreter/bytecodes.cc
diff --git a/src/interpreter/bytecodes.cc b/src/interpreter/bytecodes.cc
index 0787b66c317d1fa818cce77fae09287ae3a59e62..16a71a3ed63221c352418ff7d4532836ed3d1b58 100644
--- a/src/interpreter/bytecodes.cc
+++ b/src/interpreter/bytecodes.cc
@@ -52,7 +52,7 @@ Bytecode Bytecodes::FromByte(uint8_t value) {
// static
-const int Bytecodes::NumberOfOperands(Bytecode bytecode) {
+int Bytecodes::NumberOfOperands(Bytecode bytecode) {
DCHECK(bytecode <= Bytecode::kLast);
int count;
uint8_t row = ToByte(bytecode);
@@ -66,24 +66,24 @@ const int Bytecodes::NumberOfOperands(Bytecode bytecode) {
// static
-const OperandType Bytecodes::GetOperandType(Bytecode bytecode, int i) {
+OperandType Bytecodes::GetOperandType(Bytecode bytecode, int i) {
DCHECK(bytecode <= Bytecode::kLast && i < NumberOfOperands(bytecode));
return kBytecodeTable[ToByte(bytecode)][i];
}
// static
-const int Bytecodes::Size(Bytecode bytecode) {
+int Bytecodes::Size(Bytecode bytecode) {
return 1 + NumberOfOperands(bytecode);
}
// static
-const int Bytecodes::MaximumNumberOfOperands() { return kMaxOperands; }
+int Bytecodes::MaximumNumberOfOperands() { return kMaxOperands; }
// static
-const int Bytecodes::MaximumSize() { return 1 + kMaxOperands; }
+int Bytecodes::MaximumSize() { return 1 + kMaxOperands; }
std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode) {
« no previous file with comments | « src/interpreter/bytecodes.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698