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

181 Коммитов

Автор SHA1 Сообщение Дата
pschwartau%netscape.com de92be7592 Correcting an error in the test. Added comments to explain. 2001-08-14 20:28:06 +00:00
pschwartau%netscape.com c8f2950727 Added comment. 2001-08-14 04:18:24 +00:00
pschwartau%netscape.com c90b6e6550 Initial add. 2001-08-14 04:12:21 +00:00
pschwartau%netscape.com ffed1be333 Correcting a mistake: "prototype" functions should be "constructor" functions. 2001-08-14 03:22:07 +00:00
pschwartau%netscape.com 23ec4052a2 Added many new cases to test. 2001-08-14 02:19:08 +00:00
waldemar%netscape.com abdb640233 Merged with branch 2001-08-10 23:50:27 +00:00
pschwartau%netscape.com 8b813402f5 Initial add 2001-08-07 19:46:26 +00:00
pschwartau%netscape.com 04bcd0b844 Initial add. 2001-08-07 19:45:15 +00:00
rogerl%netscape.com 4160719eb2 Merging JS2_DIKDIK_BRANCH macbuild related stuff. 2001-08-07 01:40:39 +00:00
rogerl%netscape.com ca6a263e83 Merging DIKDIK_BRANCH into main line. 2001-08-07 01:21:11 +00:00
rogerl%netscape.com a85e959b31 More branch merging. 2001-08-06 22:06:15 +00:00
rogerl%netscape.com 5ab74c2310 More branch merging 2001-08-06 21:57:00 +00:00
rogerl%netscape.com c963d9e017 Tentative fix for build related issues. 2001-03-27 22:05:48 +00:00
jeff.dyer%compilercompany.com dc352e6fb6 Updating JSC with framework for semantics in cpp. 2001-03-26 22:31:11 +00:00
rogerl%netscape.com 35825b2bf5 Need to pass context now. 2001-02-23 00:23:53 +00:00
beard%netscape.com a5bc14a2ad Fixed crashing bugs by using PowerPC struct alignment. Reorganized project to link against Mac libraries, rather than having JS2.lib bring them in. 2001-02-14 18:38:12 +00:00
beard%netscape.com 0e29b661a3 Fixing assertion in test case, so js2 shell will start correctly. 2001-02-14 18:30:03 +00:00
beard%netscape.com 8af9421767 Fixed crashing bugs by using PowerPC struct alignment. 2001-02-13 05:05:59 +00:00
rginda%netscape.com 53c12bbf5e adding .prefix files for the tests 2001-02-09 23:32:03 +00:00
rginda%netscape.com 3d087768a1 changes to get the tests building again on the mac 2001-02-09 23:31:11 +00:00
rogerl%netscape.com 8852bd4828 Added WIN32 warning suppression pragma. 2001-02-09 19:11:04 +00:00
rginda%netscape.com 2c018ad0a6 mac build goop for tests/cpp and utilities.cpp fix for debug targets on mac 2001-02-09 00:08:22 +00:00
rginda%netscape.com c7680f76f8 Adding windows build goop for the tests 2001-02-08 21:38:52 +00:00
rginda%netscape.com 7c1ad74353 changes to get js2_shell to build 2001-02-08 06:01:54 +00:00
rginda%netscape.com 4087957756 ok, that was silly, removing generated Makefiles 2001-02-07 21:33:02 +00:00
rginda%netscape.com 74ad25891f Adding Makefiles 2001-02-07 21:29:36 +00:00
rginda%netscape.com 90b123912b adding automake file 2001-02-07 21:27:25 +00:00
rginda%netscape.com 848ccfca69 initial checkin for source reorg. leaf copied mozilla/js/js2 to mozilla/js2/src, mozilla/js/js2/jsc to mozilla/js2/jsc, mozilla/js/js2/tools to mozilla/js2/tools, and mozilla/js/semantics to mozilla/js2/semantics
unix now has an autoconf based make system.  currently the new make system only makes parser related files, back end stuff to be added soon.

mac and windows makesystems will be checked in next.

parser.cpp has been factored into token.*, lexer.*, and parser.*
utilities.cpp has been factored into formatter.*, exception.*, mem.*, strings.*,ds.h, stlcfg.h, and algo.h
2001-02-07 21:21:22 +00:00
rogerl%netscape.com 4b45446f30 Re-structuring some ICG details. 2001-02-02 01:04:22 +00:00
rogerl%netscape.com 35b3299ba1 Added <function> at top level and example thereof. 2001-01-20 00:44:51 +00:00
rogerl%netscape.com 5ef03957d6 Fixes and enhancements to get class references, constructors and scripts
working from .xml input.
2001-01-19 23:56:37 +00:00
rogerl%netscape.com 43daa9fbee Fix for VC++ compile. 2001-01-02 19:49:16 +00:00
beard%netscape.com 99f9432582 no need to copy JSString values into String values. 2000-12-30 07:06:03 +00:00
rogerl%netscape.com adeb9ce419 Added 'length' to Array objects as a getter property - and fixed up stuff
that this depended on. Fixed parameter names for xml classes and added
'loadxml' global function.
2000-12-15 01:38:40 +00:00
jeff.dyer%compilercompany.com 843e30ec1a Fix the first startup test. 2000-11-08 21:05:58 +00:00
rogerl%netscape.com 0a6215f169 Fixed warnings & bogus qualifier. 2000-11-07 01:09:45 +00:00
rogerl%netscape.com 7f2318fcc5 Fixed compare bugs. Report results from js2 test cases. Rewrote generic
equal to match ECMA 1.5
2000-11-06 22:57:10 +00:00
rogerl%netscape.com 7b8898dcf1 Fixed adding setter to virtual inherited field. 2000-11-03 02:42:01 +00:00
jeff.dyer%compilercompany.com 73411c491c Parsing named parameters and arguments according to the Sep-23rd revision
of the grammar. WARNING: struct VariableBinding has grown. Recompile all
after getting this revision.
2000-10-23 19:39:55 +00:00
rogerl%netscape.com 8e8a28606a Changed ArgumentList to ArgumentList*. Changed ICodeGenerator to take a
Context instead of world & global pair. Connected to ICodeAssembler from
XMLParser.
2000-10-21 00:30:23 +00:00
rogerl%netscape.com e30ce8373b Added XMLparsing to load a class. Fixed handling of forward references to
class methods/fields.
2000-10-18 23:37:44 +00:00
rogerl%netscape.com 8141a721b4 Mods for getter/setter methods. 2000-10-09 22:21:26 +00:00
rogerl%netscape.com b7a244e864 Oops. Left icode output on by default, now off. 2000-08-04 20:37:42 +00:00
waldemar%netscape.com 9e6ed90896 Fixed Mac errors and warnings 2000-08-02 23:09:29 +00:00
rogerl%netscape.com 4105edc56c Function prototype objects etc. 2000-07-26 01:56:47 +00:00
rogerl%netscape.com 785fb348fd More ECMA 3 mucking about to support constructors etc. 2000-07-25 22:58:04 +00:00
rogerl%netscape.com 4ae568de5e 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 cfd4e435be 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 a831464e86 cleaned up by removing widenCString() calls when using world.identifiers 2000-07-17 20:39:19 +00:00
rogerl%netscape.com 394eae2d67 Backed out time() 2000-07-14 01:46:14 +00:00
rogerl%netscape.com 9d9a2397fe Type targetted binary operators.
Added 'time()' function as native.
2000-07-14 01:00:53 +00:00
rogerl%netscape.com bc2242f4d4 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 6982a7a85f 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 0521d8724e cleaned up linux warnings, minor debugger tweaks 2000-07-11 23:08:03 +00:00
rogerl%netscape.com 892b3e4cff More on @ operator. Fixed R 4billion print bug. 2000-07-11 20:54:06 +00:00
rogerl%netscape.com aa83a57078 Some parts of x@<name> working. 2000-07-10 23:18:07 +00:00
rogerl%netscape.com 0d7c4bc5c1 Support for 'constructor'. 2000-07-08 01:08:29 +00:00
rogerl%netscape.com f677b9a1dd Removed preprocess step, consolidated identifier handling. 2000-07-06 18:26:26 +00:00
rogerl%netscape.com 8d0b4fe645 Implicit this and class lookup stuff. 2000-06-29 01:21:41 +00:00
rogerl%netscape.com b5f49320b8 First set of unified 'dot' handling changes for statics. 2000-06-28 18:41:30 +00:00
rogerl%netscape.com b3fecb38fa lots of stuff me and Patrick did 2000-06-27 02:39:32 +00:00
beard%netscape.com c8cdd76d90 Added emptyArgs, removed unused return value in readEvalFile 2000-06-24 05:42:51 +00:00
beard%netscape.com 0dcdb5889f VC++ doesn't like local classes in templates. 2000-06-24 05:36:09 +00:00
beard%netscape.com 5d6bcd66f6 major surgery to enable the "load()" native function. 2000-06-24 05:25:33 +00:00
rginda%netscape.com 5159f8b51d 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 db5e4eeed7 testCompile() is static 2000-06-24 01:04:58 +00:00
rogerl%netscape.com ac7b311416 Got newClass working, added printProperties for instances, some slot
stuff is happening.
2000-06-24 00:50:59 +00:00
rogerl%netscape.com 9d4fb54c88 Removed FUNCTION instruction, other class related junk. 2000-06-23 22:53:09 +00:00
rginda%netscape.com b4077ed50c 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 3783f2c99e Work to support 'this'. 2000-06-21 22:32:21 +00:00
rogerl%netscape.com 0bb6f588ba Changed use of Register to TypedRegister throughout. 2000-06-20 22:45:45 +00:00
rogerl%netscape.com a0ca8346b0 Added tests for scripts as strings. 2000-06-16 01:37:47 +00:00
rogerl%netscape.com 22b93140d6 Mark top-level execution as 'script' rather than function - to handle
vars correctly.
2000-06-14 23:28:38 +00:00
waldemar%netscape.com 7812dc9a8e Widened default line width to 30 2000-06-01 03:31:17 +00:00
rogerl%netscape.com 7535f22230 Update to new icg constructor etc. 2000-05-26 22:34:42 +00:00
rogerl%netscape.com bbd7ed8e62 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 01a830b36d Turned on statement parsing and printing 2000-05-24 01:51:32 +00:00
rogerl%netscape.com bf553c65fb COMPARE_GT etc are gone. 2000-05-23 00:09:44 +00:00
rogerl%netscape.com ad5c33b8e4 Moved genExpr to ICodeGenerator 2000-05-18 00:01:33 +00:00
waldemar%netscape.com f2965154c2 Fixed parser errors 2000-05-12 05:15:52 +00:00
waldemar%netscape.com 3be5d6b79c Turned on expression parsing and printing 2000-05-12 03:26:43 +00:00
beard%netscape.com d4060c6bef InterpretStage -> Context::Event. 2000-05-12 01:20:34 +00:00
rogerl%netscape.com 908ce34c76 playing with gencode 2000-05-09 19:01:00 +00:00
beard%netscape.com c5dcfed7a0 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 c5e54d1f21 print now returns JSValue, added space between args when printing 2000-05-09 03:56:56 +00:00
rogerl%netscape.com 9da7770958 testing native 'print' function 2000-05-08 23:12:10 +00:00
waldemar%netscape.com 9258b98a99 Added formatters, zones, and other miscellaneous utilities 2000-05-06 03:31:35 +00:00
beard%netscape.com a95951573d stdin rather than cin 2000-05-05 04:45:39 +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 154414a0ee JSNamespace -> JSScope. 2000-04-29 14:14:28 +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 4e41834f75 Don't print BRANCH operands. 2000-04-28 13:46:01 +00:00
beard%netscape.com 082ad168b4 Added Tracer to testFunctionCall(). 2000-04-28 13:31:39 +00:00
beard%netscape.com b3dc38ee22 tracing now prints instruction operands. 2000-04-28 05:44:38 +00:00
beard%netscape.com 7293a17b91 testProto() 2000-04-28 01:43:03 +00:00
rogerl%netscape.com b28efe5b88 try/catch exercise changes 2000-04-28 00:11:18 +00:00
beard%netscape.com 563b59ef15 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 8a97a98204 testFactorial() now installs a Context::Listener to trace execution. 2000-04-26 05:37:00 +00:00