Home | History | Annotate | Download | only in interpreter

Lines Matching defs:Bytecode

255 enum class Bytecode : uint8_t {
261 // evaluate to the same value as the last real bytecode.
334 // Returns string representation of |bytecode|.
335 static const char* ToString(Bytecode bytecode);
343 // Returns byte value of bytecode.
344 static uint8_t ToByte(Bytecode bytecode);
346 // Returns bytecode for |value|.
347 static Bytecode FromByte(uint8_t value);
349 // Returns the number of operands expected by |bytecode|.
350 static int NumberOfOperands(Bytecode bytecode);
352 // Return the i-th operand of |bytecode|.
353 static OperandType GetOperandType(Bytecode bytecode, int i);
355 // Return the size of the i-th operand of |bytecode|.
356 static OperandSize GetOperandSize(Bytecode bytecode, int i);
358 // Returns the offset of the i-th operand of |bytecode| relative to the start
359 // of the bytecode.
360 static int GetOperandOffset(Bytecode bytecode, int i);
362 // Returns the size of the bytecode including its operands.
363 static int Size(Bytecode bytecode);
368 // Return true if the bytecode is a conditional jump taking
370 static bool IsConditionalJumpImmediate(Bytecode bytecode);
372 // Return true if the bytecode is a conditional jump taking
374 static bool IsConditionalJumpConstant(Bytecode bytecode);
376 // Return true if the bytecode is a conditional jump taking
378 static bool IsConditionalJumpConstantWide(Bytecode bytecode);
380 // Return true if the bytecode is a conditional jump taking
382 static bool IsConditionalJump(Bytecode bytecode);
384 // Return true if the bytecode is a jump or a conditional jump taking
386 static bool IsJumpImmediate(Bytecode bytecode);
388 // Return true if the bytecode is a jump or conditional jump taking a
390 static bool IsJumpConstant(Bytecode bytecode);
392 // Return true if the bytecode is a jump or conditional jump taking a
394 static bool IsJumpConstantWide(Bytecode bytecode);
396 // Return true if the bytecode is a jump or conditional jump taking
398 static bool IsJump(Bytecode bytecode);
400 // Return true if the bytecode is a conditional jump, a jump, or a return.
401 static bool IsJumpOrReturn(Bytecode bytecode);
403 // Decode a single bytecode and operands to |os|.
411 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode);