codegen: s/gen_fn[0-9]/gen_fn[0-9]_const/ to indicate inline args

We need to differentiate between gen_fn, gen_call_fn, etc. This is a
step in the right direction, but isn't quite enough.
This commit is contained in:
Amaan Cheval 2018-04-20 19:29:18 +05:30 committed by Fabian
parent ebe7b3d426
commit cde8a2d005
7 changed files with 32 additions and 27 deletions

View file

@ -83,7 +83,7 @@ function gen_codegen_call(name, args)
args = args || [];
const args_count = args.length;
args = [].concat([`"${name}"`, name.length], args);
return gen_call(`gen_fn${args_count}`, args);
return gen_call(`gen_fn${args_count}_const`, args);
}
function gen_codegen_call_modrm(name, args)
@ -298,7 +298,7 @@ function gen_instruction_body(encodings, size)
default_case: {
body: [
"assert(false);",
`gen_fn0("trigger_ud", 10);`,
`gen_fn0_const("trigger_ud", 10);`,
],
}
},