Граф коммитов

25 Коммитов

Автор SHA1 Сообщение Дата
rogerl%netscape.com 63047e7baf Mucking about with operator overlaoding plus initializing global context
- beginning type stuff.
2000-06-16 01:36:59 +00:00
rogerl%netscape.com 8b137399a7 Playing with operator overloading & Type types. 2000-05-19 17:41:10 +00:00
beard%netscape.com 171d878a64 InterpretStage -> Context::Event. Added typedefs for ListenerList and ListenerIterator. 2000-05-12 01:17:32 +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 d1626bab75 Removed setGlobalObject(), as only the interpreter should be mucking with it after initial creation. Added getWorld(), made getICode() out of line, removed mICode since it's part of Activation record. 2000-04-29 14:44:42 +00:00
beard%netscape.com 154414a0ee JSNamespace -> JSScope. 2000-04-29 14:14:28 +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 36879f0ce5 Added Context::Frame, Context::Listener abstract classes. Initial support for debugger. 2000-04-26 05:29:35 +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
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
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 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 95604b5bff Added JSFunction, defineFunction() 2000-04-11 05:10:40 +00:00
beard%netscape.com 8ef180ab04 use gc_allocator<T> everywhere, addGlobalProperty -> defineGlobalProperty 2000-04-11 03:07:39 +00:00
rogerl%netscape.com 2757a2004e CALL opcode & frames etc. (r=beard) 2000-04-11 00:32:17 +00:00
beard%netscape.com 468bc29100 added JSArray, comments. 2000-04-08 02:44:34 +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 3f67d58724 JSValues now using gc_allocator (XP_MAC only for now). 2000-04-07 04:38:18 +00:00
beard%netscape.com 53882505b5 added forward declaration to class JSObject, and changed void* JSValue.ref to JSObject* JSValue.obj. 2000-04-07 02:47:53 +00:00
beard%netscape.com 2901700dc5 added a ref field, changed default constructor to initialize f64. 2000-04-06 02:52:51 +00:00
beard%netscape.com f1388bf5a6 removed usage of labels (duh) 2000-04-05 23:57:51 +00:00
beard%netscape.com 9a69888729 added labels parameter. 2000-04-05 20:29:09 +00:00
beard%netscape.com ab11ac751b first crack at an icode interpreter 2000-04-05 06:05:57 +00:00