Mercurial > projects > dmdscript-tango
view dmdscript_tango/ir.d @ 4:6d905019f7bf
some changes
author | saaadel |
---|---|
date | Thu, 28 Jan 2010 21:23:27 +0200 |
parents | 8363a4bf6a8f |
children |
line wrap: on
line source
/* Digital Mars DMDScript source code. * Copyright (c) 2000-2002 by Chromium Communications * D version Copyright (c) 2004-2005 by Digital Mars * All Rights Reserved * written by Walter Bright * www.digitalmars.com * Use at your own risk. There is no warranty, express or implied. * License for redistribution is by the GNU General Public License in gpl.txt. * * A binary, non-exclusive license for commercial use can be * purchased from www.digitalmars.com/dscript/buy.html. * * DMDScript is implemented in the D Programming Language, * www.digitalmars.com/d/ * * For a C++ implementation of DMDScript, including COM support, * see www.digitalmars.com/dscript/cppscript.html. */ // Opcodes for our Intermediate Representation (IR) module dmdscript_tango.ir; enum { IRerror, IRnop, // no operation IRend, // end of function IRstring, IRthisget, IRnumber, IRobject, IRthis, IRnull, IRundefined, IRboolean, IRcall, IRcalls = IRcall + 1, IRcallscope = IRcalls + 1, IRcallv = IRcallscope + 1, IRputcall, IRputcalls = IRputcall + 1, IRputcallscope = IRputcalls + 1, IRputcallv = IRputcallscope + 1, IRget, IRgets = IRget + 1, // 's' versions must be original + 1 IRgetscope = IRgets + 1, IRput, IRputs = IRput + 1, IRputscope = IRputs + 1, IRdel, IRdels = IRdel + 1, IRdelscope = IRdels + 1, IRnext, IRnexts = IRnext + 1, IRnextscope = IRnexts + 1, IRaddass, IRaddasss = IRaddass + 1, IRaddassscope = IRaddasss + 1, IRputthis, IRputdefault, IRmov, IRret, IRretexp, IRimpret, IRneg, IRpos, IRcom, IRnot, IRadd, IRsub, IRmul, IRdiv, IRmod, IRshl, IRshr, IRushr, IRand, IRor, IRxor, IRpreinc, IRpreincs = IRpreinc + 1, IRpreincscope = IRpreincs + 1, IRpredec, IRpredecs = IRpredec + 1, IRpredecscope = IRpredecs + 1, IRpostinc, IRpostincs = IRpostinc + 1, IRpostincscope = IRpostincs + 1, IRpostdec, IRpostdecs = IRpostdec + 1, IRpostdecscope = IRpostdecs + 1, IRnew, IRclt, IRcle, IRcgt, IRcge, IRceq, IRcne, IRcid, IRcnid, IRjt, IRjf, IRjtb, IRjfb, IRjmp, IRjlt, // commonly appears as loop control IRjle, // commonly appears as loop control IRjltc, // commonly appears as loop control IRjlec, // commonly appears as loop control IRtypeof, IRinstance, IRpush, IRpop, IRiter, IRassert, IRthrow, IRtrycatch, IRtryfinally, IRfinallyret, IRMAX }