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

185 Коммитов

Автор SHA1 Сообщение Дата
rogerl%netscape.com 84455b51d9 Implementing Object.prototype object and global object for ECMA 3
Adding Math class support.
2000-07-21 01:16:49 +00:00
rogerl%netscape.com 06f0a5261f Removed all xxxCall, using simple call for everything.
Changed methods to use mMethods vector instead.
Various other fixes etc.
2000-07-18 20:53:03 +00:00
beard%netscape.com a5ef09a1a6 cleaned up by removing widenCString() calls when using world.identifiers 2000-07-17 20:39:19 +00:00
rogerl%netscape.com 0d866e25b5 Backed out time() 2000-07-14 01:46:14 +00:00
rogerl%netscape.com 23e9d7c1c8 Type targetted binary operators.
Added 'time()' function as native.
2000-07-14 01:00:53 +00:00
rogerl%netscape.com 58dc7e47b7 Switching to generic binary operator in order to distinguish situation
where Operators package had been loaded and be able to generate typed
versions of the binary operators otherwise.
2000-07-13 00:14:54 +00:00
rogerl%netscape.com b8bd1adb30 Implemented Import -only it's not in the parser yet.
Added missing defineXXX functions.
2000-07-11 23:49:20 +00:00
rginda%netscape.com 3a02396fda cleaned up linux warnings, minor debugger tweaks 2000-07-11 23:08:03 +00:00
rogerl%netscape.com 774d010635 More on @ operator. Fixed R 4billion print bug. 2000-07-11 20:54:06 +00:00
rogerl%netscape.com 087d2475a7 Some parts of x@<name> working. 2000-07-10 23:18:07 +00:00
rogerl%netscape.com daba9186aa Support for 'constructor'. 2000-07-08 01:08:29 +00:00
rogerl%netscape.com 1375151969 Removed preprocess step, consolidated identifier handling. 2000-07-06 18:26:26 +00:00
rogerl%netscape.com 63744d7c1c Implicit this and class lookup stuff. 2000-06-29 01:21:41 +00:00
rogerl%netscape.com 52bffdadcf First set of unified 'dot' handling changes for statics. 2000-06-28 18:41:30 +00:00
rogerl%netscape.com fbdb3fe1c1 lots of stuff me and Patrick did 2000-06-27 02:39:32 +00:00
beard%netscape.com 36eef7adea Added emptyArgs, removed unused return value in readEvalFile 2000-06-24 05:42:51 +00:00
beard%netscape.com b877fde64f VC++ doesn't like local classes in templates. 2000-06-24 05:36:09 +00:00
beard%netscape.com c5298ced1d major surgery to enable the "load()" native function. 2000-06-24 05:25:33 +00:00
rginda%netscape.com 486d1cc51a fixing source stepping (opcode stepping to come back later)
debugger is now quiet by default.
2000-06-24 02:53:29 +00:00
beard%netscape.com 146e187c7b testCompile() is static 2000-06-24 01:04:58 +00:00
rogerl%netscape.com 432c8b3cdc Got newClass working, added printProperties for instances, some slot
stuff is happening.
2000-06-24 00:50:59 +00:00
rogerl%netscape.com 89515e83dc Removed FUNCTION instruction, other class related junk. 2000-06-23 22:53:09 +00:00
rginda%netscape.com da45d9b0eb Added debugger opcode, change InstructionMap to a std::map, print source lines while tracing 2000-06-23 22:27:17 +00:00
rogerl%netscape.com f2591282dc Work to support 'this'. 2000-06-21 22:32:21 +00:00
rogerl%netscape.com 27e254fee3 Changed use of Register to TypedRegister throughout. 2000-06-20 22:45:45 +00:00
rogerl%netscape.com a8a18e9d21 Added tests for scripts as strings. 2000-06-16 01:37:47 +00:00
rogerl%netscape.com c354e43376 Mark top-level execution as 'script' rather than function - to handle
vars correctly.
2000-06-14 23:28:38 +00:00
waldemar%netscape.com 767f3c1669 Widened default line width to 30 2000-06-01 03:31:17 +00:00
rogerl%netscape.com 565b842243 Update to new icg constructor etc. 2000-05-26 22:34:42 +00:00
rogerl%netscape.com 39ebb9c8d8 Codegen for statements. Blew off old statement API and most of the test
functions for now, sorry.
2000-05-24 02:11:39 +00:00
waldemar%netscape.com d4e4f10d14 Turned on statement parsing and printing 2000-05-24 01:51:32 +00:00
rogerl%netscape.com 709d6c75d9 COMPARE_GT etc are gone. 2000-05-23 00:09:44 +00:00
rogerl%netscape.com f38a2dd543 Moved genExpr to ICodeGenerator 2000-05-18 00:01:33 +00:00
waldemar%netscape.com 4332726ebb Fixed parser errors 2000-05-12 05:15:52 +00:00
waldemar%netscape.com 0a6fc9df09 Turned on expression parsing and printing 2000-05-12 03:26:43 +00:00
beard%netscape.com 71c6e11ea9 InterpretStage -> Context::Event. 2000-05-12 01:20:34 +00:00
rogerl%netscape.com f1ae8af483 playing with gencode 2000-05-09 19:01:00 +00:00
beard%netscape.com a2f5fc24f7 generating code rather than showing tokens, printing generic result rather than assuming it's a float64. 2000-05-09 05:46:26 +00:00
beard%netscape.com 3553a3b540 print now returns JSValue, added space between args when printing 2000-05-09 03:56:56 +00:00
rogerl%netscape.com d703cf6197 testing native 'print' function 2000-05-08 23:12:10 +00:00
waldemar%netscape.com 4a3e9723dd Added formatters, zones, and other miscellaneous utilities 2000-05-06 03:31:35 +00:00
beard%netscape.com 5a1ab13253 stdin rather than cin 2000-05-05 04:45:39 +00:00
rginda%netscape.com d2e0252642 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 6f9510ebc6 JSNamespace -> JSScope. 2000-04-29 14:14:28 +00:00
beard%netscape.com 3eed137323 fixing windows bustage. 2000-04-29 00:29:56 +00:00
rginda%netscape.com 522d51c5b6 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 1f0e341d77 Merged JSMap & JSObject. Introduced JSNamespace. 2000-04-28 23:04:43 +00:00
beard%netscape.com aec49c3ae8 Don't print BRANCH operands. 2000-04-28 13:46:01 +00:00
beard%netscape.com 74ffb17601 Added Tracer to testFunctionCall(). 2000-04-28 13:31:39 +00:00
beard%netscape.com 905703a8f3 tracing now prints instruction operands. 2000-04-28 05:44:38 +00:00
beard%netscape.com 6b94a5aefc testProto() 2000-04-28 01:43:03 +00:00
rogerl%netscape.com f399ef5301 try/catch exercise changes 2000-04-28 00:11:18 +00:00
beard%netscape.com c9140f3cfb fixing bug: js2.cpp:328: Internal compiler error in scope_die_for, at dwarf2out.c:7794 Please submit a full bug report. See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions. 2000-04-26 05:43:24 +00:00
beard%netscape.com 4d54a513ae testFactorial() now installs a Context::Listener to trace execution. 2000-04-26 05:37:00 +00:00
beard%netscape.com b33c70b006 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
beard%netscape.com 1bc1bc77d5 fixing mac bustage (we do reference argc/argv, to initialize them to something sensible). 2000-04-25 02:58:30 +00:00
rogerl%netscape.com 4683e4c869 oops 2000-04-21 00:46:48 +00:00
rogerl%netscape.com 8c81be5a55 Added labelled statements, fixed some VC++'isms 2000-04-21 00:37:51 +00:00
rginda%netscape.com 6ceaff6eaf 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 2beda190e7 Began moving away from variables, fixed compare/branch ordering.
Testcases working.
2000-04-19 02:09:06 +00:00
beard%netscape.com cbc85867b4 moved initConsole() out to :: namespace. 2000-04-18 00:51:53 +00:00
rginda%netscape.com f8d4b9c989 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 43a8442f14 defineFunction, added assert 2000-04-11 05:09:38 +00:00
beard%netscape.com 38c0d29748 defineGlobalProperty 2000-04-11 03:11:47 +00:00
rogerl%netscape.com bb3a13555c CALL opcode & frames etc. (r=beard) 2000-04-11 00:32:17 +00:00
beard%netscape.com 513caa886a Reduced size of args arrays to minimum. 2000-04-08 04:41:19 +00:00
beard%netscape.com 207529a65d 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 4898874939 Added ICodeModule to collect extra info about executable chunks. 2000-04-08 01:04:55 +00:00
beard%netscape.com 545dc2fc59 printing code in testObjects(). 2000-04-07 04:59:57 +00:00
beard%netscape.com dee4064778 duh, can't use wide string constants on Linux 2000-04-07 03:08:20 +00:00
beard%netscape.com deb19d6e30 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 6e1ee07def Implemented Formatters for output 2000-04-06 23:47:33 +00:00
rogerl%netscape.com 7741726bd9 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 e6900034ca added testInterpreter(), which computes factorial using iCode (woo hoo!) 2000-04-06 02:59:16 +00:00
beard%netscape.com a8127fa669 backed out "fix" (thanks waldemar) 2000-04-05 04:24:19 +00:00
beard%netscape.com 1da98657a9 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 cf49d1a5d6 making icode generation test not mutually exclusive with the REPL. 2000-04-05 00:52:47 +00:00
waldemar%netscape.com 143e65e71e Updated lexer API 2000-04-04 21:38:25 +00:00
rogerl%netscape.com b8da7521e4 For statements. 2000-04-01 02:53:16 +00:00
rogerl%netscape.com f4b33493b8 Added do & switch statements, more hacking at the code state thing. 2000-04-01 01:30:32 +00:00
rogerl%netscape.com a0dcea4077 Test driver for icg in main, just a temporary thing 2000-03-29 19:24:07 +00:00
waldemar%netscape.com aef6520d4d Updated for VC6 2000-02-03 08:25:01 +00:00
waldemar%netscape.com 60f5d2006b Added lexer call 2000-02-02 08:47:03 +00:00
waldemar%netscape.com b79a5dc2ab Switched to using appendChars 2000-01-25 22:56:48 +00:00
waldemar%netscape.com d331d3a864 First Checked In. 2000-01-10 21:22:43 +00:00