| Index: src/interpreter/bytecodes.h
|
| diff --git a/src/interpreter/bytecodes.h b/src/interpreter/bytecodes.h
|
| index 00712de3bdd94352eb74039fce89559330ad307f..e3970065e8c8c25819419bff513ee6b7627f7008 100644
|
| --- a/src/interpreter/bytecodes.h
|
| +++ b/src/interpreter/bytecodes.h
|
| @@ -495,10 +495,22 @@ class Bytecodes {
|
| // Return true if |bytecode| writes the accumulator with a boolean value.
|
| static bool WritesBooleanToAccumulator(Bytecode bytecode);
|
|
|
| - // Return true if |bytecode| is an accumulator load bytecode,
|
| + // Return true if |bytecode| is an accumulator load without effects,
|
| // e.g. LdaConstant, LdaTrue, Ldar.
|
| static bool IsAccumulatorLoadWithoutEffects(Bytecode bytecode);
|
|
|
| + // Return true if |bytecode| is a jump without effects,
|
| + // e.g. any jump excluding those that include type coercion like
|
| + // JumpIfTrueToBoolean.
|
| + static bool IsJumpWithoutEffects(Bytecode bytecode);
|
| +
|
| + // Return true if |bytecode| is a register load without effects,
|
| + // e.g. Mov, Star, LdrUndefined.
|
| + static bool IsRegisterLoadWithoutEffects(Bytecode bytecode);
|
| +
|
| + // Returns true if |bytecode| has no effects.
|
| + static bool IsWithoutExternalSideEffects(Bytecode bytecode);
|
| +
|
| // Returns the i-th operand of |bytecode|.
|
| static OperandType GetOperandType(Bytecode bytecode, int i);
|
|
|
| @@ -588,10 +600,6 @@ class Bytecodes {
|
| // Returns true if the bytecode is a scaling prefix bytecode.
|
| static bool IsPrefixScalingBytecode(Bytecode bytecode);
|
|
|
| - // Returns true if the bytecode has no effects outside the current
|
| - // interpreter frame.
|
| - static bool IsWithoutExternalSideEffects(Bytecode bytecode);
|
| -
|
| // Returns true if |operand_type| is any type of register operand.
|
| static bool IsRegisterOperandType(OperandType operand_type);
|
|
|
|
|