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