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

Unified Diff: src/interpreter/bytecodes.h

Issue 2041913002: [interpreter] Remove OperandScale from front stages of pipeline. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase 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 | « src/interpreter/bytecode-traits.h ('k') | src/interpreter/bytecodes.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/interpreter/bytecodes.h
diff --git a/src/interpreter/bytecodes.h b/src/interpreter/bytecodes.h
index e3970065e8c8c25819419bff513ee6b7627f7008..dbd5419b84ec12a49ebc6a1c5f502fc35fe7c653 100644
--- a/src/interpreter/bytecodes.h
+++ b/src/interpreter/bytecodes.h
@@ -518,6 +518,10 @@ class Bytecodes {
// OperandType::kNone.
static const OperandType* GetOperandTypes(Bytecode bytecode);
+ // Returns a pointer to an array of operand type info terminated in
+ // OperandTypeInfo::kNone.
+ static const OperandTypeInfo* GetOperandTypeInfos(Bytecode bytecode);
+
// Returns the size of the i-th operand of |bytecode|.
static OperandSize GetOperandSize(Bytecode bytecode, int i,
OperandScale operand_scale);
@@ -652,18 +656,7 @@ class Bytecodes {
static OperandSize SizeForSignedOperand(int value);
// Return the operand size required to hold an unsigned operand.
- static OperandSize SizeForUnsignedOperand(int value);
-
- // Return the operand size required to hold an unsigned operand.
- static OperandSize SizeForUnsignedOperand(size_t value);
-
- // Return the OperandScale required for bytecode emission of
- // operand sizes.
- static OperandScale OperandSizesToScale(OperandSize size0);
- static OperandScale OperandSizesToScale(OperandSize size0, OperandSize size1);
- static OperandScale OperandSizesToScale(
- OperandSize size0, OperandSize size1, OperandSize size2,
- OperandSize size3 = OperandSize::kByte);
+ static OperandSize SizeForUnsignedOperand(uint32_t value);
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(Bytecodes);
« no previous file with comments | « src/interpreter/bytecode-traits.h ('k') | src/interpreter/bytecodes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698