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

27 Коммитов

Автор SHA1 Сообщение Дата
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 7b7fc3829f Began moving away from variables, fixed compare/branch ordering.
Testcases working.
2000-04-19 02:09:06 +00:00
beard%netscape.com 7add6915a1 moved initConsole() out to :: namespace. 2000-04-18 00:51:53 +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 c721ec102b defineFunction, added assert 2000-04-11 05:09:38 +00:00
beard%netscape.com 92ec71fb35 defineGlobalProperty 2000-04-11 03:11:47 +00:00
rogerl%netscape.com 2757a2004e CALL opcode & frames etc. (r=beard) 2000-04-11 00:32:17 +00:00
beard%netscape.com 14a585783b Reduced size of args arrays to minimum. 2000-04-08 04:41:19 +00:00
beard%netscape.com 138afee3b4 Reordered parameters to getProperty()/setProperty() to be consistent with operand ordering. Added array allocation/indexing to testObjects(). 2000-04-08 04:15:02 +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 89b42085ab printing code in testObjects(). 2000-04-07 04:59:57 +00:00
beard%netscape.com 1a2406676c duh, can't use wide string constants on Linux 2000-04-07 03:08:20 +00:00
beard%netscape.com 26a073ebc4 XP_MAC: no longer auto close upon exit (so we can see asserts, etc.). Renamed testInterpreter() to testFactorial(). Added testObjects(), which allocates an object, stores it in the global variable "global", assigns 0.0 to "global.counter", and finally defines a function "increment" which adds 1.0 to "global.counter" each time it is called. 2000-04-07 02:58:01 +00:00
waldemar%netscape.com f9ce82ae8e Implemented Formatters for output 2000-04-06 23:47:33 +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 6e423dece1 added testInterpreter(), which computes factorial using iCode (woo hoo!) 2000-04-06 02:59:16 +00:00
beard%netscape.com 2ff22a0e79 backed out "fix" (thanks waldemar) 2000-04-05 04:24:19 +00:00
beard%netscape.com 91135e142e removed newline mapping code (instead using compiler mapping of '\n' to '\r' in literals, which should do the right thing). 2000-04-05 03:57:57 +00:00
beard%netscape.com 5b21e4b8ec making icode generation test not mutually exclusive with the REPL. 2000-04-05 00:52:47 +00:00
waldemar%netscape.com a84c5b0547 Updated lexer API 2000-04-04 21:38:25 +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 dd0e354b10 Test driver for icg in main, just a temporary thing 2000-03-29 19:24:07 +00:00
waldemar%netscape.com 5acd2ebc45 Updated for VC6 2000-02-03 08:25:01 +00:00
waldemar%netscape.com 666c772717 Added lexer call 2000-02-02 08:47:03 +00:00
waldemar%netscape.com 8a8608577e Switched to using appendChars 2000-01-25 22:56:48 +00:00
waldemar%netscape.com 0f267bc1c5 First Checked In. 2000-01-10 21:22:43 +00:00