| // Code generated by mkbuiltin.go. DO NOT EDIT. |
| |
| package typecheck |
| |
| import ( |
| "cmd/compile/internal/types" |
| "cmd/internal/src" |
| ) |
| |
| // Not inlining this function removes a significant chunk of init code. |
| // |
| //go:noinline |
| func newSig(params, results []*types.Field) *types.Type { |
| return types.NewSignature(nil, params, results) |
| } |
| |
| func params(tlist ...*types.Type) []*types.Field { |
| flist := make([]*types.Field, len(tlist)) |
| for i, typ := range tlist { |
| flist[i] = types.NewField(src.NoXPos, nil, typ) |
| } |
| return flist |
| } |
| |
| var runtimeDecls = [...]struct { |
| name string |
| tag int |
| typ int |
| }{ |
| {"newobject", funcTag, 4}, |
| {"mallocgc", funcTag, 8}, |
| {"panicdivide", funcTag, 9}, |
| {"panicshift", funcTag, 9}, |
| {"panicmakeslicelen", funcTag, 9}, |
| {"panicmakeslicecap", funcTag, 9}, |
| {"throwinit", funcTag, 9}, |
| {"panicwrap", funcTag, 9}, |
| {"gopanic", funcTag, 11}, |
| {"gorecover", funcTag, 14}, |
| {"goschedguarded", funcTag, 9}, |
| {"goPanicIndex", funcTag, 16}, |
| {"goPanicIndexU", funcTag, 18}, |
| {"goPanicSliceAlen", funcTag, 16}, |
| {"goPanicSliceAlenU", funcTag, 18}, |
| {"goPanicSliceAcap", funcTag, 16}, |
| {"goPanicSliceAcapU", funcTag, 18}, |
| {"goPanicSliceB", funcTag, 16}, |
| {"goPanicSliceBU", funcTag, 18}, |
| {"goPanicSlice3Alen", funcTag, 16}, |
| {"goPanicSlice3AlenU", funcTag, 18}, |
| {"goPanicSlice3Acap", funcTag, 16}, |
| {"goPanicSlice3AcapU", funcTag, 18}, |
| {"goPanicSlice3B", funcTag, 16}, |
| {"goPanicSlice3BU", funcTag, 18}, |
| {"goPanicSlice3C", funcTag, 16}, |
| {"goPanicSlice3CU", funcTag, 18}, |
| {"goPanicSliceConvert", funcTag, 16}, |
| {"printbool", funcTag, 19}, |
| {"printfloat", funcTag, 21}, |
| {"printint", funcTag, 23}, |
| {"printhex", funcTag, 25}, |
| {"printuint", funcTag, 25}, |
| {"printcomplex", funcTag, 27}, |
| {"printstring", funcTag, 29}, |
| {"printpointer", funcTag, 30}, |
| {"printuintptr", funcTag, 31}, |
| {"printiface", funcTag, 30}, |
| {"printeface", funcTag, 30}, |
| {"printslice", funcTag, 30}, |
| {"printnl", funcTag, 9}, |
| {"printsp", funcTag, 9}, |
| {"printlock", funcTag, 9}, |
| {"printunlock", funcTag, 9}, |
| {"concatstring2", funcTag, 34}, |
| {"concatstring3", funcTag, 35}, |
| {"concatstring4", funcTag, 36}, |
| {"concatstring5", funcTag, 37}, |
| {"concatstrings", funcTag, 39}, |
| {"concatbyte2", funcTag, 41}, |
| {"concatbyte3", funcTag, 42}, |
| {"concatbyte4", funcTag, 43}, |
| {"concatbyte5", funcTag, 44}, |
| {"concatbytes", funcTag, 45}, |
| {"cmpstring", funcTag, 46}, |
| {"intstring", funcTag, 49}, |
| {"slicebytetostring", funcTag, 50}, |
| {"slicebytetostringtmp", funcTag, 51}, |
| {"slicerunetostring", funcTag, 54}, |
| {"stringtoslicebyte", funcTag, 55}, |
| {"stringtoslicerune", funcTag, 58}, |
| {"slicecopy", funcTag, 59}, |
| {"decoderune", funcTag, 60}, |
| {"countrunes", funcTag, 61}, |
| {"convT", funcTag, 62}, |
| {"convTnoptr", funcTag, 62}, |
| {"convT16", funcTag, 64}, |
| {"convT32", funcTag, 66}, |
| {"convT64", funcTag, 67}, |
| {"convTstring", funcTag, 68}, |
| {"convTslice", funcTag, 71}, |
| {"assertE2I", funcTag, 72}, |
| {"assertE2I2", funcTag, 72}, |
| {"panicdottypeE", funcTag, 73}, |
| {"panicdottypeI", funcTag, 73}, |
| {"panicnildottype", funcTag, 74}, |
| {"typeAssert", funcTag, 72}, |
| {"interfaceSwitch", funcTag, 75}, |
| {"ifaceeq", funcTag, 77}, |
| {"efaceeq", funcTag, 77}, |
| {"panicrangestate", funcTag, 78}, |
| {"deferrangefunc", funcTag, 79}, |
| {"rand32", funcTag, 80}, |
| {"makemap64", funcTag, 82}, |
| {"makemap", funcTag, 83}, |
| {"makemap_small", funcTag, 84}, |
| {"mapaccess1", funcTag, 85}, |
| {"mapaccess1_fast32", funcTag, 86}, |
| {"mapaccess1_fast64", funcTag, 87}, |
| {"mapaccess1_faststr", funcTag, 88}, |
| {"mapaccess1_fat", funcTag, 89}, |
| {"mapaccess2", funcTag, 90}, |
| {"mapaccess2_fast32", funcTag, 91}, |
| {"mapaccess2_fast64", funcTag, 92}, |
| {"mapaccess2_faststr", funcTag, 93}, |
| {"mapaccess2_fat", funcTag, 94}, |
| {"mapassign", funcTag, 85}, |
| {"mapassign_fast32", funcTag, 86}, |
| {"mapassign_fast32ptr", funcTag, 95}, |
| {"mapassign_fast64", funcTag, 87}, |
| {"mapassign_fast64ptr", funcTag, 95}, |
| {"mapassign_faststr", funcTag, 88}, |
| {"mapiterinit", funcTag, 96}, |
| {"mapdelete", funcTag, 96}, |
| {"mapdelete_fast32", funcTag, 97}, |
| {"mapdelete_fast64", funcTag, 98}, |
| {"mapdelete_faststr", funcTag, 99}, |
| {"mapiternext", funcTag, 100}, |
| {"mapclear", funcTag, 101}, |
| {"makechan64", funcTag, 103}, |
| {"makechan", funcTag, 104}, |
| {"chanrecv1", funcTag, 106}, |
| {"chanrecv2", funcTag, 107}, |
| {"chansend1", funcTag, 109}, |
| {"closechan", funcTag, 110}, |
| {"chanlen", funcTag, 111}, |
| {"chancap", funcTag, 111}, |
| {"writeBarrier", varTag, 113}, |
| {"typedmemmove", funcTag, 114}, |
| {"typedmemclr", funcTag, 115}, |
| {"typedslicecopy", funcTag, 116}, |
| {"selectnbsend", funcTag, 117}, |
| {"selectnbrecv", funcTag, 118}, |
| {"selectsetpc", funcTag, 119}, |
| {"selectgo", funcTag, 120}, |
| {"block", funcTag, 9}, |
| {"makeslice", funcTag, 121}, |
| {"makeslice64", funcTag, 122}, |
| {"makeslicecopy", funcTag, 123}, |
| {"growslice", funcTag, 125}, |
| {"unsafeslicecheckptr", funcTag, 126}, |
| {"panicunsafeslicelen", funcTag, 9}, |
| {"panicunsafeslicenilptr", funcTag, 9}, |
| {"unsafestringcheckptr", funcTag, 127}, |
| {"panicunsafestringlen", funcTag, 9}, |
| {"panicunsafestringnilptr", funcTag, 9}, |
| {"memmove", funcTag, 128}, |
| {"memclrNoHeapPointers", funcTag, 129}, |
| {"memclrHasPointers", funcTag, 129}, |
| {"memequal", funcTag, 130}, |
| {"memequal0", funcTag, 131}, |
| {"memequal8", funcTag, 131}, |
| {"memequal16", funcTag, 131}, |
| {"memequal32", funcTag, 131}, |
| {"memequal64", funcTag, 131}, |
| {"memequal128", funcTag, 131}, |
| {"f32equal", funcTag, 132}, |
| {"f64equal", funcTag, 132}, |
| {"c64equal", funcTag, 132}, |
| {"c128equal", funcTag, 132}, |
| {"strequal", funcTag, 132}, |
| {"interequal", funcTag, 132}, |
| {"nilinterequal", funcTag, 132}, |
| {"memhash", funcTag, 133}, |
| {"memhash0", funcTag, 134}, |
| {"memhash8", funcTag, 134}, |
| {"memhash16", funcTag, 134}, |
| {"memhash32", funcTag, 134}, |
| {"memhash64", funcTag, 134}, |
| {"memhash128", funcTag, 134}, |
| {"f32hash", funcTag, 135}, |
| {"f64hash", funcTag, 135}, |
| {"c64hash", funcTag, 135}, |
| {"c128hash", funcTag, 135}, |
| {"strhash", funcTag, 135}, |
| {"interhash", funcTag, 135}, |
| {"nilinterhash", funcTag, 135}, |
| {"int64div", funcTag, 136}, |
| {"uint64div", funcTag, 137}, |
| {"int64mod", funcTag, 136}, |
| {"uint64mod", funcTag, 137}, |
| {"float64toint64", funcTag, 138}, |
| {"float64touint64", funcTag, 139}, |
| {"float64touint32", funcTag, 140}, |
| {"int64tofloat64", funcTag, 141}, |
| {"int64tofloat32", funcTag, 143}, |
| {"uint64tofloat64", funcTag, 144}, |
| {"uint64tofloat32", funcTag, 145}, |
| {"uint32tofloat64", funcTag, 146}, |
| {"complex128div", funcTag, 147}, |
| {"racefuncenter", funcTag, 31}, |
| {"racefuncexit", funcTag, 9}, |
| {"raceread", funcTag, 31}, |
| {"racewrite", funcTag, 31}, |
| {"racereadrange", funcTag, 148}, |
| {"racewriterange", funcTag, 148}, |
| {"msanread", funcTag, 148}, |
| {"msanwrite", funcTag, 148}, |
| {"msanmove", funcTag, 149}, |
| {"asanread", funcTag, 148}, |
| {"asanwrite", funcTag, 148}, |
| {"checkptrAlignment", funcTag, 150}, |
| {"checkptrArithmetic", funcTag, 152}, |
| {"libfuzzerTraceCmp1", funcTag, 153}, |
| {"libfuzzerTraceCmp2", funcTag, 154}, |
| {"libfuzzerTraceCmp4", funcTag, 155}, |
| {"libfuzzerTraceCmp8", funcTag, 156}, |
| {"libfuzzerTraceConstCmp1", funcTag, 153}, |
| {"libfuzzerTraceConstCmp2", funcTag, 154}, |
| {"libfuzzerTraceConstCmp4", funcTag, 155}, |
| {"libfuzzerTraceConstCmp8", funcTag, 156}, |
| {"libfuzzerHookStrCmp", funcTag, 157}, |
| {"libfuzzerHookEqualFold", funcTag, 157}, |
| {"addCovMeta", funcTag, 159}, |
| {"x86HasPOPCNT", varTag, 6}, |
| {"x86HasSSE41", varTag, 6}, |
| {"x86HasFMA", varTag, 6}, |
| {"armHasVFPv4", varTag, 6}, |
| {"arm64HasATOMICS", varTag, 6}, |
| {"asanregisterglobals", funcTag, 129}, |
| } |
| |
| func runtimeTypes() []*types.Type { |
| var typs [160]*types.Type |
| typs[0] = types.ByteType |
| typs[1] = types.NewPtr(typs[0]) |
| typs[2] = types.Types[types.TANY] |
| typs[3] = types.NewPtr(typs[2]) |
| typs[4] = newSig(params(typs[1]), params(typs[3])) |
| typs[5] = types.Types[types.TUINTPTR] |
| typs[6] = types.Types[types.TBOOL] |
| typs[7] = types.Types[types.TUNSAFEPTR] |
| typs[8] = newSig(params(typs[5], typs[1], typs[6]), params(typs[7])) |
| typs[9] = newSig(nil, nil) |
| typs[10] = types.Types[types.TINTER] |
| typs[11] = newSig(params(typs[10]), nil) |
| typs[12] = types.Types[types.TINT32] |
| typs[13] = types.NewPtr(typs[12]) |
| typs[14] = newSig(params(typs[13]), params(typs[10])) |
| typs[15] = types.Types[types.TINT] |
| typs[16] = newSig(params(typs[15], typs[15]), nil) |
| typs[17] = types.Types[types.TUINT] |
| typs[18] = newSig(params(typs[17], typs[15]), nil) |
| typs[19] = newSig(params(typs[6]), nil) |
| typs[20] = types.Types[types.TFLOAT64] |
| typs[21] = newSig(params(typs[20]), nil) |
| typs[22] = types.Types[types.TINT64] |
| typs[23] = newSig(params(typs[22]), nil) |
| typs[24] = types.Types[types.TUINT64] |
| typs[25] = newSig(params(typs[24]), nil) |
| typs[26] = types.Types[types.TCOMPLEX128] |
| typs[27] = newSig(params(typs[26]), nil) |
| typs[28] = types.Types[types.TSTRING] |
| typs[29] = newSig(params(typs[28]), nil) |
| typs[30] = newSig(params(typs[2]), nil) |
| typs[31] = newSig(params(typs[5]), nil) |
| typs[32] = types.NewArray(typs[0], 32) |
| typs[33] = types.NewPtr(typs[32]) |
| typs[34] = newSig(params(typs[33], typs[28], typs[28]), params(typs[28])) |
| typs[35] = newSig(params(typs[33], typs[28], typs[28], typs[28]), params(typs[28])) |
| typs[36] = newSig(params(typs[33], typs[28], typs[28], typs[28], typs[28]), params(typs[28])) |
| typs[37] = newSig(params(typs[33], typs[28], typs[28], typs[28], typs[28], typs[28]), params(typs[28])) |
| typs[38] = types.NewSlice(typs[28]) |
| typs[39] = newSig(params(typs[33], typs[38]), params(typs[28])) |
| typs[40] = types.NewSlice(typs[0]) |
| typs[41] = newSig(params(typs[28], typs[28]), params(typs[40])) |
| typs[42] = newSig(params(typs[28], typs[28], typs[28]), params(typs[40])) |
| typs[43] = newSig(params(typs[28], typs[28], typs[28], typs[28]), params(typs[40])) |
| typs[44] = newSig(params(typs[28], typs[28], typs[28], typs[28], typs[28]), params(typs[40])) |
| typs[45] = newSig(params(typs[38]), params(typs[40])) |
| typs[46] = newSig(params(typs[28], typs[28]), params(typs[15])) |
| typs[47] = types.NewArray(typs[0], 4) |
| typs[48] = types.NewPtr(typs[47]) |
| typs[49] = newSig(params(typs[48], typs[22]), params(typs[28])) |
| typs[50] = newSig(params(typs[33], typs[1], typs[15]), params(typs[28])) |
| typs[51] = newSig(params(typs[1], typs[15]), params(typs[28])) |
| typs[52] = types.RuneType |
| typs[53] = types.NewSlice(typs[52]) |
| typs[54] = newSig(params(typs[33], typs[53]), params(typs[28])) |
| typs[55] = newSig(params(typs[33], typs[28]), params(typs[40])) |
| typs[56] = types.NewArray(typs[52], 32) |
| typs[57] = types.NewPtr(typs[56]) |
| typs[58] = newSig(params(typs[57], typs[28]), params(typs[53])) |
| typs[59] = newSig(params(typs[3], typs[15], typs[3], typs[15], typs[5]), params(typs[15])) |
| typs[60] = newSig(params(typs[28], typs[15]), params(typs[52], typs[15])) |
| typs[61] = newSig(params(typs[28]), params(typs[15])) |
| typs[62] = newSig(params(typs[1], typs[3]), params(typs[7])) |
| typs[63] = types.Types[types.TUINT16] |
| typs[64] = newSig(params(typs[63]), params(typs[7])) |
| typs[65] = types.Types[types.TUINT32] |
| typs[66] = newSig(params(typs[65]), params(typs[7])) |
| typs[67] = newSig(params(typs[24]), params(typs[7])) |
| typs[68] = newSig(params(typs[28]), params(typs[7])) |
| typs[69] = types.Types[types.TUINT8] |
| typs[70] = types.NewSlice(typs[69]) |
| typs[71] = newSig(params(typs[70]), params(typs[7])) |
| typs[72] = newSig(params(typs[1], typs[1]), params(typs[1])) |
| typs[73] = newSig(params(typs[1], typs[1], typs[1]), nil) |
| typs[74] = newSig(params(typs[1]), nil) |
| typs[75] = newSig(params(typs[1], typs[1]), params(typs[15], typs[1])) |
| typs[76] = types.NewPtr(typs[5]) |
| typs[77] = newSig(params(typs[76], typs[7], typs[7]), params(typs[6])) |
| typs[78] = newSig(params(typs[15]), nil) |
| typs[79] = newSig(nil, params(typs[10])) |
| typs[80] = newSig(nil, params(typs[65])) |
| typs[81] = types.NewMap(typs[2], typs[2]) |
| typs[82] = newSig(params(typs[1], typs[22], typs[3]), params(typs[81])) |
| typs[83] = newSig(params(typs[1], typs[15], typs[3]), params(typs[81])) |
| typs[84] = newSig(nil, params(typs[81])) |
| typs[85] = newSig(params(typs[1], typs[81], typs[3]), params(typs[3])) |
| typs[86] = newSig(params(typs[1], typs[81], typs[65]), params(typs[3])) |
| typs[87] = newSig(params(typs[1], typs[81], typs[24]), params(typs[3])) |
| typs[88] = newSig(params(typs[1], typs[81], typs[28]), params(typs[3])) |
| typs[89] = newSig(params(typs[1], typs[81], typs[3], typs[1]), params(typs[3])) |
| typs[90] = newSig(params(typs[1], typs[81], typs[3]), params(typs[3], typs[6])) |
| typs[91] = newSig(params(typs[1], typs[81], typs[65]), params(typs[3], typs[6])) |
| typs[92] = newSig(params(typs[1], typs[81], typs[24]), params(typs[3], typs[6])) |
| typs[93] = newSig(params(typs[1], typs[81], typs[28]), params(typs[3], typs[6])) |
| typs[94] = newSig(params(typs[1], typs[81], typs[3], typs[1]), params(typs[3], typs[6])) |
| typs[95] = newSig(params(typs[1], typs[81], typs[7]), params(typs[3])) |
| typs[96] = newSig(params(typs[1], typs[81], typs[3]), nil) |
| typs[97] = newSig(params(typs[1], typs[81], typs[65]), nil) |
| typs[98] = newSig(params(typs[1], typs[81], typs[24]), nil) |
| typs[99] = newSig(params(typs[1], typs[81], typs[28]), nil) |
| typs[100] = newSig(params(typs[3]), nil) |
| typs[101] = newSig(params(typs[1], typs[81]), nil) |
| typs[102] = types.NewChan(typs[2], types.Cboth) |
| typs[103] = newSig(params(typs[1], typs[22]), params(typs[102])) |
| typs[104] = newSig(params(typs[1], typs[15]), params(typs[102])) |
| typs[105] = types.NewChan(typs[2], types.Crecv) |
| typs[106] = newSig(params(typs[105], typs[3]), nil) |
| typs[107] = newSig(params(typs[105], typs[3]), params(typs[6])) |
| typs[108] = types.NewChan(typs[2], types.Csend) |
| typs[109] = newSig(params(typs[108], typs[3]), nil) |
| typs[110] = newSig(params(typs[108]), nil) |
| typs[111] = newSig(params(typs[2]), params(typs[15])) |
| typs[112] = types.NewArray(typs[0], 3) |
| typs[113] = types.NewStruct([]*types.Field{types.NewField(src.NoXPos, Lookup("enabled"), typs[6]), types.NewField(src.NoXPos, Lookup("pad"), typs[112]), types.NewField(src.NoXPos, Lookup("cgo"), typs[6]), types.NewField(src.NoXPos, Lookup("alignme"), typs[24])}) |
| typs[114] = newSig(params(typs[1], typs[3], typs[3]), nil) |
| typs[115] = newSig(params(typs[1], typs[3]), nil) |
| typs[116] = newSig(params(typs[1], typs[3], typs[15], typs[3], typs[15]), params(typs[15])) |
| typs[117] = newSig(params(typs[108], typs[3]), params(typs[6])) |
| typs[118] = newSig(params(typs[3], typs[105]), params(typs[6], typs[6])) |
| typs[119] = newSig(params(typs[76]), nil) |
| typs[120] = newSig(params(typs[1], typs[1], typs[76], typs[15], typs[15], typs[6]), params(typs[15], typs[6])) |
| typs[121] = newSig(params(typs[1], typs[15], typs[15]), params(typs[7])) |
| typs[122] = newSig(params(typs[1], typs[22], typs[22]), params(typs[7])) |
| typs[123] = newSig(params(typs[1], typs[15], typs[15], typs[7]), params(typs[7])) |
| typs[124] = types.NewSlice(typs[2]) |
| typs[125] = newSig(params(typs[3], typs[15], typs[15], typs[15], typs[1]), params(typs[124])) |
| typs[126] = newSig(params(typs[1], typs[7], typs[22]), nil) |
| typs[127] = newSig(params(typs[7], typs[22]), nil) |
| typs[128] = newSig(params(typs[3], typs[3], typs[5]), nil) |
| typs[129] = newSig(params(typs[7], typs[5]), nil) |
| typs[130] = newSig(params(typs[3], typs[3], typs[5]), params(typs[6])) |
| typs[131] = newSig(params(typs[3], typs[3]), params(typs[6])) |
| typs[132] = newSig(params(typs[7], typs[7]), params(typs[6])) |
| typs[133] = newSig(params(typs[3], typs[5], typs[5]), params(typs[5])) |
| typs[134] = newSig(params(typs[7], typs[5]), params(typs[5])) |
| typs[135] = newSig(params(typs[3], typs[5]), params(typs[5])) |
| typs[136] = newSig(params(typs[22], typs[22]), params(typs[22])) |
| typs[137] = newSig(params(typs[24], typs[24]), params(typs[24])) |
| typs[138] = newSig(params(typs[20]), params(typs[22])) |
| typs[139] = newSig(params(typs[20]), params(typs[24])) |
| typs[140] = newSig(params(typs[20]), params(typs[65])) |
| typs[141] = newSig(params(typs[22]), params(typs[20])) |
| typs[142] = types.Types[types.TFLOAT32] |
| typs[143] = newSig(params(typs[22]), params(typs[142])) |
| typs[144] = newSig(params(typs[24]), params(typs[20])) |
| typs[145] = newSig(params(typs[24]), params(typs[142])) |
| typs[146] = newSig(params(typs[65]), params(typs[20])) |
| typs[147] = newSig(params(typs[26], typs[26]), params(typs[26])) |
| typs[148] = newSig(params(typs[5], typs[5]), nil) |
| typs[149] = newSig(params(typs[5], typs[5], typs[5]), nil) |
| typs[150] = newSig(params(typs[7], typs[1], typs[5]), nil) |
| typs[151] = types.NewSlice(typs[7]) |
| typs[152] = newSig(params(typs[7], typs[151]), nil) |
| typs[153] = newSig(params(typs[69], typs[69], typs[17]), nil) |
| typs[154] = newSig(params(typs[63], typs[63], typs[17]), nil) |
| typs[155] = newSig(params(typs[65], typs[65], typs[17]), nil) |
| typs[156] = newSig(params(typs[24], typs[24], typs[17]), nil) |
| typs[157] = newSig(params(typs[28], typs[28], typs[17]), nil) |
| typs[158] = types.NewArray(typs[0], 16) |
| typs[159] = newSig(params(typs[7], typs[65], typs[158], typs[28], typs[15], typs[69], typs[69]), params(typs[65])) |
| return typs[:] |
| } |
| |
| var coverageDecls = [...]struct { |
| name string |
| tag int |
| typ int |
| }{ |
| {"initHook", funcTag, 1}, |
| } |
| |
| func coverageTypes() []*types.Type { |
| var typs [2]*types.Type |
| typs[0] = types.Types[types.TBOOL] |
| typs[1] = newSig(params(typs[0]), nil) |
| return typs[:] |
| } |