Returns the size (in 2 byte code units) of this instruction.
| 218 | |
| 219 | // Returns the size (in 2 byte code units) of this instruction. |
| 220 | size_t SizeInCodeUnits() const { |
| 221 | int8_t result = kInstructionDescriptors[Opcode()].size_in_code_units; |
| 222 | if (UNLIKELY(result < 0)) { |
| 223 | return SizeInCodeUnitsComplexOpcode(); |
| 224 | } else { |
| 225 | return static_cast<size_t>(result); |
| 226 | } |
| 227 | } |
| 228 | |
| 229 | // Code units required to calculate the size of the instruction. |
| 230 | size_t CodeUnitsRequiredForSizeComputation() const { |
no outgoing calls
no test coverage detected