diff options
author | Karl Berry <karl@freefriends.org> | 2011-05-28 02:18:52 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-05-28 02:18:52 +0000 |
commit | c59fe5fe4739f0c61560f05d4e42b4e552219b27 (patch) | |
tree | 8cf79e85e394b3177a28d374415840a4e0a025ad /Build/source/utils/asymptote/opcodes.h | |
parent | 771db15706dbf3f4af8b630dcb15646a3e5fda00 (diff) |
asy 2.10
git-svn-id: svn://tug.org/texlive/trunk@22633 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/opcodes.h')
-rw-r--r-- | Build/source/utils/asymptote/opcodes.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/opcodes.h b/Build/source/utils/asymptote/opcodes.h new file mode 100644 index 00000000000..71c0de41aa8 --- /dev/null +++ b/Build/source/utils/asymptote/opcodes.h @@ -0,0 +1,46 @@ +/***** + * opcodes.h + * Andy Hammerlindl 2010/10/24 + * + * A list of the virtual machine opcodes, defined by the macro OPCODE. + *****/ + +/* The first parameter is the name of the opcode. The second parameter is a + * character indicating what additional information (if any) is encoded with + * the opcode: + * x - nothing + * n - integer + * t - item + * b - builtin + * l - lambda pointer + * o - instruction offset + */ + +OPCODE(nop, 'x') +OPCODE(pop,'x') +OPCODE(intpush,'n') +OPCODE(constpush,'t') +OPCODE(varpush,'n') +OPCODE(varsave,'n') +OPCODE(fieldpush,'n') +OPCODE(fieldsave,'n') +OPCODE(builtin,'b') +OPCODE(jmp,'o') +OPCODE(cjmp,'o') +OPCODE(njmp,'o') +OPCODE(popcall,'x') +OPCODE(pushclosure,'x') +OPCODE(makefunc,'l') +OPCODE(ret,'x') +OPCODE(pushframe,'n') +OPCODE(popframe,'x') + +OPCODE(push_default,'x') +OPCODE(jump_if_not_default,'o') + +#ifdef COMBO +OPCODE(varpop,'n') +OPCODE(fieldpop,'n') + +OPCODE(gejmp,'o') +#endif |