Log of /see/releases/see-3.0/libsee
Directory Listing
Revision
1374 -
Directory Listing
Modified
Sun Feb 10 10:19:45 2008 UTC (2 years, 6 months ago) by
d
Copy SEE's trunk to releases/see-3.0
Revision
1371 -
Directory Listing
Modified
Sun Feb 10 04:59:09 2008 UTC (2 years, 6 months ago) by
d
Original Path:
see/trunk/libsee
Allow constant folding independent of bytecode/AST eval.
Added --enable-ast-eval (default no). The AST is still generated during
parse but constant folding is now implemented using code execution, instead
of node evaluation. This removed redundant evaluation code.
Revision
1370 -
Directory Listing
Modified
Sat Feb 9 12:54:24 2008 UTC (2 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
Allocate the right amount of space for int->str conversion.
Revision
1366 -
Directory Listing
Modified
Sat Feb 9 10:26:02 2008 UTC (2 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
Bug 118: Programs with only function decls had no effect in bytecode mode
Revision
1364 -
Directory Listing
Modified
Fri Feb 8 14:45:49 2008 UTC (2 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
Remove some compiler warnings
since we now use integers instead of pointers for branch targets.
Revision
1363 -
Directory Listing
Modified
Fri Feb 8 14:24:55 2008 UTC (2 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
Simplify Boehm GC tests to just '#if WITH_BOEHM_GC'
The Boehm GC is found in a more portable way, that works on win32 as well now.
Also removed GC_PTR which isn't in Boehm GC 7.0.
Also fixed -lpcre to go in SEE_LIBS.
Revision
1362 -
Directory Listing
Modified
Fri Feb 8 14:22:52 2008 UTC (2 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
The variable for linking libs with SEE is SEE_LIBS, not SEE_LDADD.
Also, cause t-File test to be skipped if shared libraries were disabled.
Revision
1361 -
Directory Listing
Modified
Fri Feb 8 12:36:20 2008 UTC (2 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
Correctly initialize SEE_native.lru to NULL
(because the allocator may not return zeroed memory)
Revision
1360 -
Directory Listing
Modified
Fri Feb 8 12:30:41 2008 UTC (2 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
Add missing header, and correct a compiler warning, for win32 platform support
Revision
1353 -
Directory Listing
Modified
Fri Feb 8 10:09:20 2008 UTC (2 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
Correct the length property of Function.prototype.apply
Revision
1352 -
Directory Listing
Modified
Fri Feb 8 09:59:49 2008 UTC (2 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
Add a simple lookup cache for native object property access.
- added new field to SEE_native called 'lru'
(lru = Last Recently Used.. yes, a silly name)
- lru is check on most accessor methods.
Tracing (with -dn) shows that lru hits are quite frequent.
- Changed the hashing function to ignore the lower 7 bits
Strings within 128 bytes of each other may have the same hash.
Revision
1351 -
Directory Listing
Modified
Fri Feb 8 09:56:22 2008 UTC (2 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
Intern'd strings now allocate the minimum storage they really need
- New function _SEE_string_dup_fix()
- Also, SEE_string_free now ignores some obviously static strings.
Revision
1350 -
Directory Listing
Modified
Fri Feb 8 09:53:55 2008 UTC (2 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
Improve allocation debugging and reduce typical memory footprint.
- Changed signature of SEE_system.malloc and friends; they now take the
filename:line of the original caller, so as to allow allocation debugging.
- Changed GROW_INITIAL_SIZE from 1k to 64; this the reduces memory footprint
- Changed attribute modifier _SEE_malloc to _SEE__malloc.
- Removed 'arg' argument from the _SEE_malloc_*debug() functions
- Defined GC_DEBUG when --enable-developer is given
- simple_malloc's finalizer now runs all finalizers via atexit().
Revision
1349 -
Directory Listing
Modified
Fri Feb 8 09:45:33 2008 UTC (2 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
Avoid a compiler warning by using plain old int to carry a boolean result.
Revision
1348 -
Directory Listing
Modified
Fri Feb 8 09:44:22 2008 UTC (2 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
Add a forward structure declaration to avoid a minor compiler warning.
Revision
1339 -
Directory Listing
Modified
Tue Feb 5 13:34:58 2008 UTC (2 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
Update test to be exactly that from the docs. i.e. add SEE_init() call.
Revision
1334 -
Directory Listing
Modified
Sun Feb 3 00:16:39 2008 UTC (2 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
Bug 117: Function expression property had wrong attributes (bytecode only)
Revision
1333 -
Directory Listing
Modified
Sat Feb 2 13:52:55 2008 UTC (2 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
Make branch targets work with bytecode generator.
Branch (break/continue) targets are now identified by integers.
Labels have been separated from labelsets.
Minor fixes to code generator:
- B_TRUE instruction calls ToBoolean()
- some string internalising
- fix an assertion check to handle NULL filenames
Revision
1328 -
Directory Listing
Modified
Sun Jan 20 12:40:14 2008 UTC (2 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
[Get], [Put], [CanPut], [HasProperty] and [Delete] assume intern'd properties.
This is an important API change for users. You should review all places
where you use the SEE_OBJECT_GET/PUT/CANPUT/etc macros and wrap the property
argument with SEE_intern(interp, ...) as required.
The SEE_OBJECT_GET/PUT/etc macros now contain an assertion check to detect
when non-internalised properties have been passed. This should make it pretty
easy to find where non-interned properties are being used.
The assertion check is disabled by defining NDEBUG, or when --disable-debug
is provided during configure.
Revision
1326 -
Directory Listing
Modified
Sun Jan 20 09:34:48 2008 UTC (2 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
Fix the isatty() code that activates coloured test labels
Revision
1322 -
Directory Listing
Modified
Sun Jan 20 08:52:52 2008 UTC (2 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
Add SEE_string_fix() function to create interpreter-less strings
that are safe for sharing between interpreters.
Revision
1321 -
Directory Listing
Modified
Sun Jan 20 08:49:40 2008 UTC (2 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
Bug 115: Object.prototype.isPrototypeOf() didn't follow prototype chain
Revision
1320 -
Directory Listing
Modified
Tue Jan 15 11:47:21 2008 UTC (2 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
Bug 113: add SEE_interpreter_save_state()
This API extension is for Hermecz who is using multiple threads per interpreter
Revision
1317 -
Directory Listing
Modified
Sun Jan 13 06:10:19 2008 UTC (2 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
Add tests for bug 104.
Note: Includes is a commented-out test for finalizers with cycles.
Revision
1316 -
Directory Listing
Modified
Sun Jan 13 02:21:42 2008 UTC (2 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
Bug 102: fix traceback chains.
This commit reworks how the try/catch/finally handlers work, and adds
a test suite for try-finally-catch under different circumstances.
Also, the general test framework was overhauled so that specific
exceptions can be tested for.
And new macro, SEE_RETHROW() is introduced.
Revision
1315 -
Directory Listing
Modified
Sat Jan 12 04:36:20 2008 UTC (2 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
Bug 112: /)/ and other disallowed regular expressions are now detected
Revision
1314 -
Directory Listing
Modified
Sat Jan 12 00:28:09 2008 UTC (2 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
Bug 110: /[]/ is a legal regular expression, and should not throw SyntaxError
Revision
1313 -
Directory Listing
Modified
Sat Jan 12 00:21:04 2008 UTC (2 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
Bug 109: detect illegal unicode escapes within identifiers (s7.6:3)
Revision
1312 -
Directory Listing
Modified
Fri Jan 11 23:57:44 2008 UTC (2 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
Bug 108: Number.toString(undefined) should behave like Number.toString()
Revision
1311 -
Directory Listing
Modified
Thu Jan 10 13:59:14 2008 UTC (2 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
bug 107: support changing regex engines and add Shell.regex_engine().
Revision
1309 -
Directory Listing
Modified
Wed Jan 9 11:50:18 2008 UTC (2 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
Generate a pkg-config output (lib/pkgconfig/see.pc) and implement --with-pcre
Revision
1308 -
Directory Listing
Modified
Wed Jan 9 11:48:04 2008 UTC (2 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
Add support for PCRE (http://pcre.org/)
Note that PCRE is not wholly compatible with the ECMAScript definition of
regular epressions.
Revision
1306 -
Directory Listing
Modified
Wed Jan 9 04:56:46 2008 UTC (2 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
Bug 105: make SEE_intern() work between interpreters
Strings resulting from foreign interpreters can now be internalized
sensibly in other interpreters.
Revision
1305 -
Directory Listing
Modified
Wed Jan 9 04:55:16 2008 UTC (2 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
Add SEE_string_cmp_ascii()
Developers should really use intern'd strings (pointer comparison).
It will be helpful for those who don't care too much about efficiency.
I added this function so I can test SEE_intern()!
Revision
1304 -
Directory Listing
Modified
Wed Jan 9 04:50:11 2008 UTC (2 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
Print a traceback by default when SEE_ABORT() is called.
Revision
1302 -
Directory Listing
Modified
Wed Jan 9 04:17:21 2008 UTC (2 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
Add --with-longjmperror option, and correct the way --with-native-dtoa works
The longjmperror() handler may be defined by an application to override SEE's
but it may not be clear if that is desirable, so I've made it an option.
Also, when I cleaned up the arg enabling code, I noticed that the native-dtoa
code may never be enabled. So, now --enable-native-dtoa=yes doesn't check
for the presence of functions in libc: it simply assumes they're there.
Revision
1299 -
Directory Listing
Modified
Wed Jan 9 00:27:16 2008 UTC (2 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
Bug 104: fix leaked finalized objects
Thanks to Hermecz Vajk
Revision
1298 -
Directory Listing
Modified
Wed Jan 9 00:20:43 2008 UTC (2 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
Bug 106: fix prematurely reclaimed objects.
Also, improve the bounds checking on extremely large allocations
Revision
1296 -
Directory Listing
Modified
Sun Dec 23 14:50:24 2007 UTC (2 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
Add "throw" statements to the traceback, make SEE_Print*() more flexible.
Extended traceback helps when a throw occurs in the toplevel of a script.
Allows you to track down the statement that caused the exception.
The ctxt traceback field is now also zeroed during SEE_TRY() to avoid
having garbage when printing a traceback.
Null FILEs can now be passed to the SEE_Print*() functions, and they
are converted to standard error output. This is handy to know when
inside gdb.
Revision
1295 -
Directory Listing
Modified
Sun Dec 23 05:00:51 2007 UTC (2 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
Bug 101: allow escaped LineTerminators in string literals for compat
Applies to JS1.1 compat mode (and above)
Revision
1293 -
Directory Listing
Modified
Tue Dec 11 12:23:58 2007 UTC (2 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
Bug 80: Correct compat code to use _SEE_isfinite() instead of _SEE_finite().
Spotted by Hermecz Vajk.
Revision
1292 -
Directory Listing
Modified
Tue Dec 11 12:18:45 2007 UTC (2 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
Bug 97: recognise CRLF line endings for line number reporting
Spotted by Hermecz Vajk
Revision
1291 -
Directory Listing
Modified
Tue Dec 11 12:05:49 2007 UTC (2 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
Bug 96: newlines were not properly recognised with --disable-full-unicode
Thanks, Hermecz Vajk
Revision
1290 -
Directory Listing
Modified
Tue Dec 11 11:00:18 2007 UTC (2 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
Bug 94: string concatenation can end up with nuls
The moral of the story is: Don't free; leave it to the GC!
Revision
1289 -
Directory Listing
Modified
Mon Nov 19 15:00:28 2007 UTC (2 years, 9 months ago) by
d
Original Path:
see/trunk/libsee
add comment for bug 95, regarding [[DefaultValue]] treatment for Date objects.
Revision
1288 -
Directory Listing
Modified
Mon Nov 12 13:54:22 2007 UTC (2 years, 9 months ago) by
d
Original Path:
see/trunk/libsee
bug 93: seg fault when String.prototype.charAt/charCodeAt() called with no args
Thanks, Alexander Botero-Lowry
Revision
1287 -
Directory Listing
Modified
Wed Nov 7 12:10:05 2007 UTC (2 years, 10 months ago) by
d
Original Path:
see/trunk/libsee
Bug 92: add SEE_string_append_unicode()
(Inspired by Hermecz Vajk)
Revision
1286 -
Directory Listing
Modified
Thu Nov 1 11:03:34 2007 UTC (2 years, 10 months ago) by
d
Original Path:
see/trunk/libsee
Add SEE_init() for future use in API 3.0.
For now, this is a no-op.
Revision
1284 -
Directory Listing
Modified
Thu Nov 1 08:36:42 2007 UTC (2 years, 10 months ago) by
d
Original Path:
see/trunk/libsee
Bug 90: documnet that apps must call GC_INIT() when using Boehm GC
Revision
1283 -
Directory Listing
Modified
Thu Nov 1 07:43:45 2007 UTC (2 years, 10 months ago) by
d
Original Path:
see/trunk/libsee
bug 91: multiple function declarations inside conditional
Revision
1282 -
Directory Listing
Modified
Thu Sep 13 22:26:35 2007 UTC (2 years, 11 months ago) by
d
Original Path:
see/trunk/libsee
bug 89: Minor licensing change to conform to Open Source Initiative's text
The effective change is to change the wording of these clauses, from:
> 3. Neither the name of Mr Leonard nor the names of the contributors
----------
> THIS SOFTWARE IS PROVIDED BY DAVID LEONARD AND CONTRIBUTORS ``AS IS''
-------------
> IN NO EVENT SHALL DAVID LEONARD OR CONTRIBUTORS BE LIABLE
-------------
to:
> 3. Neither the name of David Leonard nor the names of its contributors
-------------
> THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
---------------------
> IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
-------------------
This makes SEE's license conform with the OSI's "New BSD License" template
at http://www.opensource.org/licenses/bsd-license.php
Revision
1281 -
Directory Listing
Modified
Thu Sep 13 15:09:54 2007 UTC (2 years, 11 months ago) by
d
Original Path:
see/trunk/libsee
bug 87: add new functions SEE_error_throw_va() and SEE_error_throw_sys_va()
Revision
1276 -
Directory Listing
Modified
Wed Aug 15 10:20:06 2007 UTC (3 years ago) by
d
Original Path:
see/trunk/libsee
bug 82: make instanceof operator compatible with Javascript 1.4 and JScript
Revision
1273 -
Directory Listing
Modified
Wed Aug 15 06:39:01 2007 UTC (3 years ago) by
d
Original Path:
see/trunk/libsee
oops.. correction for revision 1272. (Committed the wrong file)
Revision
1272 -
Directory Listing
Modified
Wed Aug 15 06:33:23 2007 UTC (3 years ago) by
d
Original Path:
see/trunk/libsee
bug 84: EMA 262-3 errata compatibility
This commit adds a new compat flag (SEE_COMPAT_ERRATA) that provides
compatibiliy with the errata published at
http://www.mozilla.org/js/language/E262-3-errata.html
The only functional difference arises from this item:
15.5.4.10
Change the last sentence of the second bullet from:
The value returned is an array with the length property set
to n and properties 0 through nâ1 corresponding to the first
elements of the results of all matching invocations of
RegExp.prototype.exec.
to:
If n=0, then the value returned is null; otherwise, the
value returned is an array with the length property set to
n and properties 0 through nâ1 corresponding to the first
elements of the results of all matching invocations of
RegExp.prototype.exec.
Revision
1270 -
Directory Listing
Modified
Wed Aug 8 12:42:58 2007 UTC (3 years, 1 month ago) by
d
Original Path:
see/trunk/libsee
bug 81: SEE_parse_args_va() and SEE_call_args_va()
Also added tests for bug 81 and fixed a couple of minor implementation bugs
that were revealed.
Improved libsee test driver. It's now verbose by default.
Revision
1269 -
Directory Listing
Modified
Wed Aug 8 00:10:57 2007 UTC (3 years, 1 month ago) by
d
Original Path:
see/trunk/libsee
bug 83: make function pretty printer handle numeric literals
Revision
1268 -
Directory Listing
Modified
Thu Aug 2 14:05:47 2007 UTC (3 years, 1 month ago) by
d
Original Path:
see/trunk/libsee
Remove stuff that shouldn't have been committed in revision 1267
Revision
1266 -
Directory Listing
Modified
Thu Aug 2 13:56:59 2007 UTC (3 years, 1 month ago) by
d
Original Path:
see/trunk/libsee
Add the beginnings of a test suite to libsee. This is for testing the API.
Revision
1264 -
Directory Listing
Modified
Wed Jul 4 21:38:30 2007 UTC (3 years, 2 months ago) by
d
Original Path:
see/trunk/libsee
bug 79: treat '-->' at start of line like '//' in SGMLCOM compatibility mode
Revision
1261 -
Directory Listing
Modified
Thu Jun 28 15:08:54 2007 UTC (3 years, 2 months ago) by
d
Original Path:
see/trunk/libsee
Correct stack calculation for functions consisting of just an empty statement.
Revision
1259 -
Directory Listing
Modified
Wed Jun 27 10:45:34 2007 UTC (3 years, 2 months ago) by
d
Original Path:
see/trunk/libsee
bug 78: fix crash when pretty-printing a switch with adjacent case clauses
Revision
1258 -
Directory Listing
Modified
Fri Jun 22 16:14:31 2007 UTC (3 years, 2 months ago) by
d
Original Path:
see/trunk/libsee
Replace VAR and PUTVAR instructions with VREF.
Using VREF saves a LOOKUP call. Variable references are tracked in the parser.
The code interface was changed to allow communication of variable identifiers
to the backend. VREF simply builds a reference to a local variable.
Known problem: getting a spurious seg fault from see-shell.static.
Revision
1257 -
Directory Listing
Modified
Fri Jun 22 13:37:47 2007 UTC (3 years, 2 months ago) by
d
Original Path:
see/trunk/libsee
Improve the code1 disassembler.
Prints function, literal and location information.
Also, literal syntax changes from "@n" to "LITERAL,n" which is more consistent.
Revision
1256 -
Directory Listing
Modified
Fri Jun 22 12:45:54 2007 UTC (3 years, 2 months ago) by
d
Original Path:
see/trunk/libsee
Don't generate a statement-trace event at the implicit end of function bodies. It is just confusing to have the location jump back to the top of the file when the script exits.
Revision
1255 -
Directory Listing
Modified
Fri Jun 22 12:45:07 2007 UTC (3 years, 2 months ago) by
d
Original Path:
see/trunk/libsee
Oops: the lexer should intern filenames so that CG_LOC can be fast
Revision
1254 -
Directory Listing
Modified
Fri Jun 22 12:38:40 2007 UTC (3 years, 2 months ago) by
d
Original Path:
see/trunk/libsee
Code generator: implement LOC instruction and hook code1 into SEE_system.trace
Now the shell debugger work with codegen.
Revision
1251 -
Directory Listing
Modified
Wed Jun 20 00:17:25 2007 UTC (3 years, 2 months ago) by
d
Original Path:
see/trunk/libsee
Various fixes for the code generator.
- Intern strings when generating string literals and regex flags for codegen
- Use NULL to indicate an empty function
- Don't generate 'empty' functions when it has var statements
(because they may have side effects)
- Don't think that zero stack usage means an empty function.
- Calculate max stack correctly for arglist construction
- Use ASSERT instead of throw-Error for unexpected branches in case statements
(because they are internal errors instead of syntax errors)
- Various whitespace changes
- Ensure the value on the stack is boolean for if() condition
- Support empty initialiser for 'for(;;)'
- Remove superfluous pop from 'for(var...)' codegen
- Attempt to make labels apply to iteration nodes.. (not working!)
- Disable function pretty-printing when codegen is in place.
- Remove an unused variable.
Only known problems remaining is that labels are not being transfered to
iteration nodes properly.
Revision
1249 -
Directory Listing
Modified
Wed Jun 20 00:06:41 2007 UTC (3 years, 2 months ago) by
d
Original Path:
see/trunk/libsee
fix bug in ADD instruction where '1+,' would result in '1'
Revision
1248 -
Directory Listing
Modified
Tue Jun 19 23:57:24 2007 UTC (3 years, 2 months ago) by
d
Original Path:
see/trunk/libsee
Improve debugging for the code backend.
Renamed SEE_code1_debug to SEE_code_debug; other backends will provide this sym.
Add -dc debug flag to see-shell to increment it.
Added assertions to code1 regarding interned string literals. +more debug info.
Revision
1247 -
Directory Listing
Modified
Tue Jun 19 23:18:13 2007 UTC (3 years, 2 months ago) by
d
Original Path:
see/trunk/libsee
Make dprints() truncate long strings.
Strings longer than 1024 characters are printed as "foo\(...len=1234)"
This is useful for when corrupt strings are printed.
Revision
1245 -
Directory Listing
Modified
Tue Jun 12 13:31:33 2007 UTC (3 years, 2 months ago) by
d
Original Path:
see/trunk/libsee
Make va_copy() work under Win32. This may not even be the right way to do it.
Found by TP/s.d.hammet.
Revision
1244 -
Directory Listing
Modified
Tue Jun 12 13:28:25 2007 UTC (3 years, 2 months ago) by
d
Original Path:
see/trunk/libsee
Don't crash when calling dprints(NULL). Instead, just print "(null)".
Revision
1243 -
Directory Listing
Modified
Tue Jun 12 13:22:58 2007 UTC (3 years, 2 months ago) by
d
Original Path:
see/trunk/libsee
bug 75: check that an object has an enumerator before enumerating it
Revision
1240 -
Directory Listing
Modified
Tue Jun 12 13:14:04 2007 UTC (3 years, 2 months ago) by
d
Original Path:
see/trunk/libsee
bug 77: move wrappers around isnan/finite/copysign into a compilation unit.
Also, deprecate SEE_NUMBER_ISINF.
This is to better support platforms that don't have these math functions
in an obvious place, and to avoid a further header file expansion.
Revision
1236 -
Directory Listing
Modified
Sun Jun 3 12:25:15 2007 UTC (3 years, 3 months ago) by
d
Original Path:
see/trunk/libsee
add missing include for SEE_ASSERT
also fix intern bug in experimental codegen INST_LOOKUP instruction
Revision
1233 -
Directory Listing
Modified
Fri Jun 1 13:19:36 2007 UTC (3 years, 3 months ago) by
d
Original Path:
see/trunk/libsee
Implement EQ and SEQ. Remove some in situ assignments.
Revision
1231 -
Directory Listing
Modified
Thu May 31 15:29:36 2007 UTC (3 years, 3 months ago) by
d
Original Path:
see/trunk/libsee
Implement try-catch and try-finally opcodes for code1.
Revision
1230 -
Directory Listing
Modified
Thu May 31 14:09:32 2007 UTC (3 years, 3 months ago) by
d
Original Path:
see/trunk/libsee
More bytecode work.
- fixes a bug in post inc/decrement where the stack use was underestimated.
- adds WITH and ENUM block support to code1
Revision
1228 -
Directory Listing
Modified
Wed May 30 16:40:51 2007 UTC (3 years, 3 months ago) by
d
Original Path:
see/trunk/libsee
More code generator work.
- Provided separate opcodes for <,>,<=,>= because I found the the semantics
too hard to untangle when comparing NaNs!
- Added a FUNC instruction to bind a function object to a scope.
- Distinguished between Program bodies and Function bodies for evaluation.
This makes returning undefined from functions easier to do during
eval/codegen. Added a test case.
- added a disassembler to code1
- renamed the code interface method 'eval' to 'exec'.
try/with/enum still not working in codegen.
Revision
1227 -
Directory Listing
Modified
Wed May 30 16:33:07 2007 UTC (3 years, 3 months ago) by
d
Original Path:
see/trunk/libsee
Fix ExpressionStatement evaluation - it did not call GetValue() when it should.
Refer to standard, section 12.4.
This explains why when running see-shell, when the last command was an
identifier, I'd get a SEE_REFERENCE.
Revision
1222 -
Directory Listing
Modified
Sat Apr 28 11:00:52 2007 UTC (3 years, 4 months ago) by
d
Original Path:
see/trunk/libsee
bug 70: SEE_context_eval() should never return a reference value
(spotted by Dan Kennedy)
Revision
1220 -
Directory Listing
Modified
Wed Apr 25 13:14:19 2007 UTC (3 years, 4 months ago) by
d
Original Path:
see/trunk/libsee
bug 69: fix segfaults when functions assume 'this' context, but thisobj is NULL
Revision
1219 -
Directory Listing
Modified
Wed Apr 25 12:35:13 2007 UTC (3 years, 4 months ago) by
d
Original Path:
see/trunk/libsee
Correctly detect memcmp and add libsee/replace.h to dist.
Revision
1218 -
Directory Listing
Modified
Wed Apr 25 10:23:38 2007 UTC (3 years, 4 months ago) by
d
Original Path:
see/trunk/libsee
Correct argument order of memmove. (I can't believe I got that wrong). Add const to memcmp() args
Revision
1216 -
Directory Listing
Modified
Wed Apr 25 07:36:11 2007 UTC (3 years, 4 months ago) by
d
Original Path:
see/trunk/libsee
Add memmove; and make memcmp and memmove replacements private to libsee.
The reason I am renaming memmove and memcmp to _SEE_memcmp and
_SEE_memmove is for the case the including application defines its own memmove
or memcmp. We don't want to conflict.
Revision
1215 -
Directory Listing
Modified
Wed Apr 25 07:29:41 2007 UTC (3 years, 4 months ago) by
d
Original Path:
see/trunk/libsee
Clean up headers:
- Use consistent names for #ifndef-protection
- Place use of string.h and stdarg.h in properly protected places
- Forward declare some structures to keep some headers independent
- Remove some unnecessary includes
Revision
1212 -
Directory Listing
Modified
Sun Apr 22 13:59:35 2007 UTC (3 years, 4 months ago) by
d
Original Path:
see/trunk/libsee
bug 47: Add Object.prototype.eval() for JS1.1 and JS1.2 compatibility
Revision
1210 -
Directory Listing
Modified
Sat Apr 21 04:00:53 2007 UTC (3 years, 4 months ago) by
d
Original Path:
see/trunk/libsee
Fix some -Wall compiler warnings and protect #include <string.h> properly
Revision
1207 -
Directory Listing
Modified
Sat Apr 21 01:46:59 2007 UTC (3 years, 4 months ago) by
d
Original Path:
see/trunk/libsee
Bug 68: fixes crash in growto; the wrong pointer was being freed.
Revision
1206 -
Directory Listing
Modified
Thu Apr 19 10:29:42 2007 UTC (3 years, 4 months ago) by
d
Original Path:
see/trunk/libsee
Add some type checks to SEE_ToBoolean, ToNumber, ToString, ToObject().
Revision
1202 -
Directory Listing
Modified
Tue Apr 17 13:39:12 2007 UTC (3 years, 4 months ago) by
d
Original Path:
see/trunk/libsee
fix dev bug: growby doesn't set the length (growto does)
Revision
1198 -
Directory Listing
Modified
Tue Apr 17 13:17:39 2007 UTC (3 years, 4 months ago) by
d
Original Path:
see/trunk/libsee
bug 16: use floor() instead of rint()
Also, replace a bunch of math.h function calls with their NUMBER_xx
equivalents.
Revision
1197 -
Directory Listing
Modified
Tue Apr 17 12:48:51 2007 UTC (3 years, 4 months ago) by
d
Original Path:
see/trunk/libsee
bug 16: Add support for string resource stores.
If STATIC_STRINGS is defined, then STR(x) references will be calculated at
link time. Otherwise, STR(x) is calculated at runtime as an index into an
array at SEE_stringtab. Someone porting this library to a device where
string storage is premium can make use of this. They'll need to modify
string.pl to generate a special resource file.
Revision
1196 -
Directory Listing
Modified
Tue Apr 17 10:07:53 2007 UTC (3 years, 4 months ago) by
d
Original Path:
see/trunk/libsee
bug 66: fix line number tracking when using '//' or '<!--'
Revision
1193 -
Directory Listing
Modified
Tue Apr 10 12:35:00 2007 UTC (3 years, 5 months ago) by
d
Original Path:
see/trunk/libsee
Add SEE_grow_to() for limited, growable memory regions.
Make internal simple strings use SEE_grow_to().
Revision
1192 -
Directory Listing
Modified
Mon Apr 9 10:37:42 2007 UTC (3 years, 5 months ago) by
d
Original Path:
see/trunk/libsee
eval() now uses the input name <eval> instead of <string>.
This makes error messages read better.
Revision
1184 -
Directory Listing
Modified
Tue Feb 6 22:22:44 2007 UTC (3 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
Support cross compiling; new option --enable-native-dtoa
Revision
1183 -
Directory Listing
Modified
Tue Feb 6 22:21:42 2007 UTC (3 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
Use #error instead of bad C syntax to force an error.
Revision
1181 -
Directory Listing
Modified
Fri Jan 19 10:24:05 2007 UTC (3 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
bug 62: fix calls to SEE_OBJECT_DELETE that don't intern the property.
Also, correct documentation to indicate that the property argument is
expected to be internalised.
Revision
1178 -
Directory Listing
Modified
Thu Jan 18 13:31:34 2007 UTC (3 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
bug 61: assignment operator -= was raising spurious typerror exceptions
due to uninitialised variable not picked up because it was passed by addr.
Revision
1177 -
Directory Listing
Modified
Tue Dec 12 09:43:43 2006 UTC (3 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
fix bug 60: problem decoding UTF-8 on systems where char is signed
Revision
1153 -
Directory Listing
Modified
Tue Sep 5 10:31:59 2006 UTC (4 years ago) by
d
Original Path:
see/trunk/libsee
bug 49: change sign of value returned by _SEE_platform_dst; corrects daylight savings time calculation
Revision
1146 -
Directory Listing
Modified
Sun Aug 27 07:25:55 2006 UTC (4 years ago) by
d
Original Path:
see/trunk/libsee
bug 52: attach tracebacks to throw contexts
Tracebacks are now reset after handled exceptions.
Revision
1140 -
Directory Listing
Modified
Sat Aug 12 06:50:06 2006 UTC (4 years ago) by
d
Original Path:
see/trunk/libsee
Beginnings of code generator support. Activated with --enable-parser-codegen during configure
Revision
1138 -
Directory Listing
Modified
Sat Aug 12 06:45:59 2006 UTC (4 years ago) by
d
Original Path:
see/trunk/libsee
Pass NULL for the thisobj parameter when calling [[Construct]].
The signature of [[Construct]] really should have removed thisobj before
API 2.0 was released, but.. oh well :(
Revision
1118 -
Directory Listing
Modified
Wed Aug 2 15:15:08 2006 UTC (4 years, 1 month ago) by
d
Original Path:
see/trunk/libsee
throw an error if SEE_parse_args converts a string with nuls to ASCII or UTF-8
Revision
1102 -
Directory Listing
Modified
Mon Jul 31 13:06:06 2006 UTC (4 years, 1 month ago) by
d
Original Path:
see/trunk/libsee
relax requirement for malloc_finalize so that distcheck works
Revision
1099 -
Directory Listing
Modified
Fri Jul 28 15:24:51 2006 UTC (4 years, 1 month ago) by
d
Original Path:
see/trunk/libsee
Mark unconverted EXT1 features with "EXT:nnn" where nn is a number.
I plan to work on converting these to proper JS_COMPAT tests, as
soon as I figure out which versions of JS they apply to!
Revision
1098 -
Directory Listing
Modified
Fri Jul 28 15:20:53 2006 UTC (4 years, 1 month ago) by
d
Original Path:
see/trunk/libsee
New function SEE_parse_args() for helping convert arguments into C types.
Revision
1093 -
Directory Listing
Modified
Wed Jun 21 14:47:43 2006 UTC (4 years, 2 months ago) by
d
Original Path:
see/trunk/libsee
Make SEE_nstringtab and the STR() string content constant (part of bug 16)
Revision
1092 -
Directory Listing
Modified
Wed Jun 21 14:46:28 2006 UTC (4 years, 2 months ago) by
d
Original Path:
see/trunk/libsee
improve compatibility with netscape when printing object displays
Revision
1081 -
Directory Listing
Modified
Sun May 7 05:58:32 2006 UTC (4 years, 4 months ago) by
d
Original Path:
see/trunk/libsee
improve comments; move debug messages out of critical areas
Revision
1080 -
Directory Listing
Modified
Sun May 7 05:57:19 2006 UTC (4 years, 4 months ago) by
d
Original Path:
see/trunk/libsee
Make SEE_string_concat() more efficient. Improve comments in string.c
Previously, loops such as
for (var s = "", i = 1; i < 1000; i++) s = s + "x";
were very very inefficient because string catenation involved complete
duplication of strings.
Now, SEE_string_concat(interp, a, b) uses data aliasing when the first
string is 'simple'. Exponential storage prediction previously only
available through the C interface is now implicitly available through
ECMAScript's "<String> + <String>" operator. One side effect of this
change to concatenation is that the first string in the C API is marked
ungrowable. Extra assertions about growability have been added.
Revision
1079 -
Directory Listing
Modified
Sun May 7 04:45:34 2006 UTC (4 years, 4 months ago) by
d
Original Path:
see/trunk/libsee
improve the simple GC so that it doesn't find malloc's own pointers
Revision
1077 -
Directory Listing
Modified
Sat Apr 29 09:54:30 2006 UTC (4 years, 4 months ago) by
d
Original Path:
see/trunk/libsee
Improve comments, rename & prototype the target_matches function
Revision
1068 -
Directory Listing
Modified
Thu Apr 20 12:44:07 2006 UTC (4 years, 4 months ago) by
d
Original Path:
see/trunk/libsee
add newline to libsee's non-release malloc warning; remove parenthetical recommendation
Revision
1065 -
Directory Listing
Modified
Wed Apr 19 14:29:27 2006 UTC (4 years, 4 months ago) by
d
Original Path:
see/trunk/libsee
Add SEE_gcollect() that tries to release all unreachable objects.
Change the shell's gc_gcollect() to be named gc() to match Mozilla.
Revision
1062 -
Directory Listing
Modified
Tue Apr 18 13:47:32 2006 UTC (4 years, 4 months ago) by
d
Original Path:
see/trunk/libsee
remove use of UNDEFUNDEF from the parser (thanks, David Nicol)
Revision
1054 -
Directory Listing
Modified
Sat Mar 25 01:33:09 2006 UTC (4 years, 5 months ago) by
d
Original Path:
see/trunk/libsee
tidy up; allow empty encoding labels to be the same as NULL.
Revision
1053 -
Directory Listing
Modified
Sat Feb 25 14:09:43 2006 UTC (4 years, 6 months ago) by
d
Original Path:
see/trunk/libsee
extra string defs needed for recent String.prototype compat additions
Revision
1051 -
Directory Listing
Modified
Sat Feb 25 14:08:27 2006 UTC (4 years, 6 months ago) by
d
Original Path:
see/trunk/libsee
Add some extra JS compat functions to String.prototype
Revision
1050 -
Directory Listing
Modified
Sat Feb 25 13:18:13 2006 UTC (4 years, 6 months ago) by
d
Original Path:
see/trunk/libsee
Compat (JS11): Regular expression instances now have a [[Call]] property,
which behaves essentially the same as calling the .exec method.
Revision
1049 -
Directory Listing
Modified
Wed Feb 22 13:54:23 2006 UTC (4 years, 6 months ago) by
d
Original Path:
see/trunk/libsee
compat: for JS 1.2, the special case str.split(' ') will strip leading whitespace from str and then split on /\s+/.
Revision
1048 -
Directory Listing
Modified
Wed Feb 22 13:21:18 2006 UTC (4 years, 6 months ago) by
d
Original Path:
see/trunk/libsee
compat: Array.prototype.toString() and Object.prototype.toString()
will print re-parsable literals in JS12 mode. But only for JS12. It
became ECMA-compliant again in JS13.
Revision
1021 -
Directory Listing
Modified
Wed Feb 8 15:40:35 2006 UTC (4 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
compat: ToBoolean() on JS1.2 understands Boolean instances
Revision
1018 -
Directory Listing
Modified
Wed Feb 8 15:35:09 2006 UTC (4 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
more corrections to the way that arguments and parameters are initialized to bring back in line with ECMA
Revision
1013 -
Directory Listing
Modified
Tue Feb 7 15:35:37 2006 UTC (4 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
bug 36: arguments and activation objects now adhere to ecma
Revision
1010 -
Directory Listing
Modified
Tue Feb 7 15:13:06 2006 UTC (4 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
clarify intern requirement on [[HasProperty]] etc; added assertion to check for if this is ever violated
Revision
1004 -
Directory Listing
Modified
Sat Feb 4 10:06:07 2006 UTC (4 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
bug 40: RegExp.prototype.test() was returning reversed answer
Revision
998 -
Directory Listing
Modified
Fri Feb 3 10:18:12 2006 UTC (4 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
Add new libsee function SEE_string_append_ascii()
Revision
997 -
Directory Listing
Modified
Tue Jan 31 21:10:59 2006 UTC (4 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
bug 39: dtoa config support for ia64, and alpha (from Simun Mikecin)
Revision
993 -
Directory Listing
Modified
Tue Jan 31 15:07:25 2006 UTC (4 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
API change: SEE_ALLOCA() takes arguments in different order.
New function SEE_STRING_ALLOCA() to provide hints to GC.
No need to provide an alloca.c any more.
Revision
992 -
Directory Listing
Modified
Tue Jan 31 15:04:16 2006 UTC (4 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
Improved API to use ASCII C strings in more places.
SEE_intern_ascii()
SEE_intern_global()
SEE_OBJECT_GETA()
SEE_OBJECT_PUTA()
SEE_OBJECT_CANPUTA()
SEE_OBJECT_HASPROPERTYA()
SEE_OBJECT_DELETEA()
SEE_CFUNCTION_PUTA() - creates a cfunction and adds to object
Revision
989 -
Directory Listing
Modified
Tue Jan 31 01:52:50 2006 UTC (4 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
correct bad macro definition of EVAL_DEBUG_LEAVE hit with -DNDEBUG
Revision
972 -
Directory Listing
Modified
Thu Jan 26 13:34:07 2006 UTC (4 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
bug 35: labels on blocks. (Large changes made to the labelling code to get this to adhere to the standard)
Revision
971 -
Directory Listing
Modified
Thu Jan 26 12:56:33 2006 UTC (4 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
Compat: allow /[/]/ to be parsed as a regex literal in EXT1
Revision
969 -
Directory Listing
Modified
Mon Jan 23 13:06:20 2006 UTC (4 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
mozilla compat: allow (/x*/ instanceof RegExp) to work with EXT1
Revision
967 -
Directory Listing
Modified
Mon Jan 23 12:39:07 2006 UTC (4 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
bug 34: some boolean true values did not compare equal
Revision
966 -
Directory Listing
Modified
Sun Jan 22 12:39:15 2006 UTC (4 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
improve compatibility with mozilla date parsing/representation (EXT1 compat mode)
Revision
965 -
Directory Listing
Modified
Sun Jan 22 12:23:43 2006 UTC (4 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
another strange mozilla compatibility: distinguish undefined argument to String.split
Revision
959 -
Directory Listing
Modified
Sun Jan 22 05:43:10 2006 UTC (4 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
make strings returned by SEE_string_sprintf() growable again
Revision
958 -
Directory Listing
Modified
Sun Jan 22 04:26:48 2006 UTC (4 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
bug 33: String.prototype.indexOf() returned bad result when substring was longer than string
Revision
957 -
Directory Listing
Modified
Sat Jan 21 23:51:51 2006 UTC (4 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
bug32: use activation class for activation objects so that this is propagated properly
Revision
951 -
Directory Listing
Modified
Sat Jan 21 14:11:05 2006 UTC (4 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
include interpeter.h from system.h to get enum SEE_trace event
Revision
943 -
Directory Listing
Modified
Sat Jan 21 13:41:46 2006 UTC (4 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
Factor out platform-specific time functions and abort into platform files.
Rewrote the daylight savings time code.
Revision
941 -
Directory Listing
Modified
Sat Jan 21 13:13:42 2006 UTC (4 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
a printf implementation for systems that don't have vsnprintf
Revision
939 -
Directory Listing
Modified
Sat Jan 21 08:26:30 2006 UTC (4 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
Return global's [[Class]] to 'Global' for mozilla compatibility
Revision
938 -
Directory Listing
Modified
Sat Jan 21 07:22:22 2006 UTC (4 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
Major API change: trace callback function now takes a SEE_trace_event type.
The parser now calls trace() a lot less frequently: only
during significant flow-of-control events.
The SEE_system structure now has a 'periodic' function pointer which is
called at the same time as trace(), and also during the regular
expression processing loop (bug 25).
The debugger has been improved (added a 'list' command) and uses the
trace event information rather than checking for location changes.
Revision
936 -
Directory Listing
Modified
Sat Jan 21 03:51:30 2006 UTC (4 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
Major API change: Class field of SEE_objectclass is now a const char *.
This removes the need for STR() macros to be constant at compile time.
Revision
933 -
Directory Listing
Modified
Thu Jan 19 13:18:43 2006 UTC (4 years, 7 months ago) by
d
Original Path:
see/trunk/libsee
a simple garabage collector implementation that may help other people
Revision
919 -
Directory Listing
Modified
Sat Dec 24 10:30:21 2005 UTC (4 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
style: keep lines under 79 columns where possible
Revision
918 -
Directory Listing
Modified
Fri Dec 23 16:35:57 2005 UTC (4 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
bug 26: use new memory api for alloca replacement
Revision
900 -
Directory Listing
Modified
Thu Dec 22 13:52:57 2005 UTC (4 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
correct [[Prototype]] for function instances. It is now duplicated across the instance aliases and their common native
Revision
898 -
Directory Listing
Modified
Wed Dec 21 14:51:00 2005 UTC (4 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
Moved a lot of global configuration vars into one structure, SEE_system.
SEE_free is trusted a bit more.
New function SEE_intern_and_free() used by lexer.
Memory allocator defaults to system malloc() instead of NULL (ie error).
Random number seed is factored out to a hookable function too.
Revision
896 -
Directory Listing
Modified
Wed Dec 21 10:46:11 2005 UTC (4 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
bug 24: lastIndexOf() boundary condition. carefully rewritten using spec
Revision
894 -
Directory Listing
Modified
Wed Dec 21 07:26:06 2005 UTC (4 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
redo the debug functions so there is less redundancy
Revision
887 -
Directory Listing
Modified
Tue Dec 20 11:56:39 2005 UTC (4 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
bug 4: unicode tables for single-char toUpperCase/toLowerCase using binary search. (No locale support, though)
Revision
883 -
Directory Listing
Modified
Tue Dec 20 05:44:43 2005 UTC (4 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
Remove lots of floating point cast warnings.
Factor the float/double variants from math.h to nmath.h.
Remove unary pluses where possible.
Revision
882 -
Directory Listing
Modified
Tue Dec 20 04:20:08 2005 UTC (4 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
remove unused variable warning. (logically it is always used)
Revision
881 -
Directory Listing
Modified
Tue Dec 20 04:06:46 2005 UTC (4 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
remove pedantic warnings about unary plus: +1 -> 1
Revision
878 -
Directory Listing
Modified
Tue Dec 20 03:55:44 2005 UTC (4 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
[optimisation] when converting an integer to a string, allocate just the right amount of storage
Revision
877 -
Directory Listing
Modified
Tue Dec 20 03:54:07 2005 UTC (4 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
Add memory debugging, and a -dm switch to the shell
Revision
876 -
Directory Listing
Modified
Tue Dec 20 03:53:17 2005 UTC (4 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
print out attributes when native debug is enabled
Revision
874 -
Directory Listing
Modified
Thu Dec 15 12:55:04 2005 UTC (4 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
bug 23: year problem with new Date() and Date.UTC()
Revision
873 -
Directory Listing
Modified
Wed Dec 14 21:29:57 2005 UTC (4 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
Use stringdef strings for common array indicies (0..9)
Revision
862 -
Directory Listing
Modified
Tue Dec 13 12:51:48 2005 UTC (4 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
fix warnings from gcc -pedantic. Also, enable SEE_free for bug 21
Revision
858 -
Directory Listing
Modified
Tue Dec 13 10:57:38 2005 UTC (4 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
regex constructor now throws a SyntaxError when the flags are unknown (15.10.4.1)
Revision
855 -
Directory Listing
Modified
Mon Dec 12 13:03:21 2005 UTC (4 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
bug 11: grow strings carefully, and try to raise an exception before the allocator does
Revision
854 -
Directory Listing
Modified
Mon Dec 12 12:33:20 2005 UTC (4 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
bug 10: new derived type SEE_size_t for use by allocators
Revision
852 -
Directory Listing
Modified
Mon Dec 12 11:50:51 2005 UTC (4 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
when recursion limit is hit and being handled, temporarily disable
Revision
850 -
Directory Listing
Modified
Sun Dec 11 15:16:38 2005 UTC (4 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
include the use of reserved words as identifiers in EXT1 compatibility mode
Revision
845 -
Directory Listing
Modified
Sun Dec 11 13:21:01 2005 UTC (4 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
Correct Date.setMilliseconds() which assumed UTC.
Correct incorrect timezone calculation.
Parsed dates now assume local timezone unless "GMT" at end of text.
Parsed Netscape dates are always assumed local timezone.
Date.toUTCString() appends "GMT" to its result.
Revision
844 -
Directory Listing
Modified
Sun Dec 11 13:16:59 2005 UTC (4 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
Fix function prototype warings; more --disable-parser-print ifdefs
Revision
837 -
Directory Listing
Modified
Sun Dec 11 07:11:24 2005 UTC (4 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
bug 7: SEE_ALLOCA now takes an interpreter argument
Revision
835 -
Directory Listing
Modified
Sun Dec 11 06:51:15 2005 UTC (4 years, 8 months ago) by
d
Original Path:
see/trunk/libsee
bug 2: allocate strings so they are not scanned by the GC system
Revision
832 -
Directory Listing
Modified
Sat Dec 10 14:41:03 2005 UTC (4 years, 9 months ago) by
d
Original Path:
see/trunk/libsee
Add --disable-parser-print and --disable-parser-visit options
Revision
827 -
Directory Listing
Modified
Sat Dec 10 13:41:10 2005 UTC (4 years, 9 months ago) by
d
Original Path:
see/trunk/libsee
New option: --disable-full-unicode which omits unicode tables
Revision
826 -
Directory Listing
Modified
Sat Dec 10 05:19:44 2005 UTC (4 years, 9 months ago) by
d
Original Path:
see/trunk/libsee
Add SEE_version(), SEE_VERSION_API_MAJOR and _MINOR
Revision
825 -
Directory Listing
Modified
Fri Dec 9 12:58:25 2005 UTC (4 years, 9 months ago) by
d
Original Path:
see/trunk/libsee
compiler warning: cast int to SEE_number for pow()
Revision
824 -
Directory Listing
Modified
Fri Dec 9 12:47:21 2005 UTC (4 years, 9 months ago) by
d
Original Path:
see/trunk/libsee
Move all debug printing into a special dprint module, rather than assume stderr exists
Revision
820 -
Directory Listing
Modified
Mon Dec 5 13:57:36 2005 UTC (4 years, 9 months ago) by
d
Original Path:
see/trunk/libsee
A starting attempt to remove warnings that come up with -traditional.
Some type information has been changed with obj_Date which needs
careful study.
Revision
815 -
Directory Listing
Modified
Mon Dec 5 10:57:24 2005 UTC (4 years, 9 months ago) by
d
Original Path:
see/trunk/libsee
remove unnecessary semicolon (jeff%activescript.com)
Revision
813 -
Directory Listing
Modified
Sat Dec 3 15:14:20 2005 UTC (4 years, 9 months ago) by
d
Original Path:
see/trunk/libsee
correct a few missing superclass dependencies. record the line number of the miscast class
Revision
812 -
Directory Listing
Modified
Sat Dec 3 14:59:21 2005 UTC (4 years, 9 months ago) by
d
Original Path:
see/trunk/libsee
Add a CAST_NODE() macro, and a 'superclass' field to the nodeclass structures.
This gets rid of the hundred or so 'initialization from incompatible pointer
type' warnings, and allows for checked typecasting of AST nodes.
Revision
802 -
Directory Listing
Modified
Fri Nov 25 11:12:13 2005 UTC (4 years, 9 months ago) by
d
Original Path:
see/trunk/libsee
rename 'struct context' -> 'struct SEE_context' in preparation for exposing context information to external debuggers
Revision
796 -
Directory Listing
Modified
Sun Oct 30 06:43:28 2005 UTC (4 years, 10 months ago) by
d
Original Path:
see/trunk/libsee
remove dead variables; correct bug where an illegal unicode char may access an uninitialised buffer
Revision
791 -
Directory Listing
Modified
Thu Jun 9 12:07:38 2005 UTC (5 years, 3 months ago) by
d
Original Path:
trunk/see/libsee
provide __FUNCTION__ for platforms without it. [gerry sweeney]
Revision
781 -
Directory Listing
Modified
Wed Apr 27 13:14:05 2005 UTC (5 years, 4 months ago) by
d
Original Path:
trunk/see/libsee
fix some type warnings and prototypes found by visual C++
Revision
773 -
Directory Listing
Modified
Tue Apr 26 11:42:18 2005 UTC (5 years, 4 months ago) by
d
Original Path:
trunk/see/libsee
SEE_intern_init -> _SEE_intern_init, because it's private
Revision
752 -
Directory Listing
Modified
Thu Dec 2 12:37:59 2004 UTC (5 years, 9 months ago) by
d
Original Path:
trunk/see/libsee
fix some uninitialised memory. fault detected by andrew%terrainformatica.com
Revision
751 -
Directory Listing
Modified
Thu Dec 2 11:24:25 2004 UTC (5 years, 9 months ago) by
d
Original Path:
trunk/see/libsee
remove clause 3 from the licence, which means advertising material no longer needs to include my name
Revision
740 -
Directory Listing
Modified
Mon Nov 1 13:08:08 2004 UTC (5 years, 10 months ago) by
d
Original Path:
trunk/see/libsee
fix bug where configure vars are dependent on others
Revision
737 -
Directory Listing
Modified
Sun Oct 31 11:56:52 2004 UTC (5 years, 10 months ago) by
d
Original Path:
trunk/see/libsee
fix INFINITY being defined elsewhere. needs better fix
Revision
733 -
Directory Listing
Modified
Sun Oct 31 11:25:24 2004 UTC (5 years, 10 months ago) by
d
Original Path:
trunk/see/libsee
Support for rand() when rand_r() is not available. This is not
thread safe, and is pretty awful. It allows building under Windows though.
Revision
725 -
Directory Listing
Modified
Sun Oct 24 00:55:49 2004 UTC (5 years, 10 months ago) by
d
Original Path:
trunk/see/libsee
add ordered enumeration to the EXT1 compat mode
Revision
720 -
Directory Listing
Modified
Wed Oct 20 12:35:21 2004 UTC (5 years, 10 months ago) by
d
Original Path:
trunk/see/libsee
Treat \x** and \u**** as simply x** and u**** when in EXT1 mode.
Also, backtrack and treat octal numbers as decimal when we hit a non-octal.
Revision
718 -
Directory Listing
Modified
Wed Oct 20 12:33:00 2004 UTC (5 years, 10 months ago) by
d
Original Path:
trunk/see/libsee
fix non-compliance in the following:
exp(+Inf)
exp(-Inf)
pow(-0, -(2n))
atan2(+0, -0)
atan2(-0, -0)
Revision
717 -
Directory Listing
Modified
Wed Oct 20 12:30:22 2004 UTC (5 years, 10 months ago) by
d
Original Path:
trunk/see/libsee
treat the NULL object as the null value when converting to string
Revision
715 -
Directory Listing
Modified
Sun Oct 17 13:50:51 2004 UTC (5 years, 10 months ago) by
d
Original Path:
trunk/see/libsee
add const to the debug functions
add SEE_COMPAT_ARRAYJOIN1
SEE_throw_abort() now tries to show the value being thrown
Fixed octal parsing bug in parseInt
Fixed undefined arg bugs with escape, unescape, isNaN, isFinite
Fixed bug scanning /*/*/ as comment
Attempt at fixing the function 'f.prototype.constructor === f' bug
Allow interning of duplicate strings
Nicer error messages
Allow null to be assigned to __proto__
Dates now have a defaultvalue of strings as per 11.6.1
Revision
709 -
Directory Listing
Modified
Sun Oct 17 13:03:09 2004 UTC (5 years, 10 months ago) by
d
Original Path:
trunk/see/libsee
fix bug where parseInt treated leading 0 to indicate base 7 instead of 8
Revision
699 -
Directory Listing
Modified
Sat Oct 16 11:45:07 2004 UTC (5 years, 10 months ago) by
d
Original Path:
trunk/see/libsee
Simplification of autoconf/automake
Made unicode.c a maintainer problem. (See README.cvs)
Added a libsee-config script
Renamed test to test-grammar
Put all IEEE-754 constants into static storage instead of macros
Removed optional libraries hardcoded into libsee build
Revision
698 -
Directory Listing
Modified
Sat Oct 16 09:27:05 2004 UTC (5 years, 10 months ago) by
d
Original Path:
trunk/see/libsee
Bump version to 1.2
Corrected embarrasing stringdefs build problem
Adhere more closely to GNU software standards (but still BSD licence)
Look for boehm gc in libdir, instead of prefix/lib
Removed enumerator 'reset' method (never used)
Removed see/config.h from install
Revision
684 -
Directory Listing
Modified
Tue May 18 06:25:55 2004 UTC (6 years, 3 months ago) by
d
Original Path:
trunk/see/libsee
put parentheses around expressions when printing; also remove a minor warning
Revision
682 -
Directory Listing
Modified
Mon Apr 26 07:35:55 2004 UTC (6 years, 4 months ago) by
d
Original Path:
trunk/see/libsee
change visitor_fn to visitor_fn_t; refactor IfStatement to make it simpler
Revision
680 -
Directory Listing
Modified
Mon Apr 26 06:07:48 2004 UTC (6 years, 4 months ago) by
d
Original Path:
trunk/see/libsee
- use the hex strings in value.c when printing labels.
- make a start on implementing a whole-tree visitor pattern
- also started implementing idempotent-constant folding
Revision
664 -
Directory Listing
Modified
Tue Mar 30 08:11:51 2004 UTC (6 years, 5 months ago) by
d
Original Path:
trunk/see/libsee
make EXT1 extension *disable* the empty-function bypass
Revision
662 -
Directory Listing
Modified
Mon Mar 29 21:11:43 2004 UTC (6 years, 5 months ago) by
d
Original Path:
trunk/see/libsee
consistent display of strings; avoid allocating extra storage when printing a string
Revision
653 -
Directory Listing
Modified
Mon Mar 29 20:50:47 2004 UTC (6 years, 5 months ago) by
d
Original Path:
trunk/see/libsee
determine if a function is empty (for a speed hack)
Revision
652 -
Directory Listing
Modified
Mon Mar 29 20:50:20 2004 UTC (6 years, 5 months ago) by
d
Original Path:
trunk/see/libsee
context debugging; use SEE_SET_REFERENCE() macro
Revision
650 -
Directory Listing
Modified
Mon Mar 29 20:49:11 2004 UTC (6 years, 5 months ago) by
d
Original Path:
trunk/see/libsee
use new numeric constants determined by autoconf instead of hex literals
Revision
648 -
Directory Listing
Modified
Mon Mar 29 20:48:11 2004 UTC (6 years, 5 months ago) by
d
Original Path:
trunk/see/libsee
speed hack to optimise calling of empty functions
Revision
641 -
Directory Listing
Modified
Mon Mar 29 20:42:06 2004 UTC (6 years, 5 months ago) by
d
Original Path:
trunk/see/libsee
add a way of testing to see if a function body is empty
Revision
640 -
Directory Listing
Modified
Mon Mar 29 20:41:54 2004 UTC (6 years, 5 months ago) by
d
Original Path:
trunk/see/libsee
rename SEE_hexstr to SEE_hexstr_lowercase; add a way of testing to see if a function body is empty
Revision
634 -
Directory Listing
Modified
Mon Mar 29 20:21:27 2004 UTC (6 years, 5 months ago) by
d
Original Path:
trunk/see/libsee
make SEE_string_fputs() return the number of characters printed or EOF on error
Revision
630 -
Directory Listing
Modified
Mon Mar 29 20:05:36 2004 UTC (6 years, 5 months ago) by
d
Original Path:
trunk/see/libsee
introduce a third level to the intern cache; for global constant strings
Revision
629 -
Directory Listing
Modified
Mon Mar 29 20:03:34 2004 UTC (6 years, 5 months ago) by
d
Original Path:
trunk/see/libsee
detect unsafe UTF-8 encoded chars by default, overridable with UTF_UNSAFE compat flag
Revision
598 -
Directory Listing
Modified
Mon Mar 8 01:05:57 2004 UTC (6 years, 6 months ago) by
d
Original Path:
trunk/see/libsee
use SEE_SET_REFERENCE macro; add <string.h> to includes
Revision
597 -
Directory Listing
Modified
Sun Mar 7 23:28:42 2004 UTC (6 years, 6 months ago) by
d
Original Path:
trunk/see/libsee
ensure statement follows default (Emanuele Ruffaldi)
Revision
596 -
Directory Listing
Modified
Sun Mar 7 22:53:21 2004 UTC (6 years, 6 months ago) by
d
Original Path:
trunk/see/libsee
Dereference a char instead of void pointer. (Emanuele Ruffaldi)
Revision
595 -
Directory Listing
Modified
Sun Mar 7 22:51:03 2004 UTC (6 years, 6 months ago) by
d
Original Path:
trunk/see/libsee
Only recognise SGML start-comment literals ('<!--') in EXT1 compat mode.
Ensure an empty statement follows a label. (Emanuele Ruffaldi)
Revision
589 -
Directory Listing
Modified
Sun Feb 15 06:43:15 2004 UTC (6 years, 6 months ago) by
d
Original Path:
trunk/see/libsee
move initialiser signature declarations to init.h
Revision
586 -
Directory Listing
Modified
Wed Feb 11 07:18:16 2004 UTC (6 years, 6 months ago) by
d
Original Path:
trunk/see/libsee
add an UNDEFDEF compatibility flag that turns global var ReferenceErrors into undefined values
Revision
583 -
Directory Listing
Modified
Tue Feb 10 08:58:36 2004 UTC (6 years, 7 months ago) by
d
Original Path:
trunk/see/libsee
document dodgy Canonicalize implementation better
Revision
580 -
Directory Listing
Modified
Tue Feb 10 08:57:42 2004 UTC (6 years, 7 months ago) by
d
Original Path:
trunk/see/libsee
give SEE_abort() a msg argument
better error messages
javadoc-style comments for future automatic manpage generation
initialise locale field
Revision
579 -
Directory Listing
Modified
Tue Feb 10 08:54:36 2004 UTC (6 years, 7 months ago) by
d
Original Path:
trunk/see/libsee
define and use DTOA_MODE_ defines for the mode argument to dtoa()
Revision
572 -
Directory Listing
Modified
Tue Feb 10 08:21:55 2004 UTC (6 years, 7 months ago) by
d
Original Path:
trunk/see/libsee
Print numeric literals using ToString()
A new macro EXPECTX that takes optional description of tokens expected.
(This is useful for when one of many tokens are acceptable.)
Revision
567 -
Directory Listing
Modified
Sun Dec 21 11:34:12 2003 UTC (6 years, 8 months ago) by
d
Original Path:
trunk/see/libsee
Encode() always generates uppercase hexidecimal. See Encode() step 19 on page 80 of ecma262 (edition 3)
Revision
553 -
Directory Listing
Modified
Tue Dec 2 21:15:34 2003 UTC (6 years, 9 months ago) by
d
Original Path:
trunk/see/libsee
teach automake how to properly distribute and build the stringdefs.h file
Revision
531 -
Directory Listing
Modified
Mon Dec 1 11:49:52 2003 UTC (6 years, 9 months ago) by
d
Original Path:
trunk/see/libsee
rely on garbage collector, rather than the nightmare that is C_ALLOCA
Revision
529 -
Directory Listing
Modified
Sun Nov 30 21:05:12 2003 UTC (6 years, 9 months ago) by
d
Original Path:
trunk/see/libsee
rename gc_malloc() to malloc_gc() to reduce confusion