igor%mir2.org
c6efcf460c
Integration of VariableTable into ScriptOrFnNode to avoid the need to have a separated wrapper class around ObjArray/ObjToIntMap
2003-03-04 15:10:20 +00:00
brendan%mozilla.org
cf97227e83
Quick followup to patch for 174341.
2003-03-04 00:01:21 +00:00
brendan%mozilla.org
020aef7d75
My take on a patch and great idea from igor@icesoft.com (Igor Bukanov) for bug 195385, r=shaver.
2003-03-01 06:39:51 +00:00
timeless%mozdev.org
df64a519af
Bug 136264 HTMLCollection Object wrapped by XPConnect has members whose names shadow each other
...
r=jst sr=jst
2003-02-28 19:07:51 +00:00
brendan%mozilla.org
68cef095fc
Fix typo in old comment.
2003-02-28 07:18:40 +00:00
brendan%mozilla.org
6e0c7cdde4
Constipation of (JS|PL)DHashTableOps (195298, r/sr=shaver/alecf).
2003-02-28 07:17:59 +00:00
timeless%mozdev.org
d11119926a
Bug 136260 ChromeWindow Object wrapped by XPConnect has members whose names shadow each other
...
r=jst sr=jst
2003-02-28 02:34:01 +00:00
pschwartau%netscape.com
a953b34fcf
Adding an early return to this test, due to problems on Linux RedHat8. See bug 174341 comment 24 and following.
2003-02-28 00:33:44 +00:00
brendan%mozilla.org
4f5a98cd5c
- Move left-associative binary tree flattening from the post-order position
...
in js_FoldConstants where it was added (suboptimally: it worked, but it ran
so late that js_FoldConstants recursion was not reduced, only js_EmitTree
recursion), to NewBinary, where it avoids JSParseNode allocations up front
and reduces recursion in all parse-tree walking.
- This change enables js_FoldConstants to see a very long concatenation of
string literals as a PN_LIST node, so it can quickly concatenate without
running afoul of O(n^2) problems inherent in js_ConcatStrings applied to
two atomized strings (the old way of folding string concatenations, still
used for any pairwise string literal concatenation).
- Further optimize the first change for the second by having NewBinary set a
new pn_strcat flag (overlaying the pn_extra field) of the PN_LIST arm of
the JSParseNode.pn_u union, whenever it sees at least one string literal in
a concatenation that might be folded (whose operands might all be constants
of string or number type).
- Notes:
- only string and number constants are folded (not boolean or null
constants);
- only all-constant left-associated binary expression chains are folded,
so 2 * foo * 3 is not folded using commutativity of * over numbers, nor
is "hi" + " there" + foo folded to "hi there" + foo.
- gcc3.2 -O and objdump -x say I added 708 bytes of instructions with this
change. I tried to keep it down to what was necessary for common script;
I don't think JS needs an optimizing-compiler-strength constant folder,
and I don't think this 1K bloat is too high a price to pay for this fix.
But I'll certainly work on reducing footprint elsewhere, if I can.
- Bug 174341, r=shaver.
2003-02-27 23:04:46 +00:00
pschwartau%netscape.com
2f97a8c92b
Get JS standalone building with Makefile.ref on Mac OSX (195134, r=cls). Not part of browser build.
2003-02-27 21:52:13 +00:00
brendan%mozilla.org
1d7a5aa298
Checking in heap-sort speedup from Igor Bukanov <igor@icesoft.no> (bug 181828, r=me).
2003-02-27 01:43:44 +00:00
mkaply%us.ibm.com
7b82e8d993
#156505
...
r=dbradley, sr=brendan
If you ask for input, you should fflush after the fprintf
2003-02-26 15:22:03 +00:00
brendan%mozilla.org
7915c3d008
Optimize the foo = '' + bar; case in js_ConcatStrings to do foo = bar -- patch from Tim Lundeen <tlundeen@webcrossing.com>, r=me.
2003-02-26 01:49:32 +00:00
brendan%mozilla.org
c68f6d3980
Fix misspelling in comment.
2003-02-26 01:29:55 +00:00
igor%mir2.org
11d0e9760b
Fixing http://bugzilla.mozilla.org/show_bug.cgi?id=96270 :
...
proper implementation of Scriptable.has in ImporterTopLevel and NativeJavaPackages
2003-02-25 09:17:43 +00:00
igor%mir2.org
fd3dee4c56
Fix http://bugzilla.mozilla.org/show_bug.cgi?id=194364 :
...
no assignment of function expression statements to script result
2003-02-25 09:15:08 +00:00
mkaply%us.ibm.com
907ef1cd66
Overzealous -removed a paren
2003-02-25 05:59:50 +00:00
mkaply%us.ibm.com
5e0e0118e6
IRIX bustage - for anyone blaming this code in the future, checkin was Bug 146873 by mstoltz
2003-02-25 05:58:21 +00:00
timeless%mozdev.org
2f675849fa
Bug 131275 JS_AddRoot could provide a default root name if you define NAME_ALL_GC_ROOTS
...
r=brendan
2003-02-25 03:29:24 +00:00
mstoltz%netscape.com
db7833ec52
Bug 146873 - Check JS Enabled status before calling from java into JS. r=jst, sr=heikki.
2003-02-25 01:37:47 +00:00
pschwartau%netscape.com
5d7fb8b95b
Oops; back out last change. No sense in try...catch if the code you're trying isn't hidden inside an eval string!
2003-02-24 22:33:01 +00:00
timeless%mozdev.org
0acb5ea8ca
Bug 140031 Change jstypes.h to use __declspec instead of _declspec
...
r=rogerl
2003-02-24 21:37:54 +00:00
timeless%mozdev.org
08a077d57d
Bug 75405 js benchmarks need strict mode cleaning
...
patch by petejc@collab.net r=rogerl
2003-02-24 21:37:37 +00:00
timeless%mozdev.org
0e996b7cf4
Bug 186937 JSLL_UCMP missing from !JS_HAVE_LONG_LONG builds
...
patch by scole@planetweb.com r=brendan
2003-02-24 21:37:23 +00:00
pschwartau%netscape.com
67070c0aad
Add a try...catch around the recursion test to catch 'too much recursion' exceptions. They are OK; we are only testing against crashes in this test.
2003-02-24 20:04:07 +00:00
timeless%mozdev.org
8facc552af
Bug 188398 JavaScript Engine doesn't work well for dates after 2038 on Windows
...
r=rogerl
2003-02-24 19:20:24 +00:00
timeless%mozdev.org
4d48249ffe
Bug 134728 mozJSComponentLoader::UnloadAll => JSCLAutoContext::JSCLAutoContext Getting service @mozilla.org/js/xpc/ContextStack;1 on shutdown.
...
r=dbradley sr=brendan
2003-02-23 07:03:11 +00:00
seawood%netscape.com
7f752bf63b
Use va_copy if available for VARARGS_ASSIGN
...
Bug #187180 r=blizzard sr=brendan
2003-02-23 06:59:39 +00:00
brendan%mozilla.org
9c387e3aa5
Cleanup GC_CALLBACK blunder (190813 followup, r=shaver).
2003-02-22 22:56:57 +00:00
pschwartau%netscape.com
75d9c50f73
Initial add. Regression test for bug 194364.
2003-02-21 22:07:21 +00:00
brendan%mozilla.org
ed7dbec5c1
Fix from pthomas@suse.de (Philipp Thomas) for 64-bit conflict between ptrdiff_t and JS_BIT/JSUint32 (r=shaver, a=dbaron).
2003-02-20 22:23:03 +00:00
igor%mir2.org
a8e6f7c025
Parsing changes: for regular expression literals construct a tree node with regular expression number during parsing instead of generating a special subtree that is converted to such node during tree transformation.
2003-02-20 13:11:21 +00:00
igor%mir2.org
406437f686
Praising changes: remove direct access to VariableTable in ScriptOrFnNode and instead provide methods to access its functionality. In this way VariableTable can be changed without affecting the rest of code.
2003-02-20 09:18:12 +00:00
igor%mir2.org
3f34720cd5
More parser internal changes: move all logic to initialize variable table to ScriptOrFnNode.finishParsing and its overrides in FunctionNode/OptFunctionNode so it will be constructed during parsing to avoid checks for function types in NodeTransformer.
2003-02-19 23:50:42 +00:00
mkaply%us.ibm.com
a77ccce713
#193611
...
r=rginda, sr=brendan, a=dbaron
Set the MAX_INTERP_LEVEL for OS/2 to something lower than 1000 (250)
2003-02-19 21:19:54 +00:00
dbradley%netscape.com
74be079a50
Bug 192281 - Error calling IDispatch.setCallback on active-x control. This patch turns on wrapping of JS objects by an IDispatch interface. All changes are outside of Mozilla build. r=adamlock, sr=jst, a=dbaron
2003-02-19 15:19:22 +00:00
igor%mir2.org
3a43240845
During parsing collect all nested function in script or function directly into array in ScriptOrFnNode. In this way there is no need to walk over tree to find nested functions during tree transformation since the function nodes are available directly.
2003-02-19 14:50:30 +00:00
igor%mir2.org
ae7bb2620d
Fixing http://bugzilla.mozilla.org/show_bug.cgi?id=193700 :
...
Attempts to access/modify properties of null or undefined are explicitly checked to include in error messages the property name so it would be possible on error in x.y.z to know if it is x or y that was undefined or null.
Inspired by suggestion from Russell Gold.
2003-02-19 08:51:51 +00:00
pschwartau%netscape.com
081f5e3864
Correcting a typo in the test that had made it pass vacuously.
2003-02-19 01:51:38 +00:00
pschwartau%netscape.com
0b4ad224e7
Correcting a typo in the test that had made it pass vacuously.
2003-02-19 01:43:27 +00:00
brendan%mozilla.org
9fd257d039
Hack around OBJ_ENUMERATE design flaw that requires the property iterator object to root its parent slot (193393, r=shaver, a=asa).
2003-02-18 20:08:21 +00:00
igor%mir2.org
2b5b9f76d8
Allow to set null for sourceName, encodedSource and originalSource
2003-02-18 00:52:34 +00:00
pschwartau%netscape.com
54518d9c36
Initial add. Regression test for bug 193555.
2003-02-17 23:08:59 +00:00
pschwartau%netscape.com
c2b61e9dfb
Initial add. Regression test for bug 193418.
2003-02-17 22:24:26 +00:00
igor%mir2.org
511c2e945f
Store number of locals as a field in ScriptOrFnNode and not as int node property.
2003-02-17 17:41:04 +00:00
igor%mir2.org
7c4d921fe0
Store function array inside ScriptOrFnNode as field, not as a node property.
2003-02-17 17:39:26 +00:00
igor%mir2.org
3abddeba71
Pass ScriptOrFnNode explicitly to function expecting script or function top node and fix OptTransformer problem where it marked nested functions of function as suitable for direct call optimization which was caused by removal of parameter name subtree in FunctionNode.
2003-02-17 17:34:20 +00:00
dbradley%netscape.com
92aa9a24b8
Bug 140852 (160602) - String(819187200000) == '8191871:0000' in xpcshell, browser. r=seawood, a=brendan
2003-02-17 13:02:08 +00:00
igor%mir2.org
5a9259c0aa
Introduction of ScriptOrFnNode as a Node to represent scripts and a base class for FunctionNode so it can be used to store variable tables, line information, regular expressions etc. instead of using special Node properties.
2003-02-17 08:51:00 +00:00
igor%mir2.org
2e981e4365
Removal of a separated tree walking phase in NodeTransformer to collect variables as this is done now during parsing
2003-02-17 00:10:24 +00:00