AsmJsByteCodeDumper.cpp 84 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft Corporation and contributors. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. #include "RuntimeByteCodePch.h"
  6. #ifndef TEMP_DISABLE_ASMJS
  7. #if DBG_DUMP
  8. #include "Language/AsmJsModule.h"
  9. #include "ByteCode/AsmJsByteCodeDumper.h"
  10. namespace Js
  11. {
  12. void AsmJsByteCodeDumper::Dump(AsmJsFunc* func, FunctionBody* body)
  13. {
  14. ByteCodeReader reader;
  15. reader.Create(body);
  16. StatementReader<FunctionBody::StatementMapList> statementReader;
  17. statementReader.Create(body);
  18. body->DumpFullFunctionName();
  19. Output::Print(_u(" Asm.js ("));
  20. const ArgSlot argCount = func->GetArgCount();
  21. for (ArgSlot i = 0; i < argCount; i++)
  22. {
  23. AsmJsType var = func->GetArgType(i);
  24. if (i > 0)
  25. {
  26. Output::Print(_u(", "));
  27. }
  28. if (var.isDouble())
  29. {
  30. Output::Print(_u("+In%hu"), i);
  31. }
  32. else if (var.isFloat())
  33. {
  34. Output::Print(_u("flt(In%hu)"), i);
  35. }
  36. else if (var.isInt())
  37. {
  38. Output::Print(_u("In%hu|0"), i);
  39. }
  40. else if (var.isSIMDType())
  41. {
  42. switch (var.GetWhich())
  43. {
  44. case AsmJsType::Int32x4:
  45. Output::Print(_u("I4(In%hu)"), i);
  46. break;
  47. case AsmJsType::Int8x16:
  48. Output::Print(_u("I16(In%hu)"), i);
  49. break;
  50. case AsmJsType::Float32x4:
  51. Output::Print(_u("F4(In%hu)"), i);
  52. break;
  53. case AsmJsType::Float64x2:
  54. Output::Print(_u("D2(In%hu)"), i);
  55. break;
  56. }
  57. }
  58. else
  59. {
  60. Assert(UNREACHED);
  61. }
  62. }
  63. Output::Print(_u(") "));
  64. Output::Print(_u("(size: %d [%d])\n"), body->GetByteCodeCount(), body->GetByteCodeWithoutLDACount());
  65. const auto& intRegisters = func->GetRegisterSpace<int>();
  66. const auto& doubleRegisters = func->GetRegisterSpace<double>();
  67. const auto& floatRegisters = func->GetRegisterSpace<float>();
  68. Output::Print(
  69. _u(" Integer : %u locals (%u temps from I%u)\n"),
  70. intRegisters.GetVarCount(),
  71. intRegisters.GetTmpCount(),
  72. intRegisters.GetFirstTmpRegister());
  73. Output::Print(
  74. _u(" Doubles : %u locals (%u temps from D%u)\n"),
  75. doubleRegisters.GetVarCount(),
  76. doubleRegisters.GetTmpCount(),
  77. doubleRegisters.GetFirstTmpRegister());
  78. Output::Print(
  79. _u(" Floats : %u locals (%u temps from F%u)\n"),
  80. floatRegisters.GetVarCount(),
  81. floatRegisters.GetTmpCount(),
  82. floatRegisters.GetFirstTmpRegister());
  83. const auto& simdRegisters = func->GetRegisterSpace<AsmJsSIMDValue>();
  84. Output::Print(
  85. _u(" SIMDs : %u locals (%u temps from SIMD%u)\n"),
  86. simdRegisters.GetVarCount(),
  87. simdRegisters.GetTmpCount(),
  88. simdRegisters.GetFirstTmpRegister());
  89. uint32 statementIndex = 0;
  90. DumpConstants(func, body);
  91. Output::Print(_u(" Implicit Arg Ins:\n ======== =====\n "));
  92. int iArg = intRegisters.GetConstCount(), dArg = doubleRegisters.GetConstCount(), fArg = floatRegisters.GetConstCount();
  93. int simdArg = simdRegisters.GetConstCount();
  94. for (ArgSlot i = 0; i < argCount; i++)
  95. {
  96. const AsmJsType& var = func->GetArgType(i);
  97. if (var.isDouble())
  98. {
  99. Output::Print(_u(" D%d In%d"), dArg++, i);
  100. }
  101. else if (var.isFloat())
  102. {
  103. Output::Print(_u(" F%d In%d"), fArg++, i);
  104. }
  105. else if (var.isInt())
  106. {
  107. Output::Print(_u(" I%d In%d"), iArg++, i);
  108. }
  109. else if (var.isSIMDType())
  110. {
  111. Output::Print(_u(" SIMD%d In%d"), simdArg++, i);
  112. }
  113. else
  114. {
  115. Assert(UNREACHED);
  116. }
  117. Output::Print(_u("\n "));
  118. }
  119. Output::Print(_u("\n"));
  120. if (func->GetReturnType() == AsmJsRetType::Void)
  121. {
  122. Output::Print(_u(" 0000 %-20s R0\n"), OpCodeUtilAsmJs::GetOpCodeName(OpCodeAsmJs::LdUndef));
  123. }
  124. while (true)
  125. {
  126. while (statementReader.AtStatementBoundary(&reader))
  127. {
  128. body->PrintStatementSourceLine(statementIndex);
  129. statementIndex = statementReader.MoveNextStatementBoundary();
  130. }
  131. int byteOffset = reader.GetCurrentOffset();
  132. LayoutSize layoutSize;
  133. OpCodeAsmJs op = reader.ReadAsmJsOp(layoutSize);
  134. if (op == OpCodeAsmJs::EndOfBlock)
  135. {
  136. Assert(reader.GetCurrentOffset() == body->GetByteCode()->GetLength());
  137. break;
  138. }
  139. Output::Print(_u(" %04x %2s"), byteOffset, layoutSize == LargeLayout ? _u("L-") : layoutSize == MediumLayout ? _u("M-") : _u(""));
  140. DumpOp(op, layoutSize, reader, body);
  141. if (Js::Configuration::Global.flags.Verbose)
  142. {
  143. int layoutStart = byteOffset + 2; // Account for the prefix op
  144. int endByteOffset = reader.GetCurrentOffset();
  145. Output::SkipToColumn(70);
  146. if (layoutSize == LargeLayout)
  147. {
  148. Output::Print(_u("%02X "),
  149. op > Js::OpCodeAsmJs::MaxByteSizedOpcodes ?
  150. Js::OpCodeAsmJs::ExtendedLargeLayoutPrefix : Js::OpCodeAsmJs::LargeLayoutPrefix);
  151. }
  152. else if (layoutSize == MediumLayout)
  153. {
  154. Output::Print(_u("%02X "),
  155. op > Js::OpCodeAsmJs::MaxByteSizedOpcodes ?
  156. Js::OpCodeAsmJs::ExtendedMediumLayoutPrefix : Js::OpCodeAsmJs::MediumLayoutPrefix);
  157. }
  158. else
  159. {
  160. Assert(layoutSize == SmallLayout);
  161. if (op > Js::OpCodeAsmJs::MaxByteSizedOpcodes)
  162. {
  163. Output::Print(_u("%02X "), Js::OpCodeAsmJs::ExtendedOpcodePrefix);
  164. }
  165. else
  166. {
  167. Output::Print(_u(" "));
  168. layoutStart--; // don't have a prefix
  169. }
  170. }
  171. Output::Print(_u("%02x"), (byte)op);
  172. for (int i = layoutStart; i < endByteOffset; i++)
  173. {
  174. Output::Print(_u(" %02x"), reader.GetRawByte(i));
  175. }
  176. }
  177. Output::Print(_u("\n"));
  178. }
  179. if (statementReader.AtStatementBoundary(&reader))
  180. {
  181. body->PrintStatementSourceLine(statementIndex);
  182. statementIndex = statementReader.MoveNextStatementBoundary();
  183. }
  184. Output::Print(_u("\n"));
  185. Output::Flush();
  186. }
  187. void AsmJsByteCodeDumper::DumpConstants(AsmJsFunc* func, FunctionBody* body)
  188. {
  189. const auto& intRegisters = func->GetRegisterSpace<int>();
  190. const auto& doubleRegisters = func->GetRegisterSpace<double>();
  191. const auto& floatRegisters = func->GetRegisterSpace<float>();
  192. int nbIntConst = intRegisters.GetConstCount();
  193. int nbDoubleConst = doubleRegisters.GetConstCount();
  194. int nbFloatConst = floatRegisters.GetConstCount();
  195. int* constTable = (int*)((Var*)body->GetConstTable() + (AsmJsFunctionMemory::RequiredVarConstants - 1));
  196. if (nbIntConst > 0)
  197. {
  198. Output::Print(_u(" Constant Integer:\n ======== =======\n "));
  199. for (int i = 0; i < nbIntConst; i++)
  200. {
  201. Output::Print(_u(" I%d %d\n "), i, *constTable);
  202. ++constTable;
  203. }
  204. }
  205. float* floatTable = (float*)constTable;
  206. Output::Print(_u("\n"));
  207. if (nbFloatConst > 0)
  208. {
  209. Output::Print(_u(" Constant Floats:\n ======== ======\n "));
  210. for (int i = 0; i < nbFloatConst; i++)
  211. {
  212. Output::Print(_u(" F%d %.4f\n "), i, *floatTable);
  213. ++floatTable;
  214. ++constTable;
  215. }
  216. }
  217. double* doubleTable = (double*)constTable;
  218. Output::Print(_u("\n"));
  219. if (nbDoubleConst > 0)
  220. {
  221. Output::Print(_u(" Constant Doubles:\n ======== ======\n "));
  222. for (int i = 0; i < nbDoubleConst; i++)
  223. {
  224. Output::Print(_u(" D%d %.4f\n "), i, *doubleTable);
  225. ++doubleTable;
  226. }
  227. }
  228. // SIMD reg space is un-typed.
  229. // We print each register in its 3 possible types to ease debugging.
  230. const auto& simdRegisters = func->GetRegisterSpace<AsmJsSIMDValue>();
  231. int nbSimdConst = simdRegisters.GetConstCount();
  232. Output::Print(_u("\n"));
  233. if (nbSimdConst > 0)
  234. {
  235. AsmJsSIMDValue* simdTable = (AsmJsSIMDValue*)doubleTable;
  236. Output::Print(_u(" Constant SIMD values:\n ======== ======\n "));
  237. for (int i = 0; i < nbSimdConst; i++)
  238. {
  239. Output::Print(_u("SIMD%d "), i);
  240. Output::Print(_u("\tI4(%d, %d, %d, %d),"), simdTable->i32[SIMD_X], simdTable->i32[SIMD_Y], simdTable->i32[SIMD_Z], simdTable->i32[SIMD_W]);
  241. Output::Print(_u("\tF4(%.4f, %.4f, %.4f, %.4f),"), simdTable->f32[SIMD_X], simdTable->f32[SIMD_Y], simdTable->f32[SIMD_Z], simdTable->f32[SIMD_W]);
  242. Output::Print(_u("\tD2(%.4f, %.4f)\n "), simdTable->f64[SIMD_X], simdTable->f64[SIMD_Y]);
  243. Output::Print(_u("\tI8(%d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d )\n "),
  244. simdTable->i8[0], simdTable->i8[1], simdTable->i8[2], simdTable->i8[3], simdTable->i8[4], simdTable->i8[5], simdTable->i8[6], simdTable->i8[7],
  245. simdTable->i8[8], simdTable->i8[9], simdTable->i8[10], simdTable->i8[11], simdTable->i8[12], simdTable->i8[13], simdTable->i8[14], simdTable->i8[15]);
  246. ++simdTable;
  247. }
  248. }
  249. Output::Print(_u("\n"));
  250. }
  251. void AsmJsByteCodeDumper::DumpOp(OpCodeAsmJs op, LayoutSize layoutSize, ByteCodeReader& reader, FunctionBody* dumpFunction)
  252. {
  253. Output::Print(_u("%-20s"), OpCodeUtilAsmJs::GetOpCodeName(op));
  254. OpLayoutTypeAsmJs nType = OpCodeUtilAsmJs::GetOpCodeLayout(op);
  255. switch (layoutSize * OpLayoutTypeAsmJs::Count + nType)
  256. {
  257. #define LAYOUT_TYPE(layout) \
  258. case OpLayoutTypeAsmJs::layout: \
  259. Assert(layoutSize == SmallLayout); \
  260. Dump##layout(op, reader.layout(), dumpFunction, reader); \
  261. break;
  262. #define LAYOUT_TYPE_WMS(layout) \
  263. case SmallLayout * OpLayoutTypeAsmJs::Count + OpLayoutTypeAsmJs::layout: \
  264. Dump##layout(op, reader.layout##_Small(), dumpFunction, reader); \
  265. break; \
  266. case MediumLayout * OpLayoutTypeAsmJs::Count + OpLayoutTypeAsmJs::layout: \
  267. Dump##layout(op, reader.layout##_Medium(), dumpFunction, reader); \
  268. break; \
  269. case LargeLayout * OpLayoutTypeAsmJs::Count + OpLayoutTypeAsmJs::layout: \
  270. Dump##layout(op, reader.layout##_Large(), dumpFunction, reader); \
  271. break;
  272. #include "LayoutTypesAsmJs.h"
  273. default:
  274. AssertMsg(false, "Unknown OpLayout");
  275. break;
  276. }
  277. }
  278. void AsmJsByteCodeDumper::DumpIntReg(RegSlot reg)
  279. {
  280. Output::Print(_u(" I%d "), (int)reg);
  281. }
  282. void AsmJsByteCodeDumper::DumpDoubleReg(RegSlot reg)
  283. {
  284. Output::Print(_u(" D%d "), (int)reg);
  285. }
  286. void AsmJsByteCodeDumper::DumpFloatReg(RegSlot reg)
  287. {
  288. Output::Print(_u(" F%d "), (int)reg);
  289. }
  290. void AsmJsByteCodeDumper::DumpR8Float(float value)
  291. {
  292. Output::Print(_u(" float:%f "), value);
  293. }
  294. // Float32x4
  295. void AsmJsByteCodeDumper::DumpFloat32x4Reg(RegSlot reg)
  296. {
  297. Output::Print(_u("F4_%d "), (int)reg);
  298. }
  299. // Int32x4
  300. void AsmJsByteCodeDumper::DumpInt32x4Reg(RegSlot reg)
  301. {
  302. Output::Print(_u("I4_%d "), (int)reg);
  303. }
  304. void AsmJsByteCodeDumper::DumpUint32x4Reg(RegSlot reg)
  305. {
  306. Output::Print(_u("U4_%d "), (int)reg);
  307. }
  308. void AsmJsByteCodeDumper::DumpInt16x8Reg(RegSlot reg)
  309. {
  310. Output::Print(_u("I8_%d "), (int)reg);
  311. }
  312. // Int8x16
  313. void AsmJsByteCodeDumper::DumpInt8x16Reg(RegSlot reg)
  314. {
  315. Output::Print(_u("I16_%d "), (int)reg);
  316. }
  317. void AsmJsByteCodeDumper::DumpUint16x8Reg(RegSlot reg)
  318. {
  319. Output::Print(_u("U8_%d "), (int)reg);
  320. }
  321. void AsmJsByteCodeDumper::DumpUint8x16Reg(RegSlot reg)
  322. {
  323. Output::Print(_u("U16_%d "), (int)reg);
  324. }
  325. // Bool32x4
  326. void AsmJsByteCodeDumper::DumpBool32x4Reg(RegSlot reg)
  327. {
  328. Output::Print(_u("B4_%d "), (int)reg);
  329. }
  330. // Bool16x8
  331. void AsmJsByteCodeDumper::DumpBool16x8Reg(RegSlot reg)
  332. {
  333. Output::Print(_u("B8_%d "), (int)reg);
  334. }
  335. // Bool32x4
  336. void AsmJsByteCodeDumper::DumpBool8x16Reg(RegSlot reg)
  337. {
  338. Output::Print(_u("B16_%d "), (int)reg);
  339. }
  340. // Float64x2
  341. void AsmJsByteCodeDumper::DumpFloat64x2Reg(RegSlot reg)
  342. {
  343. Output::Print(_u("D2_%d "), (int)reg);
  344. }
  345. template <class T>
  346. void AsmJsByteCodeDumper::DumpElementSlot(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  347. {
  348. switch (op)
  349. {
  350. case OpCodeAsmJs::LdSlot:
  351. case OpCodeAsmJs::LdSlotArr:
  352. Output::Print(_u(" R%d = R%d[%d] "), data->Value, data->Instance, data->SlotIndex);
  353. break;
  354. case OpCodeAsmJs::LdArr_Func:
  355. Output::Print(_u(" R%d = R%d[I%d] "), data->Value, data->Instance, data->SlotIndex);
  356. break;
  357. case OpCodeAsmJs::StSlot_Int:
  358. Output::Print(_u(" R%d[%d] = I%d "), data->Instance, data->SlotIndex, data->Value);
  359. break;
  360. case OpCodeAsmJs::StSlot_Flt:
  361. Output::Print(_u(" R%d[%d] = F%d "), data->Instance, data->SlotIndex, data->Value);
  362. break;
  363. case OpCodeAsmJs::StSlot_Db:
  364. Output::Print(_u(" R%d[%d] = D%d "), data->Instance, data->SlotIndex, data->Value);
  365. break;
  366. case OpCodeAsmJs::LdSlot_Int:
  367. Output::Print(_u(" I%d = R%d[%d] "), data->Value, data->Instance, data->SlotIndex);
  368. break;
  369. case OpCodeAsmJs::LdSlot_Flt:
  370. Output::Print(_u(" F%d = R%d[%d] "), data->Value, data->Instance, data->SlotIndex);
  371. break;
  372. case OpCodeAsmJs::LdSlot_Db:
  373. Output::Print(_u(" D%d = R%d[%d] "), data->Value, data->Instance, data->SlotIndex);
  374. break;
  375. case OpCodeAsmJs::Simd128_LdSlot_F4:
  376. Output::Print(_u(" F4_%d = R%d[%d] "), data->Value, data->Instance, data->SlotIndex);
  377. break;
  378. case OpCodeAsmJs::Simd128_LdSlot_I4:
  379. Output::Print(_u(" I4_%d = R%d[%d] "), data->Value, data->Instance, data->SlotIndex);
  380. break;
  381. case OpCodeAsmJs::Simd128_LdSlot_B4:
  382. Output::Print(_u(" B4_%d = R%d[%d] "), data->Value, data->Instance, data->SlotIndex);
  383. break;
  384. case OpCodeAsmJs::Simd128_LdSlot_B8:
  385. Output::Print(_u(" B8_%d = R%d[%d] "), data->Value, data->Instance, data->SlotIndex);
  386. break;
  387. case OpCodeAsmJs::Simd128_LdSlot_B16:
  388. Output::Print(_u(" B16_%d = R%d[%d] "), data->Value, data->Instance, data->SlotIndex);
  389. break;
  390. #if 0
  391. case OpCodeAsmJs::Simd128_LdSlot_D2:
  392. Output::Print(_u(" D2_%d = R%d[%d] "), data->Value, data->Instance, data->SlotIndex);
  393. break;
  394. #endif // 0
  395. case OpCodeAsmJs::Simd128_StSlot_F4:
  396. Output::Print(_u(" R%d[%d] = F4_%d"), data->Instance, data->SlotIndex, data->Value);
  397. break;
  398. case OpCodeAsmJs::Simd128_StSlot_I4:
  399. Output::Print(_u(" R%d[%d] = I4_%d"), data->Instance, data->SlotIndex, data->Value);
  400. break;
  401. case OpCodeAsmJs::Simd128_StSlot_B4:
  402. Output::Print(_u(" R%d[%d] = B4_%d"), data->Instance, data->SlotIndex, data->Value);
  403. break;
  404. case OpCodeAsmJs::Simd128_StSlot_B8:
  405. Output::Print(_u(" R%d[%d] = B8_%d"), data->Instance, data->SlotIndex, data->Value);
  406. break;
  407. case OpCodeAsmJs::Simd128_StSlot_B16:
  408. Output::Print(_u(" R%d[%d] = B16_%d"), data->Instance, data->SlotIndex, data->Value);
  409. break;
  410. #if 0
  411. case OpCodeAsmJs::Simd128_StSlot_D2:
  412. Output::Print(_u(" R%d[%d] = D2_%d"), data->Instance, data->SlotIndex, data->Value);
  413. break;
  414. #endif // 0
  415. default:
  416. {
  417. AssertMsg(false, "Unknown OpCode for OpLayoutElementSlot");
  418. break;
  419. }
  420. }
  421. }
  422. template <class T>
  423. void AsmJsByteCodeDumper::DumpAsmTypedArr(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  424. {
  425. const char16* heapTag = nullptr;
  426. char16 valueTag = 'I';
  427. switch (data->ViewType)
  428. {
  429. case ArrayBufferView::TYPE_INT8:
  430. heapTag = _u("HEAP8"); valueTag = 'I'; break;
  431. case ArrayBufferView::TYPE_UINT8:
  432. heapTag = _u("HEAPU8"); valueTag = 'U'; break;
  433. case ArrayBufferView::TYPE_INT16:
  434. heapTag = _u("HEAP16"); valueTag = 'I'; break;
  435. case ArrayBufferView::TYPE_UINT16:
  436. heapTag = _u("HEAPU16"); valueTag = 'U'; break;
  437. case ArrayBufferView::TYPE_INT32:
  438. heapTag = _u("HEAP32"); valueTag = 'I'; break;
  439. case ArrayBufferView::TYPE_UINT32:
  440. heapTag = _u("HEAPU32"); valueTag = 'U'; break;
  441. case ArrayBufferView::TYPE_FLOAT32:
  442. heapTag = _u("HEAPF32"); valueTag = 'F'; break;
  443. case ArrayBufferView::TYPE_FLOAT64:
  444. heapTag = _u("HEAPF64"); valueTag = 'D'; break;
  445. default:
  446. Assert(false);
  447. __assume(false);
  448. break;
  449. }
  450. switch (op)
  451. {
  452. case OpCodeAsmJs::LdArr:
  453. Output::Print(_u("%c%d = %s[I%d]"), valueTag, data->Value, heapTag, data->SlotIndex); break;
  454. case OpCodeAsmJs::LdArrConst:
  455. Output::Print(_u("%c%d = %s[%d]"), valueTag, data->Value, heapTag, data->SlotIndex); break;
  456. case OpCodeAsmJs::StArr:
  457. Output::Print(_u("%s[I%d] = %c%d"), heapTag, data->SlotIndex, valueTag, data->Value); break;
  458. case OpCodeAsmJs::StArrConst:
  459. Output::Print(_u("%s[%d] = %c%d"), heapTag, data->SlotIndex, valueTag, data->Value); break;
  460. default:
  461. Assert(false);
  462. __assume(false);
  463. break;
  464. }
  465. }
  466. void AsmJsByteCodeDumper::DumpStartCall(OpCodeAsmJs op, const unaligned OpLayoutStartCall* data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  467. {
  468. Assert(op == OpCodeAsmJs::StartCall || op == OpCodeAsmJs::I_StartCall);
  469. Output::Print(_u(" ArgSize: %d"), data->ArgCount);
  470. }
  471. template <class T>
  472. void AsmJsByteCodeDumper::DumpAsmCall(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  473. {
  474. if (data->Return != Constants::NoRegister)
  475. {
  476. DumpReg((RegSlot)data->Return);
  477. Output::Print(_u("="));
  478. }
  479. Output::Print(_u(" R%d(ArgCount: %d)"), data->Function, data->ArgCount);
  480. }
  481. template <class T>
  482. void AsmJsByteCodeDumper::DumpAsmUnsigned1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  483. {
  484. DumpU4(data->C1);
  485. }
  486. void AsmJsByteCodeDumper::DumpEmpty(OpCodeAsmJs op, const unaligned OpLayoutEmpty* data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  487. {
  488. // empty
  489. }
  490. void AsmJsByteCodeDumper::DumpAsmBr(OpCodeAsmJs op, const unaligned OpLayoutAsmBr* data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  491. {
  492. DumpOffset(data->RelativeJumpOffset, reader);
  493. }
  494. template <class T>
  495. void AsmJsByteCodeDumper::DumpAsmReg1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  496. {
  497. DumpReg(data->R0);
  498. }
  499. template <class T>
  500. void AsmJsByteCodeDumper::DumpAsmReg2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  501. {
  502. DumpReg(data->R0);
  503. DumpReg(data->R1);
  504. }
  505. template <class T>
  506. void AsmJsByteCodeDumper::DumpAsmReg3(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  507. {
  508. DumpReg(data->R0);
  509. DumpReg(data->R1);
  510. DumpReg(data->R2);
  511. }
  512. template <class T>
  513. void AsmJsByteCodeDumper::DumpAsmReg4(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  514. {
  515. DumpReg(data->R0);
  516. DumpReg(data->R1);
  517. DumpReg(data->R2);
  518. DumpReg(data->R3);
  519. }
  520. template <class T>
  521. void AsmJsByteCodeDumper::DumpAsmReg5(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  522. {
  523. DumpReg(data->R0);
  524. DumpReg(data->R1);
  525. DumpReg(data->R2);
  526. DumpReg(data->R3);
  527. DumpReg(data->R4);
  528. }
  529. template <class T>
  530. void AsmJsByteCodeDumper::DumpAsmReg6(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  531. {
  532. DumpReg(data->R0);
  533. DumpReg(data->R1);
  534. DumpReg(data->R2);
  535. DumpReg(data->R3);
  536. DumpReg(data->R4);
  537. DumpReg(data->R5);
  538. }
  539. template <class T>
  540. void AsmJsByteCodeDumper::DumpAsmReg7(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  541. {
  542. DumpReg(data->R0);
  543. DumpReg(data->R1);
  544. DumpReg(data->R2);
  545. DumpReg(data->R3);
  546. DumpReg(data->R4);
  547. DumpReg(data->R5);
  548. DumpReg(data->R6);
  549. }
  550. template <class T>
  551. void AsmJsByteCodeDumper::DumpAsmReg9(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  552. {
  553. DumpReg(data->R0);
  554. DumpReg(data->R1);
  555. DumpReg(data->R2);
  556. DumpReg(data->R3);
  557. DumpReg(data->R4);
  558. DumpReg(data->R5);
  559. DumpReg(data->R6);
  560. DumpReg(data->R7);
  561. DumpReg(data->R8);
  562. }
  563. template <class T>
  564. void AsmJsByteCodeDumper::DumpAsmReg10(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  565. {
  566. DumpReg(data->R0);
  567. DumpReg(data->R1);
  568. DumpReg(data->R2);
  569. DumpReg(data->R3);
  570. DumpReg(data->R4);
  571. DumpReg(data->R5);
  572. DumpReg(data->R6);
  573. DumpReg(data->R7);
  574. DumpReg(data->R8);
  575. DumpReg(data->R9);
  576. }
  577. template <class T>
  578. void AsmJsByteCodeDumper::DumpAsmReg11(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  579. {
  580. DumpReg(data->R0);
  581. DumpReg(data->R1);
  582. DumpReg(data->R2);
  583. DumpReg(data->R3);
  584. DumpReg(data->R4);
  585. DumpReg(data->R5);
  586. DumpReg(data->R6);
  587. DumpReg(data->R7);
  588. DumpReg(data->R8);
  589. DumpReg(data->R9);
  590. DumpReg(data->R10);
  591. }
  592. template <class T>
  593. void AsmJsByteCodeDumper::DumpAsmReg17(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  594. {
  595. DumpReg(data->R0);
  596. DumpReg(data->R1);
  597. DumpReg(data->R2);
  598. DumpReg(data->R3);
  599. DumpReg(data->R4);
  600. DumpReg(data->R5);
  601. DumpReg(data->R6);
  602. DumpReg(data->R7);
  603. DumpReg(data->R8);
  604. DumpReg(data->R9);
  605. DumpReg(data->R10);
  606. DumpReg(data->R11);
  607. DumpReg(data->R12);
  608. DumpReg(data->R13);
  609. DumpReg(data->R14);
  610. DumpReg(data->R15);
  611. DumpReg(data->R16);
  612. }
  613. template <class T>
  614. void AsmJsByteCodeDumper::DumpAsmReg18(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  615. {
  616. DumpReg(data->R0);
  617. DumpReg(data->R1);
  618. DumpReg(data->R2);
  619. DumpReg(data->R3);
  620. DumpReg(data->R4);
  621. DumpReg(data->R5);
  622. DumpReg(data->R6);
  623. DumpReg(data->R7);
  624. DumpReg(data->R8);
  625. DumpReg(data->R9);
  626. DumpReg(data->R10);
  627. DumpReg(data->R11);
  628. DumpReg(data->R12);
  629. DumpReg(data->R13);
  630. DumpReg(data->R14);
  631. DumpReg(data->R15);
  632. DumpReg(data->R16);
  633. DumpReg(data->R17);
  634. }
  635. template <class T>
  636. void AsmJsByteCodeDumper::DumpAsmReg19(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  637. {
  638. DumpReg(data->R0);
  639. DumpReg(data->R1);
  640. DumpReg(data->R2);
  641. DumpReg(data->R3);
  642. DumpReg(data->R4);
  643. DumpReg(data->R5);
  644. DumpReg(data->R6);
  645. DumpReg(data->R7);
  646. DumpReg(data->R8);
  647. DumpReg(data->R9);
  648. DumpReg(data->R10);
  649. DumpReg(data->R11);
  650. DumpReg(data->R12);
  651. DumpReg(data->R13);
  652. DumpReg(data->R14);
  653. DumpReg(data->R15);
  654. DumpReg(data->R16);
  655. DumpReg(data->R17);
  656. DumpReg(data->R18);
  657. }
  658. template <class T>
  659. void AsmJsByteCodeDumper::DumpAsmReg2IntConst1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  660. {
  661. DumpReg(data->R0);
  662. DumpReg(data->R1);
  663. DumpI4(data->C2);
  664. }
  665. template <class T>
  666. void AsmJsByteCodeDumper::DumpInt1Double1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  667. {
  668. DumpIntReg(data->I0);
  669. DumpDoubleReg(data->D1);
  670. }
  671. template <class T>
  672. void AsmJsByteCodeDumper::DumpInt1Float1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  673. {
  674. DumpIntReg(data->I0);
  675. DumpFloatReg(data->F1);
  676. }
  677. template <class T>
  678. void AsmJsByteCodeDumper::DumpDouble1Int1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  679. {
  680. DumpDoubleReg(data->D0);
  681. DumpIntReg(data->I1);
  682. }
  683. template <class T>
  684. void AsmJsByteCodeDumper::DumpDouble1Float1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  685. {
  686. DumpDoubleReg(data->D0);
  687. DumpFloatReg(data->F1);
  688. }
  689. template <class T>
  690. void AsmJsByteCodeDumper::DumpDouble1Reg1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  691. {
  692. DumpDoubleReg(data->D0);
  693. DumpReg(data->R1);
  694. }
  695. template <class T>
  696. void AsmJsByteCodeDumper::DumpFloat1Reg1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  697. {
  698. DumpFloatReg(data->F0);
  699. DumpReg(data->R1);
  700. }
  701. template <class T>
  702. void AsmJsByteCodeDumper::DumpInt1Reg1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  703. {
  704. DumpIntReg(data->I0);
  705. DumpReg(data->R1);
  706. }
  707. template <class T>
  708. void AsmJsByteCodeDumper::DumpReg1Double1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  709. {
  710. DumpReg(data->R0);
  711. DumpDoubleReg(data->D1);
  712. }
  713. template <class T>
  714. void AsmJsByteCodeDumper::DumpReg1Float1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  715. {
  716. DumpReg(data->R0);
  717. DumpFloatReg(data->F1);
  718. }
  719. template <class T>
  720. void AsmJsByteCodeDumper::DumpInt1Double2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  721. {
  722. DumpIntReg(data->I0);
  723. DumpDoubleReg(data->D1);
  724. DumpDoubleReg(data->D2);
  725. }
  726. template <class T>
  727. void AsmJsByteCodeDumper::DumpInt1Float2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  728. {
  729. DumpIntReg(data->I0);
  730. DumpFloatReg(data->F1);
  731. DumpFloatReg(data->F2);
  732. }
  733. template <class T>
  734. void AsmJsByteCodeDumper::DumpReg1Int1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  735. {
  736. DumpReg(data->R0);
  737. DumpIntReg(data->I1);
  738. }
  739. template <class T>
  740. void AsmJsByteCodeDumper::DumpInt2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  741. {
  742. DumpIntReg(data->I0);
  743. DumpIntReg(data->I1);
  744. }
  745. template <class T>
  746. void AsmJsByteCodeDumper::DumpInt1Const1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  747. {
  748. DumpIntReg(data->I0);
  749. DumpI4(data->C1);
  750. }
  751. template <class T>
  752. void AsmJsByteCodeDumper::DumpInt3(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  753. {
  754. DumpIntReg(data->I0);
  755. DumpIntReg(data->I1);
  756. DumpIntReg(data->I2);
  757. }
  758. template <class T>
  759. void AsmJsByteCodeDumper::DumpDouble2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  760. {
  761. DumpDoubleReg(data->D0);
  762. DumpDoubleReg(data->D1);
  763. }
  764. template <class T>
  765. void AsmJsByteCodeDumper::DumpFloat2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  766. {
  767. DumpFloatReg(data->F0);
  768. DumpFloatReg(data->F1);
  769. }
  770. template <class T>
  771. void AsmJsByteCodeDumper::DumpFloat3(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  772. {
  773. DumpFloatReg(data->F0);
  774. DumpFloatReg(data->F1);
  775. DumpFloatReg(data->F2);
  776. }
  777. template <class T>
  778. void AsmJsByteCodeDumper::DumpFloat1Double1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  779. {
  780. DumpFloatReg(data->F0);
  781. DumpDoubleReg(data->D1);
  782. }
  783. template <class T>
  784. void AsmJsByteCodeDumper::DumpFloat1Int1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  785. {
  786. DumpFloatReg(data->F0);
  787. DumpIntReg(data->I1);
  788. }
  789. template <class T>
  790. void AsmJsByteCodeDumper::DumpDouble3(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  791. {
  792. DumpDoubleReg(data->D0);
  793. DumpDoubleReg(data->D1);
  794. DumpDoubleReg(data->D2);
  795. }
  796. template <class T>
  797. void AsmJsByteCodeDumper::DumpBrInt1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  798. {
  799. DumpOffset(data->RelativeJumpOffset, reader);
  800. DumpIntReg(data->I1);
  801. }
  802. template <class T>
  803. void AsmJsByteCodeDumper::DumpBrInt2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  804. {
  805. DumpOffset(data->RelativeJumpOffset, reader);
  806. DumpIntReg(data->I1);
  807. DumpIntReg(data->I2);
  808. }
  809. // Float32x4
  810. template <class T>
  811. void AsmJsByteCodeDumper::DumpFloat32x4_2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  812. {
  813. DumpFloat32x4Reg(data->F4_0);
  814. DumpFloat32x4Reg(data->F4_1);
  815. }
  816. template <class T>
  817. void AsmJsByteCodeDumper::DumpFloat32x4_3(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  818. {
  819. DumpFloat32x4Reg(data->F4_0);
  820. DumpFloat32x4Reg(data->F4_1);
  821. DumpFloat32x4Reg(data->F4_2);
  822. }
  823. template <class T>
  824. void AsmJsByteCodeDumper::DumpBool32x4_1Float32x4_2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  825. {
  826. DumpBool32x4Reg(data->B4_0);
  827. DumpFloat32x4Reg(data->F4_1);
  828. DumpFloat32x4Reg(data->F4_2);
  829. }
  830. template <class T>
  831. void AsmJsByteCodeDumper::DumpFloat32x4_1Bool32x4_1Float32x4_2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  832. {
  833. DumpFloat32x4Reg(data->F4_0);
  834. DumpBool32x4Reg(data->B4_1);
  835. DumpFloat32x4Reg(data->F4_2);
  836. DumpFloat32x4Reg(data->F4_3);
  837. }
  838. template <class T>
  839. void AsmJsByteCodeDumper::DumpFloat32x4_4(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  840. {
  841. DumpFloat32x4Reg(data->F4_0);
  842. DumpFloat32x4Reg(data->F4_1);
  843. DumpFloat32x4Reg(data->F4_2);
  844. DumpFloat32x4Reg(data->F4_3);
  845. }
  846. template <class T>
  847. void AsmJsByteCodeDumper::DumpFloat32x4_1Float4(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  848. {
  849. DumpFloat32x4Reg(data->F4_0);
  850. DumpFloatReg(data->F1);
  851. DumpFloatReg(data->F2);
  852. DumpFloatReg(data->F3);
  853. DumpFloatReg(data->F4);
  854. }
  855. template <class T>
  856. void AsmJsByteCodeDumper::DumpFloat32x4_2Int4(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  857. {
  858. DumpFloat32x4Reg(data->F4_0);
  859. DumpFloat32x4Reg(data->F4_1);
  860. DumpIntReg(data->I2);
  861. DumpIntReg(data->I3);
  862. DumpIntReg(data->I4);
  863. DumpIntReg(data->I5);
  864. }
  865. template <class T>
  866. void AsmJsByteCodeDumper::DumpFloat32x4_3Int4(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  867. {
  868. DumpFloat32x4Reg(data->F4_0);
  869. DumpFloat32x4Reg(data->F4_1);
  870. DumpFloat32x4Reg(data->F4_2);
  871. DumpIntReg(data->I3);
  872. DumpIntReg(data->I4);
  873. DumpIntReg(data->I5);
  874. DumpIntReg(data->I6);
  875. }
  876. template <class T>
  877. void AsmJsByteCodeDumper::DumpFloat32x4_1Float1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  878. {
  879. DumpFloat32x4Reg(data->F4_0);
  880. DumpFloatReg(data->F1);
  881. }
  882. template <class T>
  883. void AsmJsByteCodeDumper::DumpFloat32x4_2Float1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  884. {
  885. DumpFloat32x4Reg(data->F4_0);
  886. DumpFloat32x4Reg(data->F4_1);
  887. DumpFloatReg(data->F2);
  888. }
  889. template <class T>
  890. void AsmJsByteCodeDumper::DumpFloat32x4_1Int32x4_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  891. {
  892. DumpFloat32x4Reg(data->F4_0);
  893. DumpInt32x4Reg(data->I4_1);
  894. }
  895. template <class T>
  896. void AsmJsByteCodeDumper::DumpFloat32x4_1Uint32x4_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  897. {
  898. DumpFloat32x4Reg(data->F4_0);
  899. DumpUint32x4Reg(data->U4_1);
  900. }
  901. template <class T>
  902. void AsmJsByteCodeDumper::DumpFloat32x4_1Int16x8_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  903. {
  904. DumpFloat32x4Reg(data->F4_0);
  905. DumpInt16x8Reg(data->I8_1);
  906. }
  907. template <class T>
  908. void AsmJsByteCodeDumper::DumpFloat32x4_1Uint16x8_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  909. {
  910. DumpFloat32x4Reg(data->F4_0);
  911. DumpUint16x8Reg(data->U8_1);
  912. }
  913. template <class T>
  914. void AsmJsByteCodeDumper::DumpFloat32x4_1Int8x16_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  915. {
  916. DumpFloat32x4Reg(data->F4_0);
  917. DumpInt8x16Reg(data->I16_1);
  918. }
  919. template <class T>
  920. void AsmJsByteCodeDumper::DumpFloat32x4_1Uint8x16_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  921. {
  922. DumpFloat32x4Reg(data->F4_0);
  923. DumpUint8x16Reg(data->U16_1);
  924. }
  925. template <class T>
  926. void AsmJsByteCodeDumper::DumpReg1Float32x4_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  927. {
  928. DumpReg(data->R0);
  929. DumpFloat32x4Reg(data->F4_1);
  930. }
  931. // Int32x4
  932. template <class T>
  933. void AsmJsByteCodeDumper::DumpInt32x4_2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  934. {
  935. DumpInt32x4Reg(data->I4_0);
  936. DumpInt32x4Reg(data->I4_1);
  937. }
  938. template <class T>
  939. void AsmJsByteCodeDumper::DumpInt32x4_3(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  940. {
  941. DumpInt32x4Reg(data->I4_0);
  942. DumpInt32x4Reg(data->I4_1);
  943. DumpInt32x4Reg(data->I4_2);
  944. }
  945. template <class T>
  946. void AsmJsByteCodeDumper::DumpBool32x4_1Int32x4_2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  947. {
  948. DumpBool32x4Reg(data->B4_0);
  949. DumpInt32x4Reg(data->I4_1);
  950. DumpInt32x4Reg(data->I4_2);
  951. }
  952. template <class T>
  953. void AsmJsByteCodeDumper::DumpInt32x4_1Bool32x4_1Int32x4_2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  954. {
  955. DumpInt32x4Reg(data->I4_0);
  956. DumpBool32x4Reg(data->B4_1);
  957. DumpInt32x4Reg(data->I4_2);
  958. DumpInt32x4Reg(data->I4_3);
  959. }
  960. template <class T>
  961. void AsmJsByteCodeDumper::DumpInt32x4_1Int4(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  962. {
  963. DumpInt32x4Reg(data->I4_0);
  964. DumpIntReg(data->I1);
  965. DumpIntReg(data->I2);
  966. DumpIntReg(data->I3);
  967. DumpIntReg(data->I4);
  968. }
  969. template <class T>
  970. void AsmJsByteCodeDumper::DumpInt32x4_2Int4(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  971. {
  972. DumpInt32x4Reg(data->I4_0);
  973. DumpInt32x4Reg(data->I4_1);
  974. DumpIntReg(data->I2);
  975. DumpIntReg(data->I3);
  976. DumpIntReg(data->I4);
  977. DumpIntReg(data->I5);
  978. }
  979. template <class T>
  980. void AsmJsByteCodeDumper::DumpInt32x4_2Int2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  981. {
  982. DumpInt32x4Reg(data->I4_0);
  983. DumpInt32x4Reg(data->I4_1);
  984. DumpIntReg(data->I2);
  985. DumpIntReg(data->I3);
  986. }
  987. template <class T>
  988. void AsmJsByteCodeDumper::DumpInt1Int32x4_1Int1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  989. {
  990. DumpIntReg(data->I0);
  991. DumpInt32x4Reg(data->I4_1);
  992. DumpIntReg(data->I2);
  993. }
  994. template <class T>
  995. void AsmJsByteCodeDumper::DumpFloat32x4_2Int1Float1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  996. {
  997. DumpFloat32x4Reg(data->F4_0);
  998. DumpFloat32x4Reg(data->F4_1);
  999. DumpIntReg(data->I2);
  1000. DumpFloatReg(data->F3);
  1001. }
  1002. template <class T>
  1003. void AsmJsByteCodeDumper::DumpFloat1Float32x4_1Int1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1004. {
  1005. DumpFloatReg(data->F0);
  1006. DumpFloat32x4Reg(data->F4_1);
  1007. DumpIntReg(data->I2);
  1008. }
  1009. template <class T>
  1010. void AsmJsByteCodeDumper::DumpInt32x4_3Int4(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1011. {
  1012. DumpInt32x4Reg(data->I4_0);
  1013. DumpInt32x4Reg(data->I4_1);
  1014. DumpInt32x4Reg(data->I4_2);
  1015. DumpIntReg(data->I3);
  1016. DumpIntReg(data->I4);
  1017. DumpIntReg(data->I5);
  1018. DumpIntReg(data->I6);
  1019. }
  1020. template <class T>
  1021. void AsmJsByteCodeDumper::DumpInt32x4_1Int1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1022. {
  1023. DumpInt32x4Reg(data->I4_0);
  1024. DumpIntReg(data->I1);
  1025. }
  1026. template <class T>
  1027. void AsmJsByteCodeDumper::DumpInt32x4_2Int1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1028. {
  1029. DumpInt32x4Reg(data->I4_0);
  1030. DumpInt32x4Reg(data->I4_1);
  1031. DumpIntReg(data->I2);
  1032. }
  1033. template <class T>
  1034. void AsmJsByteCodeDumper::DumpReg1Int32x4_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1035. {
  1036. DumpReg(data->R0);
  1037. DumpInt32x4Reg(data->I4_1);
  1038. }
  1039. template <class T>
  1040. void AsmJsByteCodeDumper::DumpInt32x4_1Float32x4_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1041. {
  1042. DumpInt32x4Reg(data->I4_0);
  1043. DumpFloat32x4Reg(data->F4_1);
  1044. }
  1045. template <class T>
  1046. void AsmJsByteCodeDumper::DumpInt32x4_1Uint32x4_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1047. {
  1048. DumpInt32x4Reg(data->I4_0);
  1049. DumpFloat32x4Reg(data->U4_1);
  1050. }
  1051. template <class T>
  1052. void AsmJsByteCodeDumper::DumpInt32x4_1Int16x8_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1053. {
  1054. DumpInt32x4Reg(data->I4_0);
  1055. DumpInt16x8Reg(data->I8_1);
  1056. }
  1057. template <class T>
  1058. void AsmJsByteCodeDumper::DumpInt32x4_1Uint16x8_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1059. {
  1060. DumpInt32x4Reg(data->I4_0);
  1061. DumpUint16x8Reg(data->U8_1);
  1062. }
  1063. template <class T>
  1064. void AsmJsByteCodeDumper::DumpInt32x4_1Int8x16_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1065. {
  1066. DumpInt32x4Reg(data->I4_0);
  1067. DumpInt8x16Reg(data->I16_1);
  1068. }
  1069. template <class T>
  1070. void AsmJsByteCodeDumper::DumpInt32x4_1Uint8x16_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1071. {
  1072. DumpInt32x4Reg(data->I4_0);
  1073. DumpUint8x16Reg(data->U16_1);
  1074. }
  1075. // Bool32x4
  1076. template <class T>
  1077. void AsmJsByteCodeDumper::DumpBool32x4_1Int4(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1078. {
  1079. DumpBool32x4Reg(data->B4_0);
  1080. DumpIntReg(data->I1);
  1081. DumpIntReg(data->I2);
  1082. DumpIntReg(data->I3);
  1083. DumpIntReg(data->I4);
  1084. }
  1085. template <class T>
  1086. void AsmJsByteCodeDumper::DumpInt1Bool32x4_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1087. {
  1088. DumpIntReg(data->I0);
  1089. DumpBool8x16Reg(data->B4_1);
  1090. }
  1091. template <class T>
  1092. void AsmJsByteCodeDumper::DumpBool32x4_2Int2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1093. {
  1094. DumpBool32x4Reg(data->B4_0);
  1095. DumpBool32x4Reg(data->B4_1);
  1096. DumpIntReg(data->I2);
  1097. DumpIntReg(data->I3);
  1098. }
  1099. template <class T>
  1100. void AsmJsByteCodeDumper::DumpInt1Bool32x4_1Int1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1101. {
  1102. DumpIntReg(data->I0);
  1103. DumpBool32x4Reg(data->B4_1);
  1104. DumpIntReg(data->I2);
  1105. }
  1106. template <class T>
  1107. void AsmJsByteCodeDumper::DumpBool32x4_2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1108. {
  1109. DumpBool32x4Reg(data->B4_0);
  1110. DumpBool32x4Reg(data->B4_1);
  1111. }
  1112. template <class T>
  1113. void AsmJsByteCodeDumper::DumpBool32x4_3(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1114. {
  1115. DumpBool32x4Reg(data->B4_0);
  1116. DumpBool32x4Reg(data->B4_1);
  1117. DumpBool32x4Reg(data->B4_2);
  1118. }
  1119. template <class T>
  1120. void AsmJsByteCodeDumper::DumpReg1Bool32x4_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1121. {
  1122. DumpReg(data->R0);
  1123. DumpBool32x4Reg(data->B4_1);
  1124. }
  1125. // Bool16x8
  1126. template <class T>
  1127. void AsmJsByteCodeDumper::DumpBool16x8_1Int8(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1128. {
  1129. DumpBool16x8Reg(data->B8_0);
  1130. DumpIntReg(data->I1);
  1131. DumpIntReg(data->I2);
  1132. DumpIntReg(data->I3);
  1133. DumpIntReg(data->I4);
  1134. DumpIntReg(data->I5);
  1135. DumpIntReg(data->I6);
  1136. DumpIntReg(data->I7);
  1137. DumpIntReg(data->I8);
  1138. }
  1139. template <class T>
  1140. void AsmJsByteCodeDumper::DumpInt1Bool16x8_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1141. {
  1142. DumpIntReg(data->I0);
  1143. DumpBool16x8Reg(data->B8_1);
  1144. }
  1145. template <class T>
  1146. void AsmJsByteCodeDumper::DumpBool16x8_2Int2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1147. {
  1148. DumpBool16x8Reg(data->B8_0);
  1149. DumpBool16x8Reg(data->B8_1);
  1150. DumpIntReg(data->I2);
  1151. DumpIntReg(data->I3);
  1152. }
  1153. template <class T>
  1154. void AsmJsByteCodeDumper::DumpInt1Bool16x8_1Int1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1155. {
  1156. DumpIntReg(data->I0);
  1157. DumpBool16x8Reg(data->B8_1);
  1158. DumpIntReg(data->I2);
  1159. }
  1160. template <class T>
  1161. void AsmJsByteCodeDumper::DumpBool16x8_2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1162. {
  1163. DumpBool16x8Reg(data->B8_0);
  1164. DumpBool16x8Reg(data->B8_1);
  1165. }
  1166. template <class T>
  1167. void AsmJsByteCodeDumper::DumpBool16x8_3(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1168. {
  1169. DumpBool16x8Reg(data->B8_0);
  1170. DumpBool16x8Reg(data->B8_1);
  1171. DumpBool16x8Reg(data->B8_2);
  1172. }
  1173. template <class T>
  1174. void AsmJsByteCodeDumper::DumpReg1Bool16x8_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1175. {
  1176. DumpReg(data->R0);
  1177. DumpBool16x8Reg(data->B8_1);
  1178. }
  1179. // Bool8x16
  1180. template <class T>
  1181. void AsmJsByteCodeDumper::DumpBool8x16_1Int16(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1182. {
  1183. DumpBool8x16Reg(data->B16_0);
  1184. DumpIntReg(data->I1);
  1185. DumpIntReg(data->I2);
  1186. DumpIntReg(data->I3);
  1187. DumpIntReg(data->I4);
  1188. DumpIntReg(data->I5);
  1189. DumpIntReg(data->I6);
  1190. DumpIntReg(data->I7);
  1191. DumpIntReg(data->I8);
  1192. DumpIntReg(data->I9);
  1193. DumpIntReg(data->I10);
  1194. DumpIntReg(data->I11);
  1195. DumpIntReg(data->I12);
  1196. DumpIntReg(data->I13);
  1197. DumpIntReg(data->I14);
  1198. DumpIntReg(data->I15);
  1199. DumpIntReg(data->I16);
  1200. }
  1201. template <class T>
  1202. void AsmJsByteCodeDumper::DumpInt1Bool8x16_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1203. {
  1204. DumpIntReg(data->I0);
  1205. DumpBool8x16Reg(data->B16_1);
  1206. }
  1207. template <class T>
  1208. void AsmJsByteCodeDumper::DumpBool8x16_2Int2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1209. {
  1210. DumpBool8x16Reg(data->B16_0);
  1211. DumpBool8x16Reg(data->B16_1);
  1212. DumpIntReg(data->I2);
  1213. DumpIntReg(data->I3);
  1214. }
  1215. template <class T>
  1216. void AsmJsByteCodeDumper::DumpInt1Bool8x16_1Int1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1217. {
  1218. DumpIntReg(data->I0);
  1219. DumpBool8x16Reg(data->B16_1);
  1220. DumpIntReg(data->I2);
  1221. }
  1222. template <class T>
  1223. void AsmJsByteCodeDumper::DumpBool8x16_2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1224. {
  1225. DumpBool8x16Reg(data->B16_0);
  1226. DumpBool8x16Reg(data->B16_1);
  1227. }
  1228. template <class T>
  1229. void AsmJsByteCodeDumper::DumpBool8x16_3(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1230. {
  1231. DumpBool8x16Reg(data->B16_0);
  1232. DumpBool8x16Reg(data->B16_1);
  1233. DumpBool8x16Reg(data->B16_2);
  1234. }
  1235. template <class T>
  1236. void AsmJsByteCodeDumper::DumpReg1Bool8x16_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1237. {
  1238. DumpReg(data->R0);
  1239. DumpBool8x16Reg(data->B16_1);
  1240. }
  1241. // Int8x16
  1242. template <class T>
  1243. void AsmJsByteCodeDumper::DumpInt8x16_2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1244. {
  1245. DumpInt8x16Reg(data->I16_0);
  1246. DumpInt8x16Reg(data->I16_1);
  1247. }
  1248. template <class T>
  1249. void AsmJsByteCodeDumper::DumpInt8x16_3(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1250. {
  1251. DumpInt8x16Reg(data->I16_0);
  1252. DumpInt8x16Reg(data->I16_1);
  1253. DumpInt8x16Reg(data->I16_2);
  1254. }
  1255. template <class T>
  1256. void AsmJsByteCodeDumper::DumpInt8x16_1Int16(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1257. {
  1258. DumpInt8x16Reg(data->I16_0);
  1259. DumpIntReg(data->I1);
  1260. DumpIntReg(data->I2);
  1261. DumpIntReg(data->I3);
  1262. DumpIntReg(data->I4);
  1263. DumpIntReg(data->I5);
  1264. DumpIntReg(data->I6);
  1265. DumpIntReg(data->I7);
  1266. DumpIntReg(data->I8);
  1267. DumpIntReg(data->I9);
  1268. DumpIntReg(data->I10);
  1269. DumpIntReg(data->I11);
  1270. DumpIntReg(data->I12);
  1271. DumpIntReg(data->I13);
  1272. DumpIntReg(data->I14);
  1273. DumpIntReg(data->I15);
  1274. DumpIntReg(data->I16);
  1275. }
  1276. template <class T>
  1277. void AsmJsByteCodeDumper::DumpInt8x16_3Int16(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1278. {
  1279. DumpInt8x16Reg(data->I16_0);
  1280. DumpInt8x16Reg(data->I16_1);
  1281. DumpInt8x16Reg(data->I16_2);
  1282. DumpIntReg(data->I3);
  1283. DumpIntReg(data->I4);
  1284. DumpIntReg(data->I5);
  1285. DumpIntReg(data->I6);
  1286. DumpIntReg(data->I7);
  1287. DumpIntReg(data->I8);
  1288. DumpIntReg(data->I9);
  1289. DumpIntReg(data->I10);
  1290. DumpIntReg(data->I11);
  1291. DumpIntReg(data->I12);
  1292. DumpIntReg(data->I13);
  1293. DumpIntReg(data->I14);
  1294. DumpIntReg(data->I15);
  1295. DumpIntReg(data->I16);
  1296. DumpIntReg(data->I17);
  1297. DumpIntReg(data->I18);
  1298. }
  1299. template <class T>
  1300. void AsmJsByteCodeDumper::DumpInt8x16_2Int16(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1301. {
  1302. DumpInt8x16Reg(data->I16_0);
  1303. DumpInt8x16Reg(data->I16_1);
  1304. DumpIntReg(data->I2);
  1305. DumpIntReg(data->I3);
  1306. DumpIntReg(data->I4);
  1307. DumpIntReg(data->I5);
  1308. DumpIntReg(data->I6);
  1309. DumpIntReg(data->I7);
  1310. DumpIntReg(data->I8);
  1311. DumpIntReg(data->I9);
  1312. DumpIntReg(data->I10);
  1313. DumpIntReg(data->I11);
  1314. DumpIntReg(data->I12);
  1315. DumpIntReg(data->I13);
  1316. DumpIntReg(data->I14);
  1317. DumpIntReg(data->I15);
  1318. DumpIntReg(data->I16);
  1319. DumpIntReg(data->I17);
  1320. }
  1321. template <class T>
  1322. void AsmJsByteCodeDumper::DumpBool8x16_1Int8x16_2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1323. {
  1324. DumpBool8x16Reg(data->B16_0);
  1325. DumpInt8x16Reg(data->I16_1);
  1326. DumpInt8x16Reg(data->I16_2);
  1327. }
  1328. template <class T>
  1329. void AsmJsByteCodeDumper::DumpInt8x16_1Bool8x16_1Int8x16_2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1330. {
  1331. DumpInt8x16Reg(data->I16_0);
  1332. DumpBool8x16Reg(data->B16_1);
  1333. DumpInt8x16Reg(data->I16_2);
  1334. DumpInt8x16Reg(data->I16_3);
  1335. }
  1336. template <class T>
  1337. void AsmJsByteCodeDumper::DumpInt8x16_2Int2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1338. {
  1339. DumpInt8x16Reg(data->I16_0);
  1340. DumpInt8x16Reg(data->I16_1);
  1341. DumpIntReg(data->I2);
  1342. DumpIntReg(data->I3);
  1343. }
  1344. template <class T>
  1345. void AsmJsByteCodeDumper::DumpInt1Int8x16_1Int1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1346. {
  1347. DumpIntReg(data->I0);
  1348. DumpInt8x16Reg(data->I16_1);
  1349. DumpIntReg(data->I2);
  1350. }
  1351. template <class T>
  1352. void AsmJsByteCodeDumper::DumpInt8x16_1Int1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1353. {
  1354. DumpInt8x16Reg(data->I16_0);
  1355. DumpIntReg(data->I1);
  1356. }
  1357. template <class T>
  1358. void AsmJsByteCodeDumper::DumpInt8x16_2Int1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1359. {
  1360. DumpInt8x16Reg(data->I16_0);
  1361. DumpInt8x16Reg(data->I16_1);
  1362. DumpIntReg(data->I2);
  1363. }
  1364. template <class T>
  1365. void AsmJsByteCodeDumper::DumpReg1Int8x16_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1366. {
  1367. DumpReg(data->R0);
  1368. DumpInt8x16Reg(data->I16_1);
  1369. }
  1370. template <class T>
  1371. void AsmJsByteCodeDumper::DumpInt8x16_1Float32x4_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1372. {
  1373. DumpInt8x16Reg(data->I16_0);
  1374. DumpFloat32x4Reg(data->F4_1);
  1375. }
  1376. template <class T>
  1377. void AsmJsByteCodeDumper::DumpInt8x16_1Int32x4_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1378. {
  1379. DumpInt8x16Reg(data->I16_0);
  1380. DumpInt32x4Reg(data->I4_1);
  1381. }
  1382. template <class T>
  1383. void AsmJsByteCodeDumper::DumpInt8x16_1Int16x8_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1384. {
  1385. DumpInt8x16Reg(data->I16_0);
  1386. DumpInt16x8Reg(data->I8_1);
  1387. }
  1388. template <class T>
  1389. void AsmJsByteCodeDumper::DumpInt8x16_1Uint32x4_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1390. {
  1391. DumpInt8x16Reg(data->I16_0);
  1392. DumpUint32x4Reg(data->U4_1);
  1393. }
  1394. template <class T>
  1395. void AsmJsByteCodeDumper::DumpInt8x16_1Uint16x8_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1396. {
  1397. DumpInt8x16Reg(data->I16_0);
  1398. DumpUint16x8Reg(data->U8_1);
  1399. }
  1400. template <class T>
  1401. void AsmJsByteCodeDumper::DumpInt8x16_1Uint8x16_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1402. {
  1403. DumpInt8x16Reg(data->I16_0);
  1404. DumpUint8x16Reg(data->U16_1);
  1405. }
  1406. // Disabled for now
  1407. #if 0
  1408. // Float64x2
  1409. template <class T>
  1410. void AsmJsByteCodeDumper::DumpInt32x4_1Float64x2_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1411. {
  1412. DumpInt32x4Reg(data->I4_0);
  1413. DumpFloat64x2Reg(data->D2_1);
  1414. }
  1415. template <class T>
  1416. void AsmJsByteCodeDumper::DumpFloat32x4_1Float64x2_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1417. {
  1418. DumpFloat32x4Reg(data->F4_0);
  1419. DumpFloat64x2Reg(data->D2_1);
  1420. }
  1421. template <class T>
  1422. void AsmJsByteCodeDumper::DumpFloat64x2_2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1423. {
  1424. DumpFloat64x2Reg(data->D2_0);
  1425. DumpFloat64x2Reg(data->D2_1);
  1426. }
  1427. template <class T>
  1428. void AsmJsByteCodeDumper::DumpFloat64x2_3(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1429. {
  1430. DumpFloat64x2Reg(data->D2_0);
  1431. DumpFloat64x2Reg(data->D2_1);
  1432. DumpFloat64x2Reg(data->D2_2);
  1433. }
  1434. template <class T>
  1435. void AsmJsByteCodeDumper::DumpFloat64x2_4(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1436. {
  1437. DumpFloat64x2Reg(data->D2_0);
  1438. DumpFloat64x2Reg(data->D2_1);
  1439. DumpFloat64x2Reg(data->D2_2);
  1440. DumpFloat64x2Reg(data->D2_3);
  1441. }
  1442. template <class T>
  1443. void AsmJsByteCodeDumper::DumpFloat64x2_1Double2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1444. {
  1445. DumpFloat64x2Reg(data->D2_0);
  1446. DumpDoubleReg(data->D1);
  1447. DumpDoubleReg(data->D2);
  1448. }
  1449. template <class T>
  1450. void AsmJsByteCodeDumper::DumpFloat64x2_1Double1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1451. {
  1452. DumpFloat64x2Reg(data->D2_0);
  1453. DumpDoubleReg(data->D1);
  1454. }
  1455. template <class T>
  1456. void AsmJsByteCodeDumper::DumpFloat64x2_2Double1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1457. {
  1458. DumpFloat64x2Reg(data->D2_0);
  1459. DumpFloat64x2Reg(data->D2_1);
  1460. DumpDoubleReg(data->D2);
  1461. }
  1462. template <class T>
  1463. void AsmJsByteCodeDumper::DumpFloat64x2_2Int2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1464. {
  1465. DumpFloat64x2Reg(data->D2_0);
  1466. DumpFloat64x2Reg(data->D2_1);
  1467. DumpIntReg(data->I2);
  1468. DumpIntReg(data->I3);
  1469. }
  1470. template <class T>
  1471. void AsmJsByteCodeDumper::DumpFloat64x2_3Int2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1472. {
  1473. DumpFloat64x2Reg(data->D2_0);
  1474. DumpFloat64x2Reg(data->D2_1);
  1475. DumpFloat64x2Reg(data->D2_2);
  1476. DumpIntReg(data->I3);
  1477. DumpIntReg(data->I4);
  1478. }
  1479. template <class T>
  1480. void AsmJsByteCodeDumper::DumpFloat64x2_1Float32x4_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1481. {
  1482. DumpFloat64x2Reg(data->D2_0);
  1483. DumpFloat32x4Reg(data->F4_1);
  1484. }
  1485. template <class T>
  1486. void AsmJsByteCodeDumper::DumpFloat64x2_1Int32x4_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1487. {
  1488. DumpFloat64x2Reg(data->D2_0);
  1489. DumpInt32x4Reg(data->I4_1);
  1490. }
  1491. template <class T>
  1492. void AsmJsByteCodeDumper::DumpFloat64x2_1Int32x4_1Float64x2_2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1493. {
  1494. DumpFloat64x2Reg(data->D2_0);
  1495. DumpInt32x4Reg(data->I4_1);
  1496. DumpFloat64x2Reg(data->D2_2);
  1497. DumpFloat64x2Reg(data->D2_3);
  1498. }
  1499. template <class T>
  1500. void AsmJsByteCodeDumper::DumpReg1Float64x2_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1501. {
  1502. DumpReg(data->R0);
  1503. DumpFloat64x2Reg(data->D2_1);
  1504. }
  1505. #endif
  1506. // Int16x8
  1507. template <class T>
  1508. void AsmJsByteCodeDumper::DumpInt16x8_1Int8(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1509. {
  1510. DumpInt16x8Reg(data->I8_0);
  1511. DumpIntReg(data->I1);
  1512. DumpIntReg(data->I2);
  1513. DumpIntReg(data->I3);
  1514. DumpIntReg(data->I4);
  1515. DumpIntReg(data->I5);
  1516. DumpIntReg(data->I6);
  1517. DumpIntReg(data->I7);
  1518. DumpIntReg(data->I8);
  1519. }
  1520. template <class T>
  1521. void AsmJsByteCodeDumper::DumpInt16x8_2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1522. {
  1523. DumpInt16x8Reg(data->I8_0);
  1524. DumpInt16x8Reg(data->I8_1);
  1525. }
  1526. template <class T>
  1527. void AsmJsByteCodeDumper::DumpReg1Int16x8_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1528. {
  1529. DumpReg(data->R0);
  1530. DumpInt16x8Reg(data->I8_1);
  1531. }
  1532. template <class T>
  1533. void AsmJsByteCodeDumper::DumpInt1Int16x8_1Int1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1534. {
  1535. DumpIntReg(data->I0);
  1536. DumpInt16x8Reg(data->I8_1);
  1537. DumpIntReg(data->I2);
  1538. }
  1539. template <class T>
  1540. void AsmJsByteCodeDumper::DumpInt16x8_2Int8(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1541. {
  1542. DumpInt16x8Reg(data->I8_0);
  1543. DumpInt16x8Reg(data->I8_1);
  1544. DumpIntReg(data->I2);
  1545. DumpIntReg(data->I3);
  1546. DumpIntReg(data->I4);
  1547. DumpIntReg(data->I5);
  1548. DumpIntReg(data->I6);
  1549. DumpIntReg(data->I7);
  1550. DumpIntReg(data->I8);
  1551. DumpIntReg(data->I9);
  1552. }
  1553. template <class T>
  1554. void AsmJsByteCodeDumper::DumpInt16x8_3Int8(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1555. {
  1556. DumpInt16x8Reg(data->I8_0);
  1557. DumpInt16x8Reg(data->I8_1);
  1558. DumpInt16x8Reg(data->I8_2);
  1559. DumpIntReg(data->I3);
  1560. DumpIntReg(data->I4);
  1561. DumpIntReg(data->I5);
  1562. DumpIntReg(data->I6);
  1563. DumpIntReg(data->I7);
  1564. DumpIntReg(data->I8);
  1565. DumpIntReg(data->I9);
  1566. DumpIntReg(data->I10);
  1567. }
  1568. template <class T>
  1569. void AsmJsByteCodeDumper::DumpInt16x8_1Int1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1570. {
  1571. DumpInt16x8Reg(data->I8_0);
  1572. DumpIntReg(data->I1);
  1573. }
  1574. template <class T>
  1575. void AsmJsByteCodeDumper::DumpInt16x8_2Int2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1576. {
  1577. DumpInt16x8Reg(data->I8_0);
  1578. DumpInt16x8Reg(data->I8_1);
  1579. DumpIntReg(data->I2);
  1580. DumpIntReg(data->I3);
  1581. }
  1582. template <class T>
  1583. void AsmJsByteCodeDumper::DumpInt16x8_3(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1584. {
  1585. DumpInt16x8Reg(data->I8_0);
  1586. DumpInt16x8Reg(data->I8_1);
  1587. DumpInt16x8Reg(data->I8_2);
  1588. }
  1589. template <class T>
  1590. void AsmJsByteCodeDumper::DumpBool16x8_1Int16x8_2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1591. {
  1592. DumpBool16x8Reg(data->B8_0);
  1593. DumpInt16x8Reg(data->I8_1);
  1594. DumpInt16x8Reg(data->I8_2);
  1595. }
  1596. template <class T>
  1597. void AsmJsByteCodeDumper::DumpInt16x8_1Bool16x8_1Int16x8_2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1598. {
  1599. DumpInt16x8Reg(data->I8_0);
  1600. DumpBool16x8Reg(data->B8_1);
  1601. DumpInt16x8Reg(data->I8_2);
  1602. DumpInt16x8Reg(data->I8_3);
  1603. }
  1604. template <class T>
  1605. void AsmJsByteCodeDumper::DumpInt16x8_2Int1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1606. {
  1607. DumpInt16x8Reg(data->I8_0);
  1608. DumpInt16x8Reg(data->I8_1);
  1609. DumpIntReg(data->I2);
  1610. }
  1611. template <class T>
  1612. void AsmJsByteCodeDumper::DumpInt16x8_1Float32x4_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1613. {
  1614. DumpInt16x8Reg(data->I8_0);
  1615. DumpFloat32x4Reg(data->F4_1);
  1616. }
  1617. template <class T>
  1618. void AsmJsByteCodeDumper::DumpInt16x8_1Int32x4_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1619. {
  1620. DumpInt16x8Reg(data->I8_0);
  1621. DumpInt32x4Reg(data->I4_1);
  1622. }
  1623. template <class T>
  1624. void AsmJsByteCodeDumper::DumpInt16x8_1Int8x16_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1625. {
  1626. DumpInt16x8Reg(data->I8_0);
  1627. DumpInt8x16Reg(data->I16_1);
  1628. }
  1629. template <class T>
  1630. void AsmJsByteCodeDumper::DumpInt16x8_1Uint32x4_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1631. {
  1632. DumpInt16x8Reg(data->I8_0);
  1633. DumpUint32x4Reg(data->U4_1);
  1634. }
  1635. template <class T>
  1636. void AsmJsByteCodeDumper::DumpInt16x8_1Uint16x8_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1637. {
  1638. DumpInt16x8Reg(data->I8_0);
  1639. DumpUint16x8Reg(data->U8_1);
  1640. }
  1641. template <class T>
  1642. void AsmJsByteCodeDumper::DumpInt16x8_1Uint8x16_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1643. {
  1644. DumpInt16x8Reg(data->I8_0);
  1645. DumpUint8x16Reg(data->U16_1);
  1646. }
  1647. // Uint32x4
  1648. template <class T>
  1649. void AsmJsByteCodeDumper::DumpUint32x4_1Int4(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1650. {
  1651. DumpUint32x4Reg(data->U4_0);
  1652. DumpIntReg(data->I1);
  1653. DumpIntReg(data->I2);
  1654. DumpIntReg(data->I3);
  1655. DumpIntReg(data->I4);
  1656. }
  1657. template <class T>
  1658. void AsmJsByteCodeDumper::DumpUint32x4_2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1659. {
  1660. DumpUint32x4Reg(data->U4_0);
  1661. DumpUint32x4Reg(data->U4_1);
  1662. }
  1663. template <class T>
  1664. void AsmJsByteCodeDumper::DumpReg1Uint32x4_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1665. {
  1666. DumpReg(data->R0);
  1667. DumpUint32x4Reg(data->U4_1);
  1668. }
  1669. template <class T>
  1670. void AsmJsByteCodeDumper::DumpInt1Uint32x4_1Int1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1671. {
  1672. DumpIntReg(data->I0);
  1673. DumpUint32x4Reg(data->U4_1);
  1674. DumpIntReg(data->I2);
  1675. }
  1676. template <class T>
  1677. void AsmJsByteCodeDumper::DumpUint32x4_2Int4(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1678. {
  1679. DumpUint32x4Reg(data->U4_0);
  1680. DumpUint32x4Reg(data->U4_1);
  1681. DumpIntReg(data->I2);
  1682. DumpIntReg(data->I3);
  1683. DumpIntReg(data->I4);
  1684. DumpIntReg(data->I5);
  1685. }
  1686. template <class T>
  1687. void AsmJsByteCodeDumper::DumpUint32x4_3Int4(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1688. {
  1689. DumpUint32x4Reg(data->U4_0);
  1690. DumpUint32x4Reg(data->U4_1);
  1691. DumpUint32x4Reg(data->U4_2);
  1692. DumpIntReg(data->I3);
  1693. DumpIntReg(data->I4);
  1694. DumpIntReg(data->I5);
  1695. DumpIntReg(data->I6);
  1696. }
  1697. template <class T>
  1698. void AsmJsByteCodeDumper::DumpUint32x4_1Int1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1699. {
  1700. DumpUint32x4Reg(data->U4_0);
  1701. DumpIntReg(data->I1);
  1702. }
  1703. template <class T>
  1704. void AsmJsByteCodeDumper::DumpUint32x4_2Int2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1705. {
  1706. DumpUint32x4Reg(data->U4_0);
  1707. DumpUint32x4Reg(data->U4_1);
  1708. DumpIntReg(data->I2);
  1709. DumpIntReg(data->I3);
  1710. }
  1711. template <class T>
  1712. void AsmJsByteCodeDumper::DumpUint32x4_3(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1713. {
  1714. DumpUint32x4Reg(data->U4_0);
  1715. DumpUint32x4Reg(data->U4_1);
  1716. DumpUint32x4Reg(data->U4_2);
  1717. }
  1718. template <class T>
  1719. void AsmJsByteCodeDumper::DumpBool32x4_1Uint32x4_2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1720. {
  1721. DumpBool32x4Reg(data->B4_0);
  1722. DumpUint32x4Reg(data->U4_1);
  1723. DumpUint32x4Reg(data->U4_2);
  1724. }
  1725. template <class T>
  1726. void AsmJsByteCodeDumper::DumpUint32x4_1Bool32x4_1Uint32x4_2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1727. {
  1728. DumpUint32x4Reg(data->U4_0);
  1729. DumpBool32x4Reg(data->B4_1);
  1730. DumpUint32x4Reg(data->U4_2);
  1731. DumpUint32x4Reg(data->U4_3);
  1732. }
  1733. template <class T>
  1734. void AsmJsByteCodeDumper::DumpUint32x4_2Int1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1735. {
  1736. DumpUint32x4Reg(data->U4_0);
  1737. DumpUint32x4Reg(data->U4_1);
  1738. DumpIntReg(data->I2);
  1739. }
  1740. template <class T>
  1741. void AsmJsByteCodeDumper::DumpUint32x4_1Float32x4_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1742. {
  1743. DumpUint32x4Reg(data->U4_0);
  1744. DumpFloat32x4Reg(data->F4_1);
  1745. }
  1746. template <class T>
  1747. void AsmJsByteCodeDumper::DumpUint32x4_1Int32x4_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1748. {
  1749. DumpUint32x4Reg(data->U4_0);
  1750. DumpInt32x4Reg(data->I4_1);
  1751. }
  1752. template <class T>
  1753. void AsmJsByteCodeDumper::DumpUint32x4_1Int16x8_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1754. {
  1755. DumpUint32x4Reg(data->U4_0);
  1756. DumpInt16x8Reg(data->I8_1);
  1757. }
  1758. template <class T>
  1759. void AsmJsByteCodeDumper::DumpUint32x4_1Int8x16_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1760. {
  1761. DumpUint32x4Reg(data->U4_0);
  1762. DumpInt8x16Reg(data->I16_1);
  1763. }
  1764. template <class T>
  1765. void AsmJsByteCodeDumper::DumpUint32x4_1Uint16x8_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1766. {
  1767. DumpUint32x4Reg(data->U4_0);
  1768. DumpUint16x8Reg(data->U8_1);
  1769. }
  1770. template <class T>
  1771. void AsmJsByteCodeDumper::DumpUint32x4_1Uint8x16_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1772. {
  1773. DumpInt16x8Reg(data->U4_0);
  1774. DumpUint8x16Reg(data->U16_1);
  1775. }
  1776. // Uint16x8
  1777. template <class T>
  1778. void AsmJsByteCodeDumper::DumpUint16x8_1Int8(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1779. {
  1780. DumpUint16x8Reg(data->U8_0);
  1781. DumpIntReg(data->I1);
  1782. DumpIntReg(data->I2);
  1783. DumpIntReg(data->I3);
  1784. DumpIntReg(data->I4);
  1785. DumpIntReg(data->I5);
  1786. DumpIntReg(data->I6);
  1787. DumpIntReg(data->I7);
  1788. DumpIntReg(data->I8);
  1789. }
  1790. template <class T>
  1791. void AsmJsByteCodeDumper::DumpUint16x8_2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1792. {
  1793. DumpUint16x8Reg(data->U8_0);
  1794. DumpUint16x8Reg(data->U8_1);
  1795. }
  1796. template <class T>
  1797. void AsmJsByteCodeDumper::DumpReg1Uint16x8_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1798. {
  1799. DumpReg(data->R0);
  1800. DumpUint16x8Reg(data->U8_1);
  1801. }
  1802. template <class T>
  1803. void AsmJsByteCodeDumper::DumpInt1Uint16x8_1Int1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1804. {
  1805. DumpIntReg(data->I0);
  1806. DumpUint16x8Reg(data->U8_1);
  1807. DumpIntReg(data->I2);
  1808. }
  1809. template <class T>
  1810. void AsmJsByteCodeDumper::DumpUint16x8_2Int8(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1811. {
  1812. DumpUint16x8Reg(data->U8_0);
  1813. DumpUint16x8Reg(data->U8_1);
  1814. DumpIntReg(data->I2);
  1815. DumpIntReg(data->I3);
  1816. DumpIntReg(data->I4);
  1817. DumpIntReg(data->I5);
  1818. DumpIntReg(data->I6);
  1819. DumpIntReg(data->I7);
  1820. DumpIntReg(data->I8);
  1821. DumpIntReg(data->I9);
  1822. }
  1823. template <class T>
  1824. void AsmJsByteCodeDumper::DumpUint16x8_3Int8(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1825. {
  1826. DumpUint16x8Reg(data->U8_0);
  1827. DumpUint16x8Reg(data->U8_1);
  1828. DumpUint16x8Reg(data->U8_2);
  1829. DumpIntReg(data->I3);
  1830. DumpIntReg(data->I4);
  1831. DumpIntReg(data->I5);
  1832. DumpIntReg(data->I6);
  1833. DumpIntReg(data->I7);
  1834. DumpIntReg(data->I8);
  1835. DumpIntReg(data->I9);
  1836. DumpIntReg(data->I10);
  1837. }
  1838. template <class T>
  1839. void AsmJsByteCodeDumper::DumpUint16x8_1Int1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1840. {
  1841. DumpUint16x8Reg(data->U8_0);
  1842. DumpIntReg(data->I1);
  1843. }
  1844. template <class T>
  1845. void AsmJsByteCodeDumper::DumpUint16x8_2Int2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1846. {
  1847. DumpUint16x8Reg(data->U8_0);
  1848. DumpUint16x8Reg(data->U8_1);
  1849. DumpIntReg(data->I2);
  1850. DumpIntReg(data->I3);
  1851. }
  1852. template <class T>
  1853. void AsmJsByteCodeDumper::DumpUint16x8_3(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1854. {
  1855. DumpUint16x8Reg(data->U8_0);
  1856. DumpUint16x8Reg(data->U8_1);
  1857. DumpUint16x8Reg(data->U8_2);
  1858. }
  1859. template <class T>
  1860. void AsmJsByteCodeDumper::DumpBool16x8_1Uint16x8_2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1861. {
  1862. DumpBool16x8Reg(data->B8_0);
  1863. DumpUint16x8Reg(data->U8_1);
  1864. DumpUint16x8Reg(data->U8_2);
  1865. }
  1866. template <class T>
  1867. void AsmJsByteCodeDumper::DumpUint16x8_1Bool16x8_1Uint16x8_2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1868. {
  1869. DumpUint16x8Reg(data->U8_0);
  1870. DumpBool16x8Reg(data->B8_1);
  1871. DumpUint16x8Reg(data->U8_2);
  1872. DumpUint16x8Reg(data->U8_3);
  1873. }
  1874. template <class T>
  1875. void AsmJsByteCodeDumper::DumpUint16x8_2Int1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1876. {
  1877. DumpUint16x8Reg(data->U8_0);
  1878. DumpUint16x8Reg(data->U8_1);
  1879. DumpIntReg(data->I2);
  1880. }
  1881. template <class T>
  1882. void AsmJsByteCodeDumper::DumpUint16x8_1Float32x4_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1883. {
  1884. DumpUint16x8Reg(data->U8_0);
  1885. DumpFloat32x4Reg(data->F4_1);
  1886. }
  1887. template <class T>
  1888. void AsmJsByteCodeDumper::DumpUint16x8_1Int32x4_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1889. {
  1890. DumpUint16x8Reg(data->U8_0);
  1891. DumpInt32x4Reg(data->I4_1);
  1892. }
  1893. template <class T>
  1894. void AsmJsByteCodeDumper::DumpUint16x8_1Int16x8_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1895. {
  1896. DumpUint16x8Reg(data->U8_0);
  1897. DumpInt16x8Reg(data->I8_1);
  1898. }
  1899. template <class T>
  1900. void AsmJsByteCodeDumper::DumpUint16x8_1Int8x16_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1901. {
  1902. DumpUint16x8Reg(data->U8_0);
  1903. DumpInt8x16Reg(data->I16_1);
  1904. }
  1905. template <class T>
  1906. void AsmJsByteCodeDumper::DumpUint16x8_1Uint32x4_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1907. {
  1908. DumpUint16x8Reg(data->U8_0);
  1909. DumpUint32x4Reg(data->U4_1);
  1910. }
  1911. template <class T>
  1912. void AsmJsByteCodeDumper::DumpUint16x8_1Uint8x16_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1913. {
  1914. DumpUint16x8Reg(data->U8_0);
  1915. DumpUint8x16Reg(data->U16_1);
  1916. }
  1917. // Uint8x16
  1918. template <class T>
  1919. void AsmJsByteCodeDumper::DumpUint8x16_1Int16(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1920. {
  1921. DumpUint8x16Reg(data->U16_0);
  1922. DumpIntReg(data->I1);
  1923. DumpIntReg(data->I2);
  1924. DumpIntReg(data->I3);
  1925. DumpIntReg(data->I4);
  1926. DumpIntReg(data->I5);
  1927. DumpIntReg(data->I6);
  1928. DumpIntReg(data->I7);
  1929. DumpIntReg(data->I8);
  1930. DumpIntReg(data->I9);
  1931. DumpIntReg(data->I10);
  1932. DumpIntReg(data->I11);
  1933. DumpIntReg(data->I12);
  1934. DumpIntReg(data->I13);
  1935. DumpIntReg(data->I14);
  1936. DumpIntReg(data->I15);
  1937. DumpIntReg(data->I16);
  1938. }
  1939. template <class T>
  1940. void AsmJsByteCodeDumper::DumpUint8x16_2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1941. {
  1942. DumpUint8x16Reg(data->U16_0);
  1943. DumpUint8x16Reg(data->U16_1);
  1944. }
  1945. template <class T>
  1946. void AsmJsByteCodeDumper::DumpReg1Uint8x16_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1947. {
  1948. DumpReg(data->R0);
  1949. DumpUint8x16Reg(data->U16_1);
  1950. }
  1951. template <class T>
  1952. void AsmJsByteCodeDumper::DumpInt1Uint8x16_1Int1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1953. {
  1954. DumpIntReg(data->I0);
  1955. DumpUint8x16Reg(data->U16_1);
  1956. DumpIntReg(data->I2);
  1957. }
  1958. template <class T>
  1959. void AsmJsByteCodeDumper::DumpUint8x16_2Int16(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1960. {
  1961. DumpUint8x16Reg(data->U16_0);
  1962. DumpUint8x16Reg(data->U16_1);
  1963. DumpIntReg(data->I2);
  1964. DumpIntReg(data->I3);
  1965. DumpIntReg(data->I4);
  1966. DumpIntReg(data->I5);
  1967. DumpIntReg(data->I6);
  1968. DumpIntReg(data->I7);
  1969. DumpIntReg(data->I8);
  1970. DumpIntReg(data->I9);
  1971. DumpIntReg(data->I10);
  1972. DumpIntReg(data->I11);
  1973. DumpIntReg(data->I12);
  1974. DumpIntReg(data->I13);
  1975. DumpIntReg(data->I14);
  1976. DumpIntReg(data->I15);
  1977. DumpIntReg(data->I16);
  1978. DumpIntReg(data->I17);
  1979. }
  1980. template <class T>
  1981. void AsmJsByteCodeDumper::DumpUint8x16_3Int16(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  1982. {
  1983. DumpUint8x16Reg(data->U16_0);
  1984. DumpUint8x16Reg(data->U16_1);
  1985. DumpUint8x16Reg(data->U16_2);
  1986. DumpIntReg(data->I3);
  1987. DumpIntReg(data->I4);
  1988. DumpIntReg(data->I5);
  1989. DumpIntReg(data->I6);
  1990. DumpIntReg(data->I7);
  1991. DumpIntReg(data->I8);
  1992. DumpIntReg(data->I9);
  1993. DumpIntReg(data->I10);
  1994. DumpIntReg(data->I11);
  1995. DumpIntReg(data->I12);
  1996. DumpIntReg(data->I13);
  1997. DumpIntReg(data->I14);
  1998. DumpIntReg(data->I15);
  1999. DumpIntReg(data->I16);
  2000. DumpIntReg(data->I17);
  2001. DumpIntReg(data->I18);
  2002. }
  2003. template <class T>
  2004. void AsmJsByteCodeDumper::DumpUint8x16_1Int1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  2005. {
  2006. DumpUint8x16Reg(data->U16_0);
  2007. DumpIntReg(data->I1);
  2008. }
  2009. template <class T>
  2010. void AsmJsByteCodeDumper::DumpUint8x16_2Int2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  2011. {
  2012. DumpUint8x16Reg(data->U16_0);
  2013. DumpUint8x16Reg(data->U16_1);
  2014. DumpIntReg(data->I2);
  2015. DumpIntReg(data->I3);
  2016. }
  2017. template <class T>
  2018. void AsmJsByteCodeDumper::DumpUint8x16_3(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  2019. {
  2020. DumpUint8x16Reg(data->U16_0);
  2021. DumpUint8x16Reg(data->U16_1);
  2022. DumpUint8x16Reg(data->U16_2);
  2023. }
  2024. template <class T>
  2025. void AsmJsByteCodeDumper::DumpBool8x16_1Uint8x16_2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  2026. {
  2027. DumpBool8x16Reg(data->B16_0);
  2028. DumpUint8x16Reg(data->U16_1);
  2029. DumpUint8x16Reg(data->U16_2);
  2030. }
  2031. template <class T>
  2032. void AsmJsByteCodeDumper::DumpUint8x16_1Bool8x16_1Uint8x16_2(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  2033. {
  2034. DumpUint8x16Reg(data->U16_0);
  2035. DumpBool8x16Reg(data->B16_1);
  2036. DumpUint8x16Reg(data->U16_2);
  2037. DumpUint8x16Reg(data->U16_3);
  2038. }
  2039. template <class T>
  2040. void AsmJsByteCodeDumper::DumpUint8x16_2Int1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  2041. {
  2042. DumpUint8x16Reg(data->U16_0);
  2043. DumpUint8x16Reg(data->U16_1);
  2044. DumpIntReg(data->I2);
  2045. }
  2046. template <class T>
  2047. void AsmJsByteCodeDumper::DumpUint8x16_1Float32x4_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  2048. {
  2049. DumpUint8x16Reg(data->U16_0);
  2050. DumpFloat32x4Reg(data->F4_1);
  2051. }
  2052. template <class T>
  2053. void AsmJsByteCodeDumper::DumpUint8x16_1Int32x4_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  2054. {
  2055. DumpUint8x16Reg(data->U16_0);
  2056. DumpInt32x4Reg(data->I4_1);
  2057. }
  2058. template <class T>
  2059. void AsmJsByteCodeDumper::DumpUint8x16_1Int16x8_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  2060. {
  2061. DumpUint8x16Reg(data->U16_0);
  2062. DumpInt16x8Reg(data->I8_1);
  2063. }
  2064. template <class T>
  2065. void AsmJsByteCodeDumper::DumpUint8x16_1Int8x16_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  2066. {
  2067. DumpUint8x16Reg(data->U16_0);
  2068. DumpInt8x16Reg(data->I16_1);
  2069. }
  2070. template <class T>
  2071. void AsmJsByteCodeDumper::DumpUint8x16_1Uint32x4_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  2072. {
  2073. DumpUint8x16Reg(data->U16_0);
  2074. DumpUint32x4Reg(data->U4_1);
  2075. }
  2076. template <class T>
  2077. void AsmJsByteCodeDumper::DumpUint8x16_1Uint16x8_1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  2078. {
  2079. DumpUint8x16Reg(data->U16_0);
  2080. DumpUint16x8Reg(data->U8_1);
  2081. }
  2082. // bool32x4
  2083. template <class T>
  2084. void AsmJsByteCodeDumper::DumpBool32x4_1Int1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  2085. {
  2086. DumpBool32x4Reg(data->B4_0);
  2087. DumpIntReg(data->I1);
  2088. }
  2089. // bool16x8
  2090. template <class T>
  2091. void AsmJsByteCodeDumper::DumpBool16x8_1Int1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  2092. {
  2093. DumpBool16x8Reg(data->B8_0);
  2094. DumpIntReg(data->I1);
  2095. }
  2096. // bool8x16
  2097. template <class T>
  2098. void AsmJsByteCodeDumper::DumpBool8x16_1Int1(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  2099. {
  2100. DumpBool8x16Reg(data->B16_0);
  2101. DumpIntReg(data->I1);
  2102. }
  2103. template <class T>
  2104. void AsmJsByteCodeDumper::DumpAsmSimdTypedArr(OpCodeAsmJs op, const unaligned T * data, FunctionBody * dumpFunction, ByteCodeReader& reader)
  2105. {
  2106. const char16* heapTag = nullptr;
  2107. switch (data->ViewType)
  2108. {
  2109. case ArrayBufferView::TYPE_INT8:
  2110. heapTag = _u("HEAP8"); break;
  2111. case ArrayBufferView::TYPE_UINT8:
  2112. heapTag = _u("HEAPU8"); break;
  2113. case ArrayBufferView::TYPE_INT16:
  2114. heapTag = _u("HEAP16"); break;
  2115. case ArrayBufferView::TYPE_UINT16:
  2116. heapTag = _u("HEAPU16"); break;
  2117. case ArrayBufferView::TYPE_INT32:
  2118. heapTag = _u("HEAP32"); break;
  2119. case ArrayBufferView::TYPE_UINT32:
  2120. heapTag = _u("HEAPU32"); break;
  2121. case ArrayBufferView::TYPE_FLOAT32:
  2122. heapTag = _u("HEAPF32"); break;
  2123. case ArrayBufferView::TYPE_FLOAT64:
  2124. heapTag = _u("HEAPF64"); break;
  2125. default:
  2126. Assert(false);
  2127. __assume(false);
  2128. break;
  2129. }
  2130. switch (op)
  2131. {
  2132. case OpCodeAsmJs::Simd128_LdArrConst_I4:
  2133. case OpCodeAsmJs::Simd128_LdArrConst_F4:
  2134. //case OpCodeAsmJs::Simd128_LdArrConst_D2:
  2135. case OpCodeAsmJs::Simd128_StArrConst_I4:
  2136. case OpCodeAsmJs::Simd128_StArrConst_F4:
  2137. //case OpCodeAsmJs::Simd128_StArrConst_D2:
  2138. Output::Print(_u(" %s[%d] "), heapTag, data->SlotIndex);
  2139. break;
  2140. case OpCodeAsmJs::Simd128_LdArr_I4:
  2141. case OpCodeAsmJs::Simd128_LdArr_F4:
  2142. //case OpCodeAsmJs::Simd128_LdArr_D2:
  2143. case OpCodeAsmJs::Simd128_StArr_I4:
  2144. case OpCodeAsmJs::Simd128_StArr_F4:
  2145. //case OpCodeAsmJs::Simd128_StArr_D2:
  2146. Output::Print(_u(" %s[I%d] "), heapTag, data->SlotIndex);
  2147. break;
  2148. default:
  2149. Assert(false);
  2150. __assume(false);
  2151. break;
  2152. }
  2153. switch (op)
  2154. {
  2155. case OpCodeAsmJs::Simd128_LdArr_I4:
  2156. case OpCodeAsmJs::Simd128_LdArrConst_I4:
  2157. case OpCodeAsmJs::Simd128_StArr_I4:
  2158. case OpCodeAsmJs::Simd128_StArrConst_I4:
  2159. DumpInt32x4Reg(data->Value);
  2160. break;
  2161. case OpCodeAsmJs::Simd128_LdArr_F4:
  2162. case OpCodeAsmJs::Simd128_LdArrConst_F4:
  2163. case OpCodeAsmJs::Simd128_StArr_F4:
  2164. case OpCodeAsmJs::Simd128_StArrConst_F4:
  2165. DumpFloat32x4Reg(data->Value);
  2166. break;
  2167. #if 0
  2168. case OpCodeAsmJs::Simd128_LdArr_D2:
  2169. case OpCodeAsmJs::Simd128_LdArrConst_D2:
  2170. case OpCodeAsmJs::Simd128_StArr_D2:
  2171. case OpCodeAsmJs::Simd128_StArrConst_D2:
  2172. DumpFloat64x2Reg(data->Value);
  2173. break;
  2174. #endif // 0
  2175. default:
  2176. Assert(false);
  2177. __assume(false);
  2178. break;
  2179. }
  2180. // data width
  2181. Output::Print(_u(" %d bytes "), data->DataWidth);
  2182. }
  2183. }
  2184. #endif
  2185. #endif