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

439 Коммитов

Автор SHA1 Сообщение Дата
beard%netscape.com 17bcf1f4d9 Added JSString for gc-able UNICODE strings, changed toString(), toNumber() to return JSValue rather than JSValue*. 2000-05-09 03:10:04 +00:00
beard%netscape.com 9e824b3492 make wchar_t an atomic type, for JSString. 2000-05-09 03:06:49 +00:00
waldemar%netscape.com b6ad6e0d78 Changed default constructor name from 'new' to the same name as its class 2000-05-09 00:10:50 +00:00
rogerl%netscape.com 9da7770958 testing native 'print' function 2000-05-08 23:12:10 +00:00
rogerl%netscape.com 70fd2e12cf Added more string handling + valueToString/Number code.
NativeFunction support.
2000-05-08 22:59:42 +00:00
waldemar%netscape.com 32a487e8ba Fixed syntax errors 2000-05-06 03:47:35 +00:00
waldemar%netscape.com 7ec407aaec Reordered includes to ensure that systemtypes.h is always included first; that's needed for Visual C++ 2000-05-06 03:47:13 +00:00
waldemar%netscape.com 45d64f11e9 Reordered files back to dependency order. Added gc_allocator.h. 2000-05-06 03:33:25 +00:00
waldemar%netscape.com f92842a971 Fixed syntax error 2000-05-06 03:31:50 +00:00
waldemar%netscape.com 9258b98a99 Added formatters, zones, and other miscellaneous utilities 2000-05-06 03:31:35 +00:00
waldemar%netscape.com 172513021f Fixed mac warning 2000-05-06 03:30:37 +00:00
rogerl%netscape.com 73705a8af1 Load_String 2000-05-05 23:23:13 +00:00
rogerl%netscape.com 25d9160b79 Basic string literal & value support 2000-05-05 23:22:31 +00:00
rogerl%netscape.com 0abfa73fd7 New arithmetic ops. 2000-05-05 21:38:16 +00:00
rogerl%netscape.com 05b4422677 Bunch more arithmetic ops etc.
Also fixed case munging when class name was only 2 letters long.
2000-05-05 21:36:36 +00:00
beard%netscape.com d1e0d062d0 Added debugger source 2000-05-05 18:20:05 +00:00
beard%netscape.com f346f8d86c No need to use string, now that size_t LineReader::readLine(String& wstr) exists. 2000-05-05 05:25:00 +00:00
beard%netscape.com 094e8c7500 added size_t LineReader::readLine(String& wstr) for convenience. 2000-05-05 05:24:02 +00:00
beard%netscape.com 15d927bcb1 regenerated dependencies 2000-05-05 04:58:56 +00:00
beard%netscape.com 6e4e5d59d1 LineReader returns at least '\n' 2000-05-05 04:50:45 +00:00
beard%netscape.com a95951573d stdin rather than cin 2000-05-05 04:45:39 +00:00
beard%netscape.com 7ff3a71924 Needed to use namespace Interpreter to see Context, using LineReader instead of istream. 2000-05-05 04:44:51 +00:00
beard%netscape.com f9843b94da remove unnecessary #include <iostream> 2000-05-05 04:44:01 +00:00
beard%netscape.com 1a0c42b62f Use FILE* instead of istream& for better line handling 2000-05-05 04:43:12 +00:00
beard%netscape.com 1210745bf0 EOF handling 2000-05-05 04:19:20 +00:00
beard%netscape.com d473e75f91 can't use std::getline() with a String on all platforms. 2000-05-05 04:10:01 +00:00
beard%netscape.com 34072e3ec7 forward declaring std::istream. 2000-05-05 04:08:59 +00:00
beard%netscape.com 6a814bf3a1 fixed ICodeGenerator/ICodeModule::print on Mac, which seems to be getting confused when using operator<< in another namespace. 2000-05-05 04:05:56 +00:00
beard%netscape.com 3bee0e64c4 removed unused macro NS_JSICG. 2000-05-05 04:04:23 +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
rogerl%netscape.com f0a527348f Added const to the StringAtom usage.
Propagated variableList to ICodeModule
2000-05-04 22:08:38 +00:00
beard%netscape.com 638c7e68c2 fix assert bustage in DEBUG build. 2000-05-03 01:41:37 +00:00
rogerl%netscape.com c5ae7fcab1 Cleaning up some label stuff 2000-05-02 21:36:28 +00:00
beard%netscape.com e57aaf2941 warnings on Linux 2000-05-01 17:18:49 +00:00
beard%netscape.com d3a405ae82 fixing breakage on Linux 2000-05-01 17:18:23 +00:00
beard%netscape.com a38befc82a removed unnecessary casts to int32 in ICodeGenerator::setLabel() which were generating warnings. 2000-05-01 17:11:36 +00:00
waldemar%netscape.com 67d784459e Changed syntax of identifiers, attributes, expressions, functions, and packages. Added export, use, constructor, namespace, import. 2000-05-01 06:21:39 +00:00
beard%netscape.com b8c58d5968 made startsWith() static, to fix no prototype warning. 2000-04-30 14:56:31 +00:00
beard%netscape.com a7d1d8240d added debugger.cpp/h. 2000-04-30 14:55:51 +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 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 a49b031e34 Added JSScope::getParent(). 2000-04-29 14:39:50 +00:00
beard%netscape.com 154414a0ee JSNamespace -> JSScope. 2000-04-29 14:14:28 +00:00
beard%netscape.com 5e49b8d13f JSValue::operator==(const JSValue&) 2000-04-29 14:13:43 +00:00
beard%netscape.com 1603cc24d3 Added JSValue::operator==(const JSValue&), renamed JSNamespace JSScope. 2000-04-29 14:13:08 +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 dce8602831 added WITHIN, WITHOUT instructions. 2000-04-29 14:10:53 +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 cd2ea3d3e4 Added jstypes.cpp 2000-04-28 23:10:06 +00:00
beard%netscape.com af56dac3b4 Merged JSMap & JSObject. Introduced JSNamespace. 2000-04-28 23:04:43 +00:00
rginda%netscape.com 69e9b0ee35 80 column nit picked, comment fixed 2000-04-28 15:32:54 +00:00
beard%netscape.com 4e41834f75 Don't print BRANCH operands. 2000-04-28 13:46:01 +00:00
beard%netscape.com 8ff65a3852 tightened up spacing in printOperands(), changed GenericBranch.printOperands() to conditionally print condition register contents. 2000-04-28 13:44:59 +00:00
beard%netscape.com 2efc159d82 tightened up spacing in printOperands(). 2000-04-28 13:43:49 +00:00
beard%netscape.com 082ad168b4 Added Tracer to testFunctionCall(). 2000-04-28 13:31:39 +00:00
beard%netscape.com c4a7011cdf const ArgList& makes gcc happy. 2000-04-28 13:25:57 +00:00
beard%netscape.com 734c2d1779 Added jstypes.o 2000-04-28 13:25:24 +00:00
beard%netscape.com 1d0cfaf144 added ArgList helper struct to print Call operands, regenerated printOperands() methods to reduce warnings. 2000-04-28 13:20:26 +00:00
beard%netscape.com bbe2f74bd7 operator<< (Formatter& f, ArgList& al) 2000-04-28 13:18:03 +00:00
beard%netscape.com 2ccb1db4e8 support for printing ArgLists. 2000-04-28 13:17:35 +00:00
beard%netscape.com 02fccb52ca Unused. 2000-04-28 13:16:23 +00:00
beard%netscape.com 0a6482a9e4 regenerated dependencies 2000-04-28 05:46:22 +00:00
beard%netscape.com b3dc38ee22 tracing now prints instruction operands. 2000-04-28 05:44:38 +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 f3d2f8c11d forward declaring ICodeModule, to break circularity. JSValue is now a tagged union. 2000-04-28 05:42:46 +00:00
beard%netscape.com a166644e29 Instruction::count(), Instruction::printOperands(), plus newly generated instruction classes. 2000-04-28 05:41:54 +00:00
beard%netscape.com 0dee053bef added jstypes.cpp 2000-04-28 05:40:42 +00:00
beard%netscape.com cf5bda1bec operator<<(Formatter&, const JSValue&) 2000-04-28 05:40:16 +00:00
beard%netscape.com dc524f8331 generates printOperands() 2000-04-28 05:39:27 +00:00
beard%netscape.com bc2e56b97c runs gencode.pl with MW Perl. 2000-04-28 05:39:04 +00:00
waldemar%netscape.com 192b3c45c8 Changed attributes and 'language' statement syntax, added interfaces, and removed ^*, ^?, |*, and |?. 2000-04-28 02:34:14 +00:00
rginda%netscape.com 5ab596c1c3 don't generate print_args if super_has_print
comment fixes
2000-04-28 02:33:36 +00:00
waldemar%netscape.com c0b3a0c99c Changed period to dot 2000-04-28 02:31:41 +00:00
waldemar%netscape.com ef5540e948 Fixed syntax of (bottom) 2000-04-28 02:30:44 +00:00
waldemar%netscape.com 5e5a923879 First Checked In. 2000-04-28 02:30:19 +00:00
rginda%netscape.com 9c217a25f0 moved comment so it made more sense 2000-04-28 02:26:14 +00:00
beard%netscape.com df05dec418 reordered inheritance graph of Linkage. 2000-04-28 02:23:08 +00:00
rginda%netscape.com 5701c02682 printarg stubbed out 2000-04-28 02:20:23 +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
rogerl%netscape.com 11e9424ecd fixed bad constructor thing. 2000-04-28 00:10:22 +00:00
rogerl%netscape.com 62485331a6 More exception handling handling. 2000-04-27 01:27:09 +00:00
beard%netscape.com 427dc1a8eb oops. 2000-04-26 22:10:20 +00:00
beard%netscape.com 758222941a removed JSMap::operator[], added set/getPrototype(). 2000-04-26 22:06:17 +00:00
beard%netscape.com 36a2941e26 oops getProperty() can't be const unless map.find() is used everywhere. 2000-04-26 21:48:04 +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 c7426026d9 added JSMap::setProperty()/getProperty(), and a prototype field. 2000-04-26 21:27:44 +00:00
rginda%netscape.com a0058d1d8d initial add of debugger vapors 2000-04-26 06:04:02 +00:00
beard%netscape.com 77ef914838 Fixing windows bustage in Linkage. 2000-04-26 05:56:20 +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
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 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 9b7ed9578b removed intentionally private JSActivation/JSFrame types. The debugger should be able to ask questions of the interpreter to obtain this information. 2000-04-26 01:39:56 +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
beard%netscape.com 6a4bca91fe warning removal 2000-04-25 03:28:41 +00:00
beard%netscape.com 39551bc785 fixing mac bustage (we do reference argc/argv, to initialize them to something sensible). 2000-04-25 02:58:30 +00:00
beard%netscape.com 9d7aed4cd0 renamed not() -> complement() (not is a keyword in C++), implemented complement(). 2000-04-25 02:55:08 +00:00