Skip to content

Commit

Permalink
based on review suggestion: extend valid asm instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-trunov committed Aug 30, 2024
1 parent 63f8d88 commit 0e38b6c
Show file tree
Hide file tree
Showing 17 changed files with 161 additions and 172 deletions.
3 changes: 2 additions & 1 deletion cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@
"CHKSIGNU",
"CHKSIGNS",
"RAWRESERVE",
"SENDRAWMSG"
"SENDRAWMSG",
"SDBEGINSQ"
],
"flagWords": [],
"ignorePaths": [
Expand Down
6 changes: 2 additions & 4 deletions src/generator/writers/writeFunction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { resolveFuncTupleType } from "./resolveFuncTupleType";
import { ops } from "./ops";
import { freshIdentifier } from "./freshIdentifier";
import { idTextErr, throwInternalCompilerError } from "../../errors";
import { prettyPrint, prettyPrintAsmShuffle } from "../../prettyPrinter";
import { prettyPrintAsmShuffle } from "../../prettyPrinter";

export function writeCastedExpression(
expression: AstExpression,
Expand Down Expand Up @@ -554,9 +554,7 @@ export function writeFunction(f: FunctionDescription, ctx: WriterContext) {
};
ctx.asm(
prettyPrintAsmShuffle(asmShuffleEscaped),
fAst.instructions
.map((instruction) => prettyPrint(instruction))
.join(" "),
fAst.instructions.join(" "),
);
});
if (f.isMutating) {
Expand Down
Loading

0 comments on commit 0e38b6c

Please sign in to comment.