opcode_string.go 799 B

123456789101112131415161718192021222324252627282930
  1. // Code generated by "stringer -output opcode_string.go -type=Class"; DO NOT EDIT.
  2. package asm
  3. import "strconv"
  4. func _() {
  5. // An "invalid array index" compiler error signifies that the constant values have changed.
  6. // Re-run the stringer command to generate them again.
  7. var x [1]struct{}
  8. _ = x[LdClass-0]
  9. _ = x[LdXClass-1]
  10. _ = x[StClass-2]
  11. _ = x[StXClass-3]
  12. _ = x[ALUClass-4]
  13. _ = x[JumpClass-5]
  14. _ = x[Jump32Class-6]
  15. _ = x[ALU64Class-7]
  16. }
  17. const _Class_name = "LdClassLdXClassStClassStXClassALUClassJumpClassJump32ClassALU64Class"
  18. var _Class_index = [...]uint8{0, 7, 15, 22, 30, 38, 47, 58, 68}
  19. func (i Class) String() string {
  20. if i >= Class(len(_Class_index)-1) {
  21. return "Class(" + strconv.FormatInt(int64(i), 10) + ")"
  22. }
  23. return _Class_name[_Class_index[i]:_Class_index[i+1]]
  24. }