mrbkap%gmail.com
8984862ecb
User a variable that's actually defined by default everywhere. bug 345787, r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@203575 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-24 23:20:56 +00:00
brendan%mozilla.org
e8f57ab816
Mark the calle (argv[-2]) from generator_mark (343455, r=mrbkap).
...
git-svn-id: svn://10.0.0.236/trunk@203442 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-22 22:20:40 +00:00
mrbkap%gmail.com
d16232cd6a
Don't assert when the block chain has been captured. bug 345542, r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@203427 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-22 02:16:12 +00:00
brendan%mozilla.org
a67e52e26b
Rest of fix for 343455 (r=mrbkap).
...
git-svn-id: svn://10.0.0.236/trunk@203396 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-21 21:59:21 +00:00
brendan%mozilla.org
5168c9e320
Defend against null acx->thread in js_GC, in case JS_ClearContextThread is used for context-pooling (345365, r=feng).
...
git-svn-id: svn://10.0.0.236/trunk@203384 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-21 19:09:36 +00:00
brendan%mozilla.org
7b041792d6
Null defense needed in case of JS_DestroyRuntime with no script filenames tabled (345350, r=mrbkap).
...
git-svn-id: svn://10.0.0.236/trunk@203336 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-21 02:17:22 +00:00
brendan%mozilla.org
ddfddf2e7e
Mark newborn generators' frames (343455, r=mrbkap).
...
git-svn-id: svn://10.0.0.236/trunk@203335 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-21 02:00:36 +00:00
mrbkap%gmail.com
5d3d562daa
Protect the newborn function object from being collected because of a GC callback displacing it from its newborn root. bug 344759, r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@203133 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-19 18:37:53 +00:00
mrbkap%gmail.com
33bd5eca53
Remove the new wrapper from the map when postcreate fails so that we don't find
...
it the next time we try to wrap that object. bug 344873, r=jst sr=brendan
git-svn-id: svn://10.0.0.236/trunk@203033 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-18 21:26:36 +00:00
mrbkap%gmail.com
31b85dec44
Set up let declarations properly by finding the correct JSStmtInfo (not missing try or catch
...
blocks). This required making the 'scope' statements have a bit instead of a statement type
since we can now morph e.g. try statements. This patch also fixes the numbering for let
blocks after the first let block. bug 344370, r=brendan
git-svn-id: svn://10.0.0.236/trunk@203032 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-18 21:23:30 +00:00
jst%mozilla.jstenback.com
7e61024794
Fixing bug 344960. Cap the length of ActiveX contract id argument to prevent windows from crashing in bstr code due to OOM. r=mrbkap@gmail.com, sr=bugmail@sicking.cc
...
git-svn-id: svn://10.0.0.236/trunk@203014 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-18 19:45:08 +00:00
mrbkap%gmail.com
62e494918a
Handle js_ValueToPrintableSource failure without crashing. bug 344804, r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@202960 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-18 18:20:49 +00:00
mrbkap%gmail.com
e76a894911
Don't peek over newlines, since we assume that ts->ungetpos refers to a point on our line. bug 344711, r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@202277 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-18 00:35:15 +00:00
brendan%mozilla.org
ddbacc8dfe
Fix JSOP_SETSP to trim only the current frame's scope chain (344959, r=mrbkap).
...
git-svn-id: svn://10.0.0.236/trunk@202268 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-17 23:49:36 +00:00
brendan%mozilla.org
881fbaae48
Warning fix.
...
git-svn-id: svn://10.0.0.236/trunk@202059 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-13 19:18:01 +00:00
brendan%mozilla.org
8362cdc624
Improve mismatched tag name diagnostic (344455, r=mrbkap).
...
git-svn-id: svn://10.0.0.236/trunk@202058 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-13 19:14:21 +00:00
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