mirror of
https://github.com/copy/v86.git
synced 2025-12-31 04:23:15 +00:00
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:
parent
ebe7b3d426
commit
cde8a2d005
7 changed files with 32 additions and 27 deletions
|
|
@ -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);`,
|
||||
],
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue