gavin%gavinsharp.com
066a010db7
Bug 343998: copysign was not defined on WINCE, patch by dougt, r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@202019 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-13 14:01:41 +00:00
brendan%mozilla.org
12003613fb
Trailing whitespace removal.
...
git-svn-id: svn://10.0.0.236/trunk@201987 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-13 01:31:44 +00:00
bent.mozilla%gmail.com
b83e0874a1
Backing out changes from bug 280236.
...
git-svn-id: svn://10.0.0.236/trunk@201976 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-12 23:00:11 +00:00
bent.mozilla%gmail.com
a195639023
Bug 280236 - "coercing an array containing an nsXPCConstructor to a string results in an uncatchable error". Patch by timeless. r=dbradley, sr=jst.
...
git-svn-id: svn://10.0.0.236/trunk@201971 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-12 22:18:45 +00:00
mrbkap%gmail.com
e6b0fd471a
Add some code that imitates split windows in the js shell. bug 337528, rs=brendan
...
git-svn-id: svn://10.0.0.236/trunk@201964 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-12 21:21:45 +00:00
brendan%mozilla.org
f0811b88de
Fix js_PutBlockObject, write JSOP_LEAVEBLOCKEXPR decompiler logic (344262, r=mrbkap).
...
git-svn-id: svn://10.0.0.236/trunk@201915 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-11 23:29:41 +00:00
mrbkap%gmail.com
64b855811c
Fix dependencies for regenerating jsautokw.h. bug 344265, r=brendan sr=bsmedberg
...
git-svn-id: svn://10.0.0.236/trunk@201899 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-11 20:19:36 +00:00
brendan%mozilla.org
6a5ff34d77
Comment update for last patch (344139, r=mrbkap).
...
git-svn-id: svn://10.0.0.236/trunk@201839 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-10 21:11:47 +00:00
mrbkap%gmail.com
57fda7b85d
Emit the correct bytecode when a let-declared variable is on the right side of a += or similar operator. bug 344139, r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@201832 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-10 19:23:13 +00:00
brendan%mozilla.org
a5d167b80e
Forgot to switch to SRC_INITPROP (344120, r=mrbkap).
...
git-svn-id: svn://10.0.0.236/trunk@201830 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-10 19:14:00 +00:00
mrbkap%gmail.com
61bf3b545f
Clear cached class objects when JS_ClearScope is called on the global object to avoid leaks. Also, add code to GC_MARK_DEBUG that pretty-prints slot names containing cached class objects. bug 343417, r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@201773 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-07 22:28:05 +00:00
brendan%mozilla.org
47f3060bea
Fix another 1.8-branch API compat bit-hack bug.
...
git-svn-id: svn://10.0.0.236/trunk@201740 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-07 06:26:36 +00:00
brendan%mozilla.org
aa30136545
Fix bit-magic brainfart, remove useless test and add assert that it's useless (js1.7 bug, r=mrbkap).
...
git-svn-id: svn://10.0.0.236/trunk@201730 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-07 01:52:07 +00:00
mrbkap%gmail.com
c7e2cd001d
Don't stuff the stack slot that we were about to read. bug 343765, r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@201723 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-06 22:46:26 +00:00
mrbkap%gmail.com
a96510eb06
Make sure that we clean up block objects that were cloned into the scope chain for environment capture, so they don't reference dead frame pointers or dead stack slots, and instead have property-based copies of their locals. bug 343765, r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@201707 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-06 20:47:02 +00:00
mrbkap%gmail.com
6825edc70f
Nuke a warning introduced by widening JSFunctionSpec.extra. No bug, r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@201703 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-06 20:18:46 +00:00
mrbkap%gmail.com
4a673192ac
Nuke GCC -pedantic warnings by using the GCC __extension__ keyword (along with a hack to allow us to use it on 'goto' expressions). bug 343680, r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@201702 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-06 20:14:23 +00:00
mrbkap%gmail.com
ed99ce2cff
Landing a patch from Feng Qian <feng.qian.moz@gmail.com> to avoid long-running regexps from hanging the browser forever by calling the branch callback at regular intervals. bug 307456, r=brendan/mrbkap
...
git-svn-id: svn://10.0.0.236/trunk@201701 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-06 20:13:04 +00:00
brendan%mozilla.org
7fa01cef46
Followup to match (modulo comment and whitespace) 1.8 branch for script flags functions.
...
git-svn-id: svn://10.0.0.236/trunk@201694 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-06 19:35:33 +00:00
brendan%mozilla.org
f4df6e1ae7
MOZILLA_1_8_BRAN CH API compatibility restoration.
...
git-svn-id: svn://10.0.0.236/trunk@201687 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-06 18:40:03 +00:00
mrbkap%gmail.com
12bbc489e9
Remove this assertion since with objects will botch it. bug 343713, r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@201664 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-06 06:25:31 +00:00
brendan%mozilla.org
d8fd579350
Fix function body code generation to happen within the TCF_IN_FUNCTION flag's scope (343708, tachyonal r=mrbkap).
...
git-svn-id: svn://10.0.0.236/trunk@201658 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-06 05:28:15 +00:00
brendan%mozilla.org
0a940b7247
JS_1_7_ALPHA_BRANCH landing, mainly destructuring optimizations and let completion (336373, r=mrbkap).
...
git-svn-id: svn://10.0.0.236/trunk@201636 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-06 01:25:44 +00:00
mrbkap%gmail.com
07c735a6b4
Add missing rooting around a call out JS_Enumerate. bug 343290, r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@201454 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-02 03:30:46 +00:00
mrbkap%gmail.com
fbec575ef6
Protect against overly-large reallocations. bug 342960, r=brendan a=dveditz
...
git-svn-id: svn://10.0.0.236/trunk@201452 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-02 03:05:20 +00:00
igor.bukanov%gmail.com
8f9ab70f07
Bug 322135: the length setter for array tries to detect a sparse array and enumerate over properties to remove elements beyond the array length. r=mrbkap,sr=brendan
...
git-svn-id: svn://10.0.0.236/trunk@201432 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-01 19:58:44 +00:00
igor.bukanov%gmail.com
5ad881810f
Bug 343228: Fixing array_sort to always free the temporary array. r=mrbkap
...
git-svn-id: svn://10.0.0.236/trunk@201431 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-01 19:52:32 +00:00
igor.bukanov%gmail.com
d5de15367c
Bug 341956: Reorder id allocation to avoid delays with their access. r=mrbkap,sr=brendan
...
git-svn-id: svn://10.0.0.236/trunk@201428 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-01 19:29:34 +00:00
igor.bukanov%gmail.com
395c406711
Bug 342625: Fix js_GC to return false only for branch callback cancelations restoring WAY_TOO_MUCH_GC. r=mrbkap,sr=brendan
...
git-svn-id: svn://10.0.0.236/trunk@201256 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-29 19:13:51 +00:00
bclary%bclary.com
fedde28f69
Bug 330237 - revert patch due to mac os x bustage, not part of the build. r=shaver
...
git-svn-id: svn://10.0.0.236/trunk@201222 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-29 12:51:42 +00:00
igor.bukanov%gmail.com
d31a3e55a3
Bug 341896: GC finalizes the states of native iterators before finalizing the rest of object. It avoids using expensive close hooks. r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@201212 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-29 06:51:33 +00:00
bzbarsky%mit.edu
ccc12ff295
Move around some debug defines to make life better. No reviews, yay!
...
git-svn-id: svn://10.0.0.236/trunk@201205 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-29 05:33:39 +00:00
mrbkap%gmail.com
462495ba83
Checking in Sebastien Marinier <mozilla@smarinier.net>'s patch (along with a
...
couple of other bugs that need fixing) to avoid file handle leaks when using
directory[path] syntax. bug 342148, NPOTB
git-svn-id: svn://10.0.0.236/trunk@201126 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-28 19:49:39 +00:00
igor.bukanov%gmail.com
47e319bd5a
Bug 342737: New API to register JS_NewContext/JS_DestroyContext* callback. In this way an embedding can do a common customization of JSContext instances in a single place. r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@200998 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-27 12:09:09 +00:00
mrbkap%gmail.com
a88c325356
Resolve standard classes even when assigning to give them a chance to initialize
...
themselves to avoid them overriding the assigned value when they're used internally
the first time. bug 342359, r=brendan sr=jst
git-svn-id: svn://10.0.0.236/trunk@200941 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-26 21:22:12 +00:00
timeless%mozdev.org
87db23a6a4
Bug 330237 editline.c:1038: warning: implicit declaration of function `getpid'
...
r=shaver
git-svn-id: svn://10.0.0.236/trunk@200825 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-25 07:20:40 +00:00
igor.bukanov%gmail.com
2f5736ed22
Bug 342180: Check for unitialized scriptFilenameTable in js_SweepScriptFilenames as js_GC can run before js_InitRuntimeScriptState is invoked. r=mrbkap
...
git-svn-id: svn://10.0.0.236/trunk@200792 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-24 10:48:56 +00:00
mrbkap%gmail.com
24f49e9636
Keep a strong reference to the context that we're operating on. This involves
...
giving the sandbox context an nsISupports private data that controls its
lifetime. bug 337462, r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@200788 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-24 04:33:24 +00:00
mrbkap%gmail.com
2d231225bd
Some style cleanups, and add some paranoia checking. bug 342267, r=dveditz sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@200701 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-23 18:18:09 +00:00
mrbkap%gmail.com
b2a1f4c79f
Exception classes need to set their constructors on the global object themselves since they don't use JS_InitClass. bug 342359, r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@200544 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-21 23:54:04 +00:00
mrbkap%gmail.com
f9e52232c2
Fix whitespace and style nits from brendan (bug 336409)
...
git-svn-id: svn://10.0.0.236/trunk@200522 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-21 18:16:52 +00:00
brendan%mozilla.org
7700c63d94
Fix warning in str_split.
...
git-svn-id: svn://10.0.0.236/trunk@200515 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-21 16:54:40 +00:00
igor.bukanov%gmail.com
b619a5e4cb
Bug 341877: Infrastructure to root properly native iterator states. r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@200503 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-21 09:13:24 +00:00
mrbkap%gmail.com
828eaa739a
Be safer in doing these additions. bug 336409, r=igor
...
git-svn-id: svn://10.0.0.236/trunk@200486 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-21 00:42:04 +00:00
brendan%mozilla.org
eca14b115c
Null defense in case of early failure under js_NewContext (342180, r=mrbkap).
...
git-svn-id: svn://10.0.0.236/trunk@200447 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-20 18:36:34 +00:00
igor.bukanov%gmail.com
aec9cb530b
Bug 341877: Reverting the previous commit, the patch was broken.
...
git-svn-id: svn://10.0.0.236/trunk@200388 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-20 00:50:17 +00:00
brendan%mozilla.org
daace8aae1
White space police state attack.
...
git-svn-id: svn://10.0.0.236/trunk@200371 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-19 23:38:02 +00:00
igor.bukanov%gmail.com
29013a342d
Bug 341877: Infrastructure to properly mark native iterator state during GC without changing public API. r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@200364 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-19 22:53:51 +00:00
igor.bukanov%gmail.com
8304f638b7
Bug 341896: Call the branch callback outside GC lock. r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@200362 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-19 22:46:39 +00:00
timeless%mozdev.org
d7d1bbda1f
Bug 337917 Make consumers stop using cids from other modules
...
git-svn-id: svn://10.0.0.236/trunk@200245 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-18 21:18:22 +00:00