beard%netscape.com
2a42ae2d9b
LoadString now has JSString* as second operand
2000-05-09 05:38:48 +00:00
beard%netscape.com
052dad7118
VC6 bustage: can't initialize refs using construction form
2000-05-09 04:29:32 +00:00
beard%netscape.com
f8c91a8cf2
JSNativeFunction::mCode returns JSValue now to avoid leaking
2000-05-09 03:57:28 +00:00
beard%netscape.com
5511c85685
Fixed leaks by changing JSValue::toString()/toNumber() to return JSValue rather than JSValue*. LOAD_STRING now creates a JSString from a String*.
2000-05-09 03:11:54 +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
0abfa73fd7
New arithmetic ops.
2000-05-05 21:38:16 +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
beard%netscape.com
e57aaf2941
warnings on Linux
2000-05-01 17:18:49 +00:00
beard%netscape.com
99e50b3eb4
Implemented WITHIN, WITHOUT instructions, removed mICode from Context since it's part of Activation. No longer deleteing mActivation, just clearing it, since Activation objects are garbage collected.
2000-04-29 14:43:36 +00:00
beard%netscape.com
275ac8e2bf
moved kUndefinedValue to jstypes.cpp, where it belongs.
2000-04-29 14:11:27 +00:00
beard%netscape.com
28a0b3bb92
fixing windows bustage.
2000-04-29 00:29:56 +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
beard%netscape.com
af56dac3b4
Merged JSMap & JSObject. Introduced JSNamespace.
2000-04-28 23:04:43 +00:00
beard%netscape.com
99956a6429
using JSValue::tag to do simple operand validation.
2000-04-28 05:43:33 +00:00
beard%netscape.com
df05dec418
reordered inheritance graph of Linkage.
2000-04-28 02:23:08 +00:00
rogerl%netscape.com
62485331a6
More exception handling handling.
2000-04-27 01:27:09 +00:00
beard%netscape.com
94c129e6fd
Using getProperty/setProperty rather than JSMap::operator[]. This follows the prototype chain.
2000-04-26 21:38:14 +00:00
beard%netscape.com
77ef914838
Fixing windows bustage in Linkage.
2000-04-26 05:56:20 +00:00
beard%netscape.com
4ae9bfec81
JSActivation -> Activation, JSLinkage --> Linkage. Linkage now implements the Context::Frame interface. Implemented simple Context::Listener support.
2000-04-26 05:35:07 +00:00
beard%netscape.com
4cb6fe2a7b
JSFrame -> JSLinkage, using explicit linked list rather than a stack.
2000-04-26 01:42:00 +00:00
beard%netscape.com
27fc318bb1
changed Context constructor to take JSObject* not JSObject&, to be able to control lifetime a little more carefully.
2000-04-25 03:32:53 +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
rogerl%netscape.com
5199f6e49c
Removing variables.
2000-04-19 22:45:57 +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
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
e82b4e2532
gc_base now used as common base class of GC allocated objects.
2000-04-13 04:54:41 +00:00
beard%netscape.com
12ccc48ec4
JSActivation, JSFunction
2000-04-11 05:11:58 +00:00
beard%netscape.com
af1f41fb7d
JSObject, JSArray : public JSMap, gc_object<T>. Frame -> JSFrame. Added JSFrameStack which is an std:stack<JSFrame*, std:vector<JSFrame*> >.
2000-04-11 03:11:00 +00:00
rogerl%netscape.com
2757a2004e
CALL opcode & frames etc. (r=beard)
2000-04-11 00:32:17 +00:00
beard%netscape.com
6337059f6f
JSArray::elements(1), operator[](const JSValue&), fixed register-indexing.
2000-04-08 04:12:28 +00:00
beard%netscape.com
8c93fb3d06
NEW_ARRAY
2000-04-08 03:37:49 +00:00
beard%netscape.com
afd93b4e07
added JSArray, GET_ELEMENT, SET_ELEMENT, changed some ops to dest/src.
2000-04-08 03:23:44 +00:00
rogerl%netscape.com
e60b5c26e9
Fixed wacky tabs
2000-04-08 01:08:01 +00:00
rogerl%netscape.com
d26609534d
Added ICodeModule to collect extra info about executable chunks.
2000-04-08 01:04:55 +00:00
beard%netscape.com
895fa664c4
reindented, introduced gc_map_allocator to hide platform differences
2000-04-08 00:52:59 +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
a1ce56851a
JSObject and its elements now allocated using gc_allocator<T> (XP_MAC only).
2000-04-07 04:39:50 +00:00
beard%netscape.com
781aff8cd6
Added preliminary object representation class JSObject, which is simply an STL map<String, JSValue> for now. Changed static globals to be a JSObject (can you say scope chain?). Implemented NEW_OBJECT, GET_PROP, and SET_PROP, all in terms of operations provided by JSObject. No GC (yet).
2000-04-07 02:52:07 +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
602bdc5282
more arithmetic, conditional branches, return instruction.
2000-04-06 02:58:22 +00:00
rogerl%netscape.com
047b74d5c6
Resolved branch targets
2000-04-06 00:04:11 +00:00
beard%netscape.com
f1388bf5a6
removed usage of labels (duh)
2000-04-05 23:57:51 +00:00
rogerl%netscape.com
d5b0b5bc32
typedef'd instructions
2000-04-05 23:41:58 +00:00
beard%netscape.com
76e3fd2f85
Added default case to avoid warning
2000-04-05 21:26:01 +00:00
beard%netscape.com
528d7eb22f
added "globals", labels parameter for branches, combined some Instruction_N<> typedefs.
2000-04-05 20:33:41 +00:00
beard%netscape.com
8a75ea3668
linux fixes
2000-04-05 06:10:53 +00:00