beard%netscape.com
34678ad655
removed unnecessary #include <iomanip>
2000-05-12 01:46:16 +00:00
rogerl%netscape.com
33370b0248
Added post inc/dec for properties & names.
2000-05-11 00:35:06 +00:00
beard%netscape.com
a90cac7e92
Needed to transfer ownwership of iCode from ICodeGenerator to ICodeModule
2000-05-09 18:59:12 +00:00
beard%netscape.com
2a42ae2d9b
LoadString now has JSString* as second operand
2000-05-09 05:38:48 +00:00
rogerl%netscape.com
70fd2e12cf
Added more string handling + valueToString/Number code.
...
NativeFunction support.
2000-05-08 22:59:42 +00:00
rogerl%netscape.com
25d9160b79
Basic string literal & value support
2000-05-05 23:22:31 +00:00
beard%netscape.com
6a814bf3a1
fixed ICodeGenerator/ICodeModule::print on Mac, which seems to be getting confused when using operator<< in another namespace.
2000-05-05 04:05:56 +00:00
rginda%netscape.com
ace8bcaf1e
much debugger spankage; parse and execute step, continue, set, and print (kind-of) commands.
...
push implementation details of ICodeGenerator::print() into InstructionStream so they can be shared with ICodeModule.
copy variableList from ICodeGenerator to ICodeModule.
s/ScringAtom/const StringAtom/ in gencode.pl, regenerate vmtypes.h
2000-05-04 22:42:49 +00:00
rogerl%netscape.com
f0a527348f
Added const to the StringAtom usage.
...
Propagated variableList to ICodeModule
2000-05-04 22:08:38 +00:00
beard%netscape.com
638c7e68c2
fix assert bustage in DEBUG build.
2000-05-03 01:41:37 +00:00
rogerl%netscape.com
c5ae7fcab1
Cleaning up some label stuff
2000-05-02 21:36:28 +00:00
beard%netscape.com
a38befc82a
removed unnecessary casts to int32 in ICodeGenerator::setLabel() which were generating warnings.
2000-05-01 17:11:36 +00:00
rginda%netscape.com
c9f14ba1b4
somewhat weak debugger console hookup.
...
build shouldn't *look* different yet.
Moved Context::interpret() local vars into Context private, added accessors for
stuff, using JavaScript::Lexer to lex debugger commands.
Fixed sign comparison warning in icg.cpp
2000-04-29 00:23:06 +00:00
rogerl%netscape.com
11e9424ecd
fixed bad constructor thing.
2000-04-28 00:10:22 +00:00
rogerl%netscape.com
62485331a6
More exception handling handling.
2000-04-27 01:27:09 +00:00
beard%netscape.com
9d7aed4cd0
renamed not() -> complement() (not is a keyword in C++), implemented complement().
2000-04-25 02:55:08 +00:00
rginda%netscape.com
66299105f3
quieting linux warnings
2000-04-24 18:41:05 +00:00
rogerl%netscape.com
f516a5722d
Added a beginning for exception handling.
2000-04-21 22:52:52 +00:00
rogerl%netscape.com
5e238bd7a5
Added labelled statements, fixed some VC++'isms
2000-04-21 00:37:51 +00:00
rginda%netscape.com
7615ee9226
icodegenerator.cpp
...
add m prefix to base and offset label members
interpreter.cpp,h
dual license
wrap interpret in a Context class
add RETURN_VOID case
js2.cpp
update to use context class
remove #if 0 code that'll probably never be used anyway.
jstypes.h
add defineProperty/function to JSObject
vmtypes.h
regerated opcode classes:
added RETURN_VOID, removed LOAD/SAVE_VAR
reverted bacl to the smaller print function (thanks to RETURN_VOID)
fixed branch printing issue
inherit print() from super if possible
tools/gencode.pl
generate smaller print functions again
don't generate print function if superclass can take care of it.
2000-04-21 00:04:14 +00:00
beard%netscape.com
9acaa398fe
removed extraneous semi-colons after namespace declarations.
2000-04-20 06:20:31 +00:00
rogerl%netscape.com
5199f6e49c
Removing variables.
2000-04-19 22:45:57 +00:00
rogerl%netscape.com
7b7fc3829f
Began moving away from variables, fixed compare/branch ordering.
...
Testcases working.
2000-04-19 02:09:06 +00:00
rginda%netscape.com
3a06b96f97
formatting changes. use only one tab regardless of nested namespaces
2000-04-18 21:51:45 +00:00
rginda%netscape.com
1952e14ff8
removed superfluous ;s after namespace decs.
2000-04-18 07:14:49 +00:00
rginda%netscape.com
8ac24b9045
regenerated opcodenames to include padding, added label printing back into icg::print
2000-04-18 01:31:24 +00:00
rogerl%netscape.com
0e17feea55
Fixed WINDOZE build issues
2000-04-18 00:38:26 +00:00
rginda%netscape.com
66cb26879d
added js::VM, ICG, JSTypes, and Interpreter namespaces; messed around with lots of code.
...
Created class for each ICode, adding a print() method (using formatters)
2000-04-18 00:17:34 +00:00
beard%netscape.com
f7fdcbff8b
fixing an assert and warnings
2000-04-11 01:10:26 +00:00
rogerl%netscape.com
2757a2004e
CALL opcode & frames etc. (r=beard)
2000-04-11 00:32:17 +00:00
beard%netscape.com
f589a1ab24
Fixed NEW_ARRAY, GET_ELEMENT, SET_ELEMENT printing.,
2000-04-08 04:11:16 +00:00
beard%netscape.com
0822793571
Reordered GetProp/SetProp operands to base, name. Added NewArray, GetElement, SetElement instructions.
2000-04-08 03:37:18 +00:00
rogerl%netscape.com
d26609534d
Added ICodeModule to collect extra info about executable chunks.
2000-04-08 01:04:55 +00:00
rogerl%netscape.com
ad01c0a3c9
Re-ordered instructions so destination is always first.
...
Changed labels to be struct * instead of ints.
2000-04-07 22:19:36 +00:00
beard%netscape.com
d5333de9ec
added code to print SAVE_NAME, NEW_OBJECT, GET_PROP, and SET_PROP iCodes.
2000-04-07 04:58:58 +00:00
beard%netscape.com
9c646bbafc
added newObject(), saveName() and setProperty().
2000-04-07 02:41:08 +00:00
waldemar%netscape.com
66d8f5244f
Fixed syntax errors
2000-04-06 23:43:08 +00:00
waldemar%netscape.com
182fc056f3
Commented out syntax error
2000-04-06 23:40:47 +00:00
rogerl%netscape.com
dcbc9904da
Changed compare/branch handling to determine last compare opcode.
...
Made returnStatement a member in ICG.
2000-04-06 22:40:17 +00:00
beard%netscape.com
efcd4404fa
cases for SUBTRACT, MULTIPLY, DIVIDE in print().
2000-04-06 03:02:24 +00:00
beard%netscape.com
a57994c317
added new instructions, SUBTRACT, MULTIPLY, DIVICE, BRANCH_*, and RETURN. Changed LoadVar/SaveVar to have uint32 operand. Added optional paramter branchOp to ICodeGenerator::branchConditional() & endWhileExpression() to parametrize branch kind. Added complete(Register) to generate a RETURN instruction.
2000-04-06 02:57:42 +00:00
rogerl%netscape.com
047b74d5c6
Resolved branch targets
2000-04-06 00:04:11 +00:00
rogerl%netscape.com
d5b0b5bc32
typedef'd instructions
2000-04-05 23:41:58 +00:00
waldemar%netscape.com
b3f0341877
Fixed syntax errors
2000-04-04 21:36:57 +00:00
rogerl%netscape.com
131d10c8ea
cleaning up the codestate classes; continue labels
2000-04-04 01:48:35 +00:00
rogerl%netscape.com
3714722cf4
For statements.
2000-04-01 02:53:16 +00:00
rogerl%netscape.com
4c52a939a5
Added do & switch statements, more hacking at the code state thing.
2000-04-01 01:30:32 +00:00
rogerl%netscape.com
788fbc5ec8
Changes to CodeState thing, still not happy with this - RTTI would be
...
better?
2000-03-31 01:54:28 +00:00
beard%netscape.com
6763f39040
making icodegenerator work on Linux
2000-03-31 00:42:25 +00:00
rogerl%netscape.com
dd0e354b10
Test driver for icg in main, just a temporary thing
2000-03-29 19:24:07 +00:00