Tom Schuster
5ecd503d83
Bug 663338 - parseInt was wrong for very small doubles. r=jandem
...
--HG--
extra : rebase_source : 41c6581143053835665dc47d88f60d918be57450
2011-12-06 11:31:16 +01:00
Tom Schuster
126e8790cc
Bug 700169 - Refactor code to use StringBuffer. r=Waldo
...
--HG--
extra : rebase_source : fefe9dcae3b2e227b9b32a17a976320eb9d71ba3
2011-12-06 11:31:00 +01:00
Brian Hackett
4db5a06fc1
JS_GetFrameFunction should return canonical script function, bug 707613. r=luke
2011-12-05 15:31:31 -08:00
Nicholas Nethercote
0745fbcf8f
Bug 704723 - Add memory reporter for XPConnect. r=mrbkap.
2011-12-05 14:24:28 -08:00
Igor Bukanov
61697acb51
Bug 707645 - Fix set-but-unused warnings reported by GCC 4.6 in jsobj.cpp. r=bhackett1024
2011-12-05 17:11:16 +01:00
Nicholas Nethercote
f00e4c5240
Bug 707125 - Shrink the final string in str_unescape if possible. r=luke.
2011-12-04 20:50:52 -08:00
Phil Ringnalda
2147b76a08
Back out e0cb9fb30750 (bug 707051) for test failures
2011-12-04 18:48:54 -08:00
Bill McCloskey
b64fad1f54
Bug 707051 - Change MarkChildren for shapes (r=igor)
2011-12-04 17:16:21 -08:00
Igor Bukanov
795ee3e592
bug 707114 - inline JSLinearString::mark. r=wmccloskey
...
--HG--
extra : rebase_source : b974429fecda0f4ba29612e0065bb2215fe7b8c2
2011-12-05 01:59:45 +01:00
Ed Morley
25b5e3e769
Merge mozilla-central and mozilla-inbound
2011-12-04 15:04:54 +00:00
Jim Blandy
df8d965b47
Bug 700070: Have stubs::AnyFrameEpilogue call the full ScriptEpilogue before StackFrame::functionEpilogue, not just ScriptDebugEpilogue after functionEpilogue. r=jorendorff
...
The debugger tests don't try returning all four kinds of resumption values
from an onExceptionUnwind handler, and under JaegerMonkey, forcing a
constructor to return a primitive can cause an assertion:
Assertion failure: !args.rval().isPrimitive(), at /home/jimb/moz/dbg/js/src/jsinterp.cpp:651
This patch changes AnyFrameEpilogue to match what the interpreter and
mjit::Compiler::emitReturn does, and adds test cases for all the resumption
values.
2011-12-03 18:51:30 -08:00
Ms2ger
9e8128012d
Bug 705357 - Use IDL for Components.utils.getGlobalForObject; r=bholley
2011-12-03 22:50:16 +01:00
Ms2ger
5cfbf6cd8a
Bug 705333 - Use IDL for nsJSCID::{CreateInstance,GetService}; r=bholley
2011-12-03 22:50:16 +01:00
Kyle Huey
501b6f1760
Merge b-s to m-c.
2011-12-03 16:27:21 -05:00
Brian Hackett
f0c35c0584
Merge MC -> JM
2011-12-03 10:34:26 -08:00
Antti Haapala
05b303b524
Bug 699156: Support TypedArrays in XPConnect. r=bholley,evilpie
2011-12-03 09:33:20 -05:00
Hannes Verschore
7e2997e6b4
Add testcase for bug 476088. r=jruderman
2011-12-03 03:29:59 -05:00
Hannes Verschore
6a2f03a63f
Add a test for bug 373843. r=jruderman
2011-12-03 03:29:59 -05:00
Brian Hackett
98abec9b55
Merge MC -> JM
2011-12-01 11:51:09 -08:00
Brian Hackett
5ecccc93ab
Merge MC -> JM
2011-11-30 12:45:27 -08:00
Brian Hackett
44ae4685c4
Avoid scratch register collision when comparing an absolute address to an immediate, bug 703047.
2011-11-29 18:41:38 -08:00
Brian Hackett
fd7a549aaf
Manually check prototypes of objects with uncacheable prototypes in ICs, bug 703047.
2011-11-29 13:37:18 -08:00
Brian Hackett
ba7e5d8276
Remove bogus assert, bug 705873.
2011-11-28 17:58:00 -08:00
Brian Hackett
031d257786
Always generate new shapes when setting uncacheable flags after prototype changes, don't cache native iterators for objects with uncacheable prototypes, bug 705895.
2011-11-28 17:27:00 -08:00
Brian Hackett
e970326d58
Add API for JSD to get the parent of a scope object, no bug.
2011-11-28 07:43:31 -08:00
Brian Hackett
c3b9744976
Merge MC -> JM
2011-11-26 15:03:20 -08:00
Brian Hackett
8e640c3889
Fix inverted test, improve test when marking objects with uncacheable prototypes, bug 703047.
2011-11-25 17:45:41 -05:00
Brian Hackett
70faf0ae00
Allow one prototype change before marking an object's prototype as uncacheable, bug 703047.
2011-11-25 16:01:08 -05:00
Brian Hackett
8ec1ac50d4
Use correct base address for computing allocated size of object elements, bug 704372.
2011-11-23 22:01:08 -05:00
Brian Hackett
2fe0d7c890
Don't trigger write barrier when initializing private data of new objects, bug 704136.
2011-11-22 18:21:10 -05:00
Brian Hackett
c26fc2aa88
Fix misuse of shape->slot(), bug 703818.
2011-11-22 17:44:26 -05:00
Brian Hackett
74b1236011
Check for uncacheable prototypes during ADDPROP IC, bug 704138.
2011-11-22 17:24:59 -05:00
Brian Hackett
674b11c47e
Treat EXTENSIBLE_PARENTS as an object flag, bug 704134.
2011-11-22 16:49:47 -05:00
Brian Hackett
8b5b277f7c
Add about:memory reporters for per compartment shape tables, bug 704372.
2011-11-21 20:29:05 -05:00
Brian Hackett
4e104973cd
Dense arrays should have numFixedSlots() == 0, regardless of size class. bug 704348
2011-11-21 19:20:39 -05:00
Brian Hackett
b7108dd598
Speed up adding new properties with a common base shape, bug 704327.
2011-11-21 18:33:55 -05:00
Bobby Holley
26cc5f0c55
Bug 705019 - Allow access to {C,Pointer,Struct,Array,Function}Type.prototype.prototype. r=jorendorff
2011-11-29 18:29:19 -08:00
Bobby Holley
373b613af3
Bug 705019 - Make toSource() and toString() work on sCTypeProtoClass and sCDataProtoClass objects. r=jorendorff
2011-11-29 18:26:12 -08:00
Bobby Holley
457374946b
Bug 705019 - Introduce CType::IsCTypeProto() and CData::isCDataProto(). r=jorendorff
2011-11-29 18:26:12 -08:00
Chris Leary
7822e56c0d
Bug 691299: Lower maximum quantifier. (r=dmandelin)
...
--HG--
extra : rebase_source : ea2cdc1664171309d60c02094913483e2af3a61a
2011-11-29 15:24:44 -08:00
Brian Hackett
43a83a7006
Only inline construction of 'this' for 'new' on singleton functions, bug 706110. r=billm
2011-11-29 13:26:37 -08:00
Chris Leary
fae62a16ef
Bug 691797: Optimize RegExp.prototype.test with leading .*, take 2. (r=mrbkap,luke)
...
--HG--
extra : rebase_source : 49c190dc6dec6ab2a05fbbd1479135082a053690
2011-11-28 13:35:12 -08:00
Brian Hackett
e799d1a5b0
Merge mozilla-central and mozilla-inbound
2011-12-03 14:36:54 -08:00
Makoto Kato
fc3b1a3f9e
Bug 655658 - NetUtil.readInputStreamToString should have aCharset argument as optional. r=sdwilsh, sr=bz
2011-11-25 11:23:41 +09:00
Tom Schuster
7fee1d3cb0
Bug 602212 - Use error message from js.msg when CSP blocks a call to eval r=jorendorff
2011-11-24 19:39:02 +01:00
Tom Schuster
616aa669c1
Bug 705168 - Followup to remove some references to the tracer in the methodjit r=dvander
2011-11-24 19:38:57 +01:00
Andrew McCreight
c76f9e1244
Bug 668855, part 6: test weak maps and the cycle collector. r=gal
2011-11-24 07:35:57 -05:00
Brian Hackett
3c0c276269
Merge MC -> JM
2011-11-18 18:02:40 -08:00
Brian Hackett
8c117e4700
Remove assertion, no bug.
2011-11-18 17:37:37 -08:00
Brian Hackett
4fa685ec83
Fix incorrect loadPayload, bug 703721.
2011-11-18 17:03:50 -08:00
Brian Hackett
91cff8878e
Address bug 694561 review comments, r=luke.
2011-11-18 16:22:52 -08:00
Brian Hackett
7075aa95ba
Address bug 697537 review comments, r=luke.
2011-11-18 15:20:21 -08:00
Brian Hackett
4124a56c30
Address bug 684507 review comments, r=luke.
2011-11-18 14:59:31 -08:00
Brian Hackett
e4d3f5339b
Address bug 699446 review comments, r=luke.
2011-11-18 14:40:14 -08:00
Brian Hackett
540d7ac81a
Address bug 700501 review comments, r=luke.
2011-11-18 13:59:48 -08:00
Brian Hackett
2b0b2a9b3d
Address bug 701509 review comments, r=luke.
2011-11-18 13:35:10 -08:00
Brian Hackett
451efa7417
Mark uncacheable prototypes on objects whose prototype has dynamically changed, bug 703047.
2011-11-18 13:28:07 -08:00
Brian Hackett
330d1a2efa
Move arguments object private data to a reserved slot, bug 703721.
2011-11-18 12:54:40 -08:00
Ed Morley
51301b2f49
Merge b-s and m-c
2011-11-18 19:04:13 +00:00
Brian Hackett
796a5de210
Avoid splintering property trees when changing the last property of an empty object, bug 701509.
2011-11-16 18:02:32 -08:00
Brian Hackett
ed8f8142a8
Avoid shape changes on XPConnect wrapper prototype changes, bug 703047.
2011-11-16 12:52:47 -08:00
Brian Hackett
90f5eadd24
Don't cache new object layouts when a dynamic property lookup is required, bug 699446.
2011-11-15 12:05:22 -08:00
Brian Hackett
f5e7426b4e
Fix method function issues, no bug.
2011-11-15 08:58:06 -08:00
Brian Hackett
a2a93f87f4
Trigger write barrier on object slots before shrinking capacity, no bug.
2011-11-14 18:46:47 -08:00
Brian Hackett
52d6223768
Clear XPCWrappedNativeScope fields to avoid accessing freed arenas during destruction, no bug. r=billm
2011-11-14 17:06:53 -08:00
Brian Hackett
31a7d5b91e
Start fixing merge trainwreck, no bug.
2011-11-14 13:03:50 -08:00
Steve Fink
86a46c0c75
Bug 700202 - Propagate exceptions from ConstructSlimWrapper (r=bholley)
...
--HG--
extra : rebase_source : 8ce6d12e100a2e3639c4d1fddbadee25e6dd12cf
2011-11-21 09:28:19 -08:00
Steve Fink
5e5f0351b2
Bug 702740 - Add JS_SetFunctionCallback to JSAPI proper (still gated on --enable-trace-jscalls). r=luke
...
--HG--
extra : rebase_source : 1d77493b4a5a39bf1b2c615f13d77021324ea6d2
2011-12-01 11:25:37 -08:00
Mike Hommey
7ed7c76f49
Bug 703842 - Avoid R_SPARC_WDISP22 relocation in TrampolineSparc.s. r=bhackett
2011-11-19 09:37:34 +01:00
Mike Hommey
0cedbb4d10
Bug 703534 - Fix build failure on platforms without YARR JIT. r=luke
2011-11-18 11:49:28 +01:00
Nicholas Nethercote
eb43c0df30
Bug 704391 - follow-up to f1c49a3b76e7 that unbreaks non-JS_THREADSAFE shell builds. r=me.
2011-12-01 21:25:13 -08:00
Nicholas Nethercote
d95fe08cf3
Bug 704391 - Add more JS runtime memory reporters and fix the existing ones. r=luke.
2011-12-01 19:08:20 -08:00
Bobby Holley
0e75bd9e56
Bug 705875 - Check for null IID pointers and references in XPCConvert. r=khuey
...
This is a regression from http://hg.mozilla.org/mozilla-central/rev/c428312abbc7 . The rest of the changes in that patch should be fine.
2011-12-01 18:24:28 -08:00
Chris Leary
39c9740c62
Bug 706442: Shorten LifoAlloc chunk chain. (r=luke)
2011-12-01 17:59:50 -08:00
Christian Holler
a3281271fb
Bug 706433 - Add JS shell compile flag (--enable-more-deterministic) for more determinism, used for differential testing. r=jorendorff
2011-12-01 15:46:28 -08:00
Brian Hackett
ef53126ae5
Remove JSOP_NOTRACE, rename JSOP_TRACE -> JSOP_LOOPHEAD, bug 706611. r=dvander
2011-12-01 15:13:51 -08:00
Felix Fung
2a48036e59
Bug 498543 - Null-checking JS_THIS_OBJECT Results. r=jwalden
2011-12-01 13:30:28 -08:00
David Mandelin
f19ac55dc1
Bug 685321 followup: land another test case
...
--HG--
rename : js/src/jit-test/tests/basic/bug685321.js => js/src/jit-test/tests/basic/bug685321-1.js
2011-12-01 14:44:30 -08:00
Brian Hackett
cc15146e95
Merge MC -> JM
2011-11-14 09:13:33 -08:00
Brian Hackett
117ae4b56c
Purge new object cache entries when reinserting new initial shapes, bug 701509.
2011-11-11 22:09:13 -08:00
Michael Wu
aafa100374
Bug 691847 - Always check bytecode version, r=Waldo
2011-11-11 19:15:19 -08:00
Gregory Szorc
6905838ddb
Bug 701822 - Add TEST_DIRS Makefile variable; r=ted
2011-11-11 12:25:22 -08:00
Brian Hackett
68c5881aef
Watch for created string objects that are non-empty due to insertInitialShape, bug 701509.
2011-11-11 07:50:12 -08:00
Marco Bonardo
8c72c90eb0
Merge mozilla-central and mozilla-inbound
2011-11-11 11:09:58 +01:00
Luke Wagner
80fd22ab8e
Bug 698299 - rm bogus assert in SecurityWrapper::nativeCall (r=mrbkap)
...
--HG--
extra : rebase_source : 76029f08a99557061e33550165267488acf38e9b
2011-11-10 21:55:35 -08:00
Luke Wagner
fcf55b9ca5
Bug 701239 - add back arg/local-handling in DecompileDestructuringLHS (r=waldo)
...
--HG--
extra : rebase_source : b296a3a47e4b687f773f9f5cf8bada7812ba2b81
2011-11-10 21:55:23 -08:00
Luke Wagner
c15e9c08d5
Bug 701227 - don't assume catch's block object has only one entry (r=waldo)
...
--HG--
extra : rebase_source : 77673329e0841330a954a7f419d2561701c43f3c
2011-11-10 21:53:55 -08:00
Luke Wagner
3071645a3f
Bug 701244 - add back JSOP_LENGTH case to DecompileDestructuring (r=waldo)
...
--HG--
extra : rebase_source : ddc7c80a94772b5b234a0d8f000189618051b7ff
2011-11-10 21:52:57 -08:00
Brian Hackett
45d8904f93
Add missing #include, no bug.
2011-11-10 18:30:52 -08:00
Brian Hackett
ee317367e6
Get new object empty shapes with a common hash table, bug 701509.
2011-11-10 17:50:05 -08:00
Gregory Szorc
3c849fad59
Merge b-s to m-c
2011-11-10 15:15:29 -08:00
Brian Hackett
09aa4d18f6
Merge MC -> JM
2011-11-10 12:06:26 -08:00
Brian Hackett
725471a0c3
Fix incorrect use of JSObject::getParent, no bug.
2011-11-10 08:47:56 -08:00
Brian Hackett
7c626362e8
Always set the scope chain of XDR'ed static block objects, no bug.
2011-11-09 22:47:26 -08:00
Brian Hackett
14c6b3845c
Add GetGlobalForObjectCrossCompartment for use in XPConnect, no bug. r=luke
2011-11-09 18:42:42 -08:00
Jeff Walden
7f55e342de
Bug 701224 - Fix destructuring into an E4X qualified name, e.g. x::y. Also fix purely-expression-context evaluation of qualified names, bug 701222. r=cdleary
2011-11-09 18:39:53 -08:00
Brian Hackett
a503daec48
Example property ops need to check the class of the incoming objects, bug 700295. r=waldo
2011-11-09 19:32:30 -08:00
Brian Hackett
9452f6845c
Don't treat THROW and RETRVAL as having fallthrough, bug 700127. r=dvander
2011-11-09 19:08:26 -08:00
Chris Leary
6ef1898c65
Back out 1bf4c1a6412b for failing an XP reftest.
...
--HG--
extra : rebase_source : 52b566a36b755a71402b5a973f309698208cc5db
2011-11-09 17:39:45 -08:00
Justin Lebar
3c1ff6be4d
Bug 586010 - Send dump() output to Android device log. r=bz
...
--HG--
extra : rebase_source : f1712d831aaa6fbd8e1bfd6060fbb4aa951ccb74
2011-11-09 19:27:08 -05:00
Brian Hackett
75ad876da1
Empty shapes attached to type objects must have the same class as the prototype, bug 698150.
2011-11-09 13:08:23 -08:00
Brian Hackett
793e5962dd
Hold reference on entry in base shape table when populating initial shape, bug 698902.
2011-11-09 12:04:56 -08:00
Brian Hackett
1133fd4090
Replace uses of GetObjectGlobal with JS_GetGlobalForObject, no bug.
2011-11-09 10:34:54 -08:00
Brian Hackett
099e038680
Fix incorrect test in HasDataProperty, bug 699166.
2011-11-09 10:25:21 -08:00
Brian Hackett
ca7d6003de
PropertyCache::fullTest should work on arbitrary scope chains, bug 700792.
2011-11-09 09:59:09 -08:00
Brian Hackett
831cd84d89
Address bug 638316 and bug 694247 review comments, r=luke.
2011-11-09 09:52:59 -08:00
Brian Hackett
708b16abe9
Track whether default 'new' types need unknown properties on the prototype, bug 700501.
2011-11-08 18:34:11 -08:00
Brian Hackett
d2fe69d826
Set DELEGATE for parents of other objects, bug 700300.
2011-11-08 16:56:00 -08:00
Brian Hackett
df6e3d3a4c
Allow NULL'ing out of non-NULL scopes of static block chains, bug 700799.
2011-11-08 16:14:34 -08:00
Ed Morley
fddedbce14
Merge m-c to b-s.
2011-11-08 23:18:09 +00:00
Brian Hackett
08c7936173
Address bug 693754 review comments, r=luke.
2011-11-08 13:42:27 -08:00
Brian Hackett
d41ec3161e
Address bug 693479 review comments, r=luke.
2011-11-08 13:08:13 -08:00
Brian Hackett
225bd263e5
Address bug 693221 review comments, r=luke.
2011-11-08 13:03:33 -08:00
Brian Hackett
166e4ff20a
Address bug 684410 review comments, r=luke.
2011-11-08 12:11:05 -08:00
Gregory Szorc
efb8dac5a2
Bug 700519 - Remove -fpascal-strings from Darwin compiler flags; r=ted
2011-11-08 12:10:22 -08:00
Christian Legnitto
6473113ad0
Bug 700688, Version bump
2011-11-08 09:12:57 -08:00
Jacek Caban
a3a1968a0b
Bug 699170 - Tons of JS_* redefined warnings on mingw r=ted
2011-11-08 10:25:51 +01:00
Ed Morley
b66adf55e2
Merge last green changeset of mozilla-inbound to mozilla-central
2011-11-08 08:01:18 +00:00
Terrence Cole
65b8697281
Bug 700357 - Run GC_SHRINK more frequently; r=billm
...
Currently we only run this on idle when allocating memory. There
are plans in place to also run these when clicking the Minimize
Memory button in about:memory, and when we are under memory
pressure. This change causes GC_SHRINK to also run when doing so
will result in "lots" of pages being decommitted to the OS.
2011-11-07 13:47:14 -08:00
Ben Turner
dbd7d35169
Bug 658178 - 'Make XHR2 response/responseType work in Web Workers'. r=jst+sicking+mrbkap.
2011-11-07 17:01:29 -08:00
Bill McCloskey
8488a0f273
Bug 699298 - Fix for windows build bustage
2011-11-09 13:53:47 -08:00
Bill McCloskey
e1aa2341e0
Bug 699298 - Overhaul GC statistics gathering (r=gwagner)
2011-11-09 13:32:17 -08:00
Boris Zbarsky
098046172c
Bug 699528. Make pausing/unpausing JSD try to turn off/on debug mode as needed. r=sfink
...
The new boolean argument to SetDebugModeWhenPossible is needed because if we allow sync-disable of debug mode we seem to crash when loading pages with Firebug active.
2011-11-09 16:11:39 -05:00
Chris Leary
a6430d4e60
Bug 700915: Diagnostic for GC helper thread crashes. (r=billm)
2011-11-09 12:24:07 -08:00
Brian Hackett
72511fd37d
Fix incorrect use of obj->setDenseArrayLength, bug 699446.
2011-11-03 14:20:44 -07:00
Brian Hackett
7852449307
Fix linkage for IsScopeObject, no bug. IGNORE BAD COMMIT MESSAGES
2011-11-03 10:42:14 -07:00
Brian Hackett
15a754ed89
Fix struct/class mismatches on js::Shape.
2011-11-03 10:38:08 -07:00
Brian Hackett
fbe9152e28
Add cache for constructing new objects from the VM, bug 699446.
2011-11-03 09:57:12 -07:00
Brian Hackett
7c9c7bd9bb
Remove JSObject::isNewborn, refactor object creation code, bug 684507.
2011-11-02 13:34:19 -07:00
Brian Hackett
526508bde2
Add memory reporter for base shapes, bug 699210.
2011-11-02 13:32:05 -07:00
Jeff Walden
7a507e08bb
Bug 701584 - Move various offsetof uses into static offsetOf* methods. r=cdleary
...
--HG--
extra : rebase_source : 6d453db67d872318160eee60bed3f628c1915c69
2011-11-02 12:57:59 -07:00
Jeff Walden
b035f1b4a5
Bug 699185 - Building SpiderMonkey with clang warns up the wazoo. Disable the warning that's the primary cause of the spew, because the workarounds are gross and the issue is a purely theoretical spec deviation which no compiler implements. r=ted
...
--HG--
extra : rebase_source : 09469e9ca787f9dcec43cb4697034d20a61b476f
2011-11-09 01:35:05 -08:00
Chris Leary
165fce4cf0
Bug 701387: RegExpPrivateCache can disappear after lookup. (r=Waldo)
2011-11-10 21:04:04 -08:00
Chris Leary
23cd12ea44
Bug 701332: Followup fix.
2011-11-10 21:04:00 -08:00
Chris Leary
ccc7d0d4ac
Bug 701332: Don't expose RegExp privates. (r=Waldo)
2011-11-10 17:30:04 -08:00
Chris Leary
3b0417b8c4
Bug 701332: Defensive refcount on string split. (r=Waldo)
2011-11-10 17:30:01 -08:00
Chris Leary
e7f1749468
Bug 700915: Back out diagnostic changeset fe41fa77e51a.
2011-11-10 17:19:18 -08:00
Michael Wu
34d5f356e4
Bug 694206 - Add Gonk (B2G) widget backend, r=cjones
2011-11-10 16:17:46 -08:00
Bill McCloskey
3e37ae7a52
Bug 641027 - Fix warnings-as-errors bustage
2011-11-10 13:38:05 -08:00
Jim Blandy
3c343dd097
Bug 684619: Make HeapReverser itself root all nodes referred to by roots. r=bhackett
...
The comments for HeapReverser::roots explain.
2011-11-10 13:28:55 -08:00
Chris Leary
9f866be0ff
Bug 700915: 64-bit RegExp domaeo_basics diagnostic. (r=billm)
2011-11-10 12:42:58 -08:00
Brian Hackett
a145bef354
Add type behavior info to script PC counts, bug 691788. r=sfink
2011-11-10 12:34:24 -08:00
Brian Hackett
6697a98273
Merge MC -> JM
...
--HG--
rename : js/src/frontend/BytecodeGenerator.cpp => js/src/frontend/BytecodeEmitter.cpp
rename : js/src/frontend/BytecodeGenerator.h => js/src/frontend/BytecodeEmitter.h
rename : js/src/frontend/Parser.cpp => js/src/frontend/SemanticAnalysis.cpp
2011-11-02 09:23:25 -07:00
Kyle Huey
b14e30c312
Merge m-c to b-s.
2011-10-31 13:12:45 -04:00
Hannes Verschore
66723fc789
Bug 469758 - Incorrect error message with adjacent "let" blocks. r=dmandelin
2011-12-03 17:04:36 +01:00
Reuben Morais
d04ddd51f3
Bug 704841 - Use implicit_jscontext for Components.utils getters. r=bholley
2011-12-03 15:59:01 +01:00
Brian Hackett
455b7ad5b4
Root correct array during makeDenseArraySlow, bug 698148.
2011-10-30 08:50:58 -07:00
Brian Hackett
83ca66c7ef
Fix GC hazard when constructing functions, bug 698156.
2011-10-30 08:27:19 -07:00
Ed Morley
7275a8d455
Merge mozilla-central and mozilla-inbound
2011-10-30 11:52:20 +00:00
Brian Hackett
60d061e5cc
Fix misuse of shape->slot(), bug 698074.
2011-10-29 22:58:12 -07:00
Brian Hackett
58a7e6059a
Fix misuse of shape->slot() in debugging code, bug 690396.
2011-10-29 19:45:51 -07:00
Brian Hackett
0782bac491
Fix uses of native reserved slots in web workers, bug 697537.
2011-10-29 18:26:21 -07:00
Brian Hackett
236e81968d
Sync FrameState entries based on tracker, bug 698100. r=dvander
2011-10-29 18:16:35 -07:00
Brian Hackett
27eed80a06
Propagate OOM triggered by inlineCallHelper, bug 695290. r=dvander
2011-10-29 17:40:34 -07:00
Brian Hackett
eb11b40569
Remove defined variables analysis, bug 697861. r=dvander
2011-10-29 17:30:08 -07:00
Brian Hackett
0470c56a60
Restore logic to increase fixed slot count for object types which have had slot arrays allocated, bug 693221.
2011-10-29 17:03:59 -07:00
Ms2ger
731edba0b8
Bug 684821 - Remove nsIDOMNSHTMLElement; r=peterv
2011-10-29 22:03:55 +02:00
Jonas Sicking
ac8b04fb20
Bug 687400: Kill Node.isSameNode. r=smaug
2011-10-28 19:52:27 -07:00
Luke Wagner
abe7645317
Bug 702507 - rm JSCLASS_CONSTRUCT_PROTOTYPE and JS_IsConstructing_PossiblyWithGivenThisObjectAndPonies (r=waldo)
2011-11-17 08:58:05 -08:00
Bill McCloskey
930500bdb9
Bug 699668 - Backout aa05d607c95e because of MaxHeap regression
2011-11-17 11:31:40 -08:00
Jacek Caban
1dac1965f5
Bug 706474 - Use -fno-keep-inline-dllexport in mingw builds r=khuey
2011-12-01 12:03:15 +01:00
Johnny Stenback
62a29bb3e4
Fixing bug 690952. Move window.navigator from the outer window to the inner window, and stop persisting it across same origin page navigations. r=mrbkap@gmail.com
2011-12-01 00:28:16 -08:00
Marty Rosenberg
3fbe921e5a
Don't place a pool in the middle of a C call (bug 696748, r=dmandelin)
2011-11-30 17:57:30 -08:00
Marco Bonardo
b5caa28910
Backout 281583d67072 (bug 702179) for Win64 opt build failure
2011-11-30 11:12:57 +01:00
Ginn Chen
05dc4d4c9f
Bug 702179 dtrace probes are not installed on Solaris with static js lib r=glandium
2011-11-30 11:23:46 +08:00
Brian Hackett
a94b1b5173
Set initial value of native reserved slots to undefined, bug 697537.
2011-10-28 08:43:04 -07:00
Brian Hackett
170513eeec
Merge.
2011-10-27 14:17:19 -07:00
Brian Hackett
d740a1c97c
Merge MC -> JM
2011-10-27 14:16:02 -07:00
Brian Hackett
ec00fc4831
Clean up API for creating natives with reserved slots, fix uses in CTypes and jsworkers shell, bug 697537.
2011-10-27 11:14:56 -07:00
Brian Hackett
d3a0fcb99d
Don't return stale shape in methodShapeChange, bug 690732.
2011-10-27 09:22:32 -07:00
Brian Hackett
547063f0c3
Fix incorrect load for flat closure upvar slots, bug 697537.
2011-10-26 13:41:17 -07:00
Brian Hackett
0c73dcf536
Fix warnings.
2011-10-26 13:30:51 -07:00
Brian Hackett
a9c68ac54d
Remove JSFunction fixed slots and unused fields, bug 697537.
2011-10-26 13:02:57 -07:00
Ted Mielczarek
1f0befd9a5
bug 697709 - shuffle around some blocks in configure so we can choose the right STLport flavor for ARMv6 Android builds. r=glandium
2011-10-26 13:59:43 -04:00
Nicholas Nethercote
ee63d07e92
Bug 697016 - Add js-total-* memory reports. r=bhackett.
2011-10-27 22:20:36 -07:00
Nicholas Nethercote
3cd57ec496
Bug 697016 - Refine per-compartment JS reporters. r=bhackett.
2011-10-27 22:19:57 -07:00
Jason Orendorff
2740af3d17
Remove unused flag TCF_NEED_MUTABLE_SCRIPT as suggested by Waldo in review. Bug 696953 comment 8. rs=Waldo over IRC.
...
--HG--
extra : rebase_source : 2da200e67b56453a6d15a58e8937c23c8ed8403e
2011-10-27 21:20:32 -05:00
Jason Orendorff
1486a1a05f
Divorce analyzeFunctions() and friends from class js::Parser. Bug 696953, part 4 of 4. r=Waldo.
...
--HG--
rename : js/src/frontend/Parser.cpp => js/src/frontend/SemanticAnalysis.cpp
extra : rebase_source : 735796e90d053bc979060c2b988926954b90f435
2011-10-27 21:16:32 -05:00
Jason Orendorff
2a7055f71e
Remove class BytecodeCompiler. Bug 696953, part 3 of 4. r=Waldo.
...
--HG--
rename : js/src/frontend/Parser.cpp => js/src/frontend/SemanticAnalysis.cpp
extra : rebase_source : 2d9b17328a656f5f5dccda11311fd5d4637a6663
2011-10-27 17:03:54 -05:00
Jason Orendorff
9df9164977
Move GlobalScope from BytecodeCompiler to BytecodeEmitter. Bug 696953, part 2 of 4. r=Waldo.
...
--HG--
rename : js/src/frontend/Parser.cpp => js/src/frontend/SemanticAnalysis.cpp
extra : rebase_source : d07f9e50246b46d9704c3a45ae0fa368c88319be
2011-10-27 17:00:48 -05:00
Jason Orendorff
12b4bc2093
Split Parser::analyzeFunctions and friends off into their own file. Bug 696953, part 1 of 4. r=Waldo.
...
--HG--
rename : js/src/frontend/Parser.cpp => js/src/frontend/SemanticAnalysis.cpp
extra : rebase_source : 6f4a032e9d31a0cc549d501661e6c3f5c831f5a8
2011-10-27 16:59:48 -05:00
Nicholas Nethercote
dc27735198
Bug 697646 - Don't create tiny property tables. r=bhackett.
2011-10-27 17:58:44 -07:00
Jason Orendorff
5c62923bbd
Bug 696220 - js1_8_5/extensions/reflect-parse.js is failing. r=luke.
...
--HG--
extra : rebase_source : b6452bd11b342921ac7667dfb2765bb213db9e23
2011-10-27 15:40:40 -05:00
Jim Blandy
4b1daeff70
Bug 695985: Provide CFI for the code address GDB checks when a return address points at JaegerThrowpoline's or JaegerInterpoline's entry point. r=sfink
...
Details in comments.
2011-10-27 13:14:22 -07:00
Bobby Holley
f28c3b5733
Bug 693341 - Test arrays of iid_is params. r=khuey
2011-10-27 12:43:38 -07:00
Bobby Holley
2a7b499431
Bug 693341 - Improve array and interface comparisons. r=khuey
2011-10-27 12:43:38 -07:00
Bobby Holley
eb8f8822de
Bug 693341 - Test iid_is(). r=khuey
2011-10-27 12:43:38 -07:00
Bobby Holley
232928b5e3
Bug 693341 - Test interface arrays. r=khuey
2011-10-27 12:43:38 -07:00
Bobby Holley
b140fb446f
Bug 693341 - Introduce a few test interfaces. r=khuey
2011-10-27 12:43:38 -07:00
Bobby Holley
2a43dc603c
Bug 693341 - Test sized strings. r=khuey
2011-10-27 12:43:38 -07:00
Bobby Holley
870e878e2a
Bug 693341 - Test arrays of strings. r=khuey
2011-10-27 12:43:38 -07:00
Bobby Holley
5731e74e86
Bug 693341 - Test arrays of arithmetic types. r=khuey
2011-10-27 12:43:38 -07:00
Bobby Holley
99e689efc2
Bug 693341 - Use comparators for everything in test_params.js. r=khuey
2011-10-27 12:43:38 -07:00
Bobby Holley
3bfbfd8a2e
Bug 695138 - Fix inout memory leak in XPConnect tests. r=khuey
2011-10-27 12:43:38 -07:00
Chris Jones
8ea0a5c4fe
Bug 669949, part 2: Implement jsreftest browser.js JSContext-munging on top of Components.utils helpers. r=bc
2011-10-27 12:24:38 -07:00
Chris Jones
f850e9c3aa
Bug 669949, part 1: Add Components.utils interfaces for playing with callee JSContext params. r=mrbkap sr=jst
2011-10-27 12:24:38 -07:00
Brian Hackett
ce5f244dd5
Watch for imacros in ContextStack::currentScript, bug 697255. r=luke
2011-10-27 12:06:07 -07:00
Jason Orendorff
13bf278d0f
Rename PopStatementCG and NewScriptFromCG. Bug 696876, part 3 of 3. r=dvander.
...
--HG--
rename : js/src/frontend/BytecodeGenerator.cpp => js/src/frontend/BytecodeEmitter.cpp
rename : js/src/frontend/BytecodeGenerator.h => js/src/frontend/BytecodeEmitter.h
extra : rebase_source : de8a4aa72e70ecc321a987227ee88a1883400db9
2011-10-27 09:29:50 -05:00
Jason Orendorff
b9c4c91103
Convert CG_ macros to BytecodeEmitter methods. Bug 696876, part 2 of 3. r=dvander.
...
--HG--
rename : js/src/frontend/BytecodeGenerator.cpp => js/src/frontend/BytecodeEmitter.cpp
rename : js/src/frontend/BytecodeGenerator.h => js/src/frontend/BytecodeEmitter.h
extra : rebase_source : ae396c039122ab4c8e7f002778f003e24229cd47
2011-10-27 09:16:24 -05:00
Jason Orendorff
94ba16b2c0
Rename js::CodeGenerator to js::BytecodeEmitter. Bug 696876, part 1 of 3. r=dvander.
...
--HG--
rename : js/src/frontend/BytecodeGenerator.cpp => js/src/frontend/BytecodeEmitter.cpp
rename : js/src/frontend/BytecodeGenerator.h => js/src/frontend/BytecodeEmitter.h
extra : rebase_source : 2cc974e15cdf9e4dce36599b45914bab56825611
2011-10-27 09:15:40 -05:00
Jason Orendorff
0ee17aec01
Bug 684489 - Fix a strict direct eval bug affecting Google Maps. r=Waldo.
...
--HG--
extra : rebase_source : 5e708cc26a923934a363f327696bcd2913038f21
2011-10-27 08:58:33 -05:00
Ed Morley
19b43ef359
Backout changeset 3b5b10d76887 (bug 678687) for V8/Dromaeo regressions on multiple platforms; a=mak
2011-10-27 16:11:26 +01:00
Boris Zbarsky
947ce13fde
Bug 705280 - (2/2) Custom quickstub nsIDOMHTMLDocument.head and change nsIDOMHTMLDocument.body custom quickstub. r=mrbkap
2011-11-29 17:32:31 +01:00
Mounir Lamouri
477f1cb570
Bug 705280 - (1/2) Quickstub nsIDOMHTMLDocument.head. r=mrbkap
2011-11-29 17:30:13 +01:00
Ryan VanderMeulen
22349ca270
Bug 517298 - Re-enable tests that had been skipped previously. r=bclary
2011-11-29 17:22:13 +01:00
Chris Leary
512f0b07a4
Back out 9541ced017f7 -- performance didn't improve as expected.
2011-11-28 17:23:02 -08:00
David Mandelin
f0008d63aa
Bug 684922 followup: fix test metadata to expect error
...
--HG--
extra : rebase_source : b9deb96721dc65822968fec49273010367f0e2ff
2011-11-28 16:59:05 -08:00
Alon Zakai
052ec1805b
Bug 705508 - Add printErr to JS console. r=cdleary
2011-11-28 16:49:34 -08:00
Ryan VanderMeulen
62a927d2f5
Bug 705401 - Remove the rest of TraceVis. r=dvander
2011-11-28 16:08:25 -08:00
David Mandelin
e989f473fd
Bug 684922: avoid infinite recursion through GetCustomIterator, r=luke
2011-11-28 15:20:15 -08:00
Ryan VanderMeulen
6c5d50b5ed
Bug 524732 - Re-enable tests that had been skipped previously. r=bclary
2011-11-28 14:57:31 -08:00
Ryan VanderMeulen
c99172b952
Bug 705356 - Remove JSOPTION_JIT and JSOPTION_PROFILING. r=dvander
2011-11-28 14:57:31 -08:00
Chris Leary
8a09202cc6
Bug 691797: Optimize RegExp.prototype.test with leading .* (r=mrbkap)
...
--HG--
extra : rebase_source : 83c8bf66164a4f6f5895beeeb857179de280c241
2011-11-28 13:35:12 -08:00
Terrence Cole
fb465cb23d
Bug 699279 - Run GC_SHRINK collection cycle when under memory pressure; r=mrbkap
...
GC_SHRINK is a fairly new type of GC that does more aggressive cleanups than a
normal GC. This patch makes the browser run the GC in this mode when under
memory pressure, or when the user pushes the Minimize Memory Usage button when
on the about:memory page.
--HG--
extra : rebase_source : abdd11ee5fa5eb0e3d58122d3d72e98328d47668
2011-11-09 18:14:11 -08:00
Rafael Ávila de Espíndola
9799f824dd
Bug 705466 - Use MOZ_CHECK_HEADERS to check for cpuid.h. r=ted.
...
--HG--
extra : rebase_source : ecd108d166017cbd64c5be459a76cb2522723dfb
2011-11-28 15:32:32 -05:00
Brendan Eich
1319d0d674
Bug 685321: detect closed-over variables conservatively, r=jorendorff
2011-11-28 11:57:10 -08:00
Jeff Walden
75178a4438
Bug 701973 - Make callers pass the type of function body being parsed to Parser::functionBody, rather than inferring it from the current token. r=jorendorff
...
--HG--
extra : rebase_source : 6fe4c4dc4bcb0b7b44383da995934f2ff2383046
2011-11-12 01:38:24 -08:00
Jeff Walden
f4134134c8
Bug 701973 - Make js::Parser::variables not depend on the current token, and extract TOK_CONST from TOK_VAR. r=jorendorff
...
--HG--
extra : rebase_source : f6825ae9b1780fd1ecb2bc7831e14639abaeb735
2011-11-11 19:23:25 -08:00
Jeff Walden
3c5ca419bc
Bug 701620 - Split up PNK_LC into PNK_STATEMENTLIST and PNK_XMLCURLYEXPR. r=jorendorff
...
--HG--
extra : rebase_source : 4d781725639c6c94da53fd33fcfcedf221634a35
2011-11-11 18:05:43 -08:00
Jeff Walden
2a586af759
Bug 701620 - Rename PNK_DO to PNK_DOWHILE to make the meaning clearer. r=jorendorff
...
--HG--
extra : rebase_source : c3320c052e937a7700ed8c1dd2259c9c4b6f0b03
2011-11-06 07:51:39 -08:00
Jeff Walden
7293d6c2ce
Bug 701620 - Split parse nodes for the parenthesized heads of for loops into PNK_FORHEAD (for(;;) loops) and PNK_FORIN (for(var _ in _) loops) kinds. r=jorendorff
...
--HG--
extra : rebase_source : d98eeba2b14581aae589fd6e3eb12ba4220c1670
2011-11-05 12:43:39 -07:00
Jeff Walden
444d050d4e
Bug 701620 - Use two different kinds for the + operator when used in unary and binary expressions, likewise for -. r=jorendorff
...
--HG--
extra : rebase_source : ae4b6490a658893b51a069ac40151ca63fff0055
2011-11-05 12:20:22 -07:00
Jeff Walden
071dfc0efb
Bug 701620 - Split default parse nodes into PNK_DEFAULT into PNK_DEFAULT (for default cases in switches) and PNK_DEFXMLNS (for those other uses). r=jorendorff
...
--HG--
extra : rebase_source : 795141b3c10ccc731a8690a1c91df6db441ed46c
2011-11-05 12:10:33 -07:00
Nicholas Nethercote
f1e77095c2
Bug 698968 - Add mallocSizeOf functions and start using them. r=jlebar,bhackett,jfkthame, sr=bz.
2011-11-27 19:03:14 -08:00
Mounir Lamouri
631be0b19b
Backout 2040980c0792 (bug 705280) to investigate perf regression on dromaeo v8 deltablue.
2011-11-27 16:59:10 +01:00
Rafael Ávila de Espíndola
0ea58cfe7f
Bug 705461 - Use MOZ_CHECK_HEADER(S) everywhere. r=neil.
2011-11-26 16:05:17 -05:00
Andrew Paprocki
eb7980a023
Bug 620452 - Always define sharpnum to prevent compiler error when JS_HAS_SHARP_VARS is undefined. r=mrbkap
2011-11-21 21:54:35 -05:00
Tom Schuster
18afa40401
Bug 647628 - Remove SKIP_POP_AFTER_SET. r=bhackett
...
--HG--
extra : rebase_source : 1332f0176be3db638d112392b5265a12eeee5ec2
2011-11-26 18:52:27 +01:00
Tom Schuster
59c2940705
Bug 554691 - Remove dead js_RegisterCloseableIterator definiton from header file. r=Ms2ger
...
--HG--
extra : rebase_source : b8b5fe8b03ded91b37560d045d4fe5d2da7f7925
2011-11-26 18:51:06 +01:00
Marco Bonardo
ca613c9cf5
Merge mozilla-central to mozilla-inbound
2011-11-26 14:29:05 +01:00
Ms2ger
3b924f7857
Bug 705320 - Use IDL for xpcIJSWeakReference.get; r=bholley
2011-11-26 11:32:03 +01:00
Ms2ger
50174a0e92
Bug 701467 - Remove JS_TRUE/JS_FALSE from xpconnect; r=bholley
2011-11-26 11:05:59 +01:00
Bobby Holley
e7353e9706
Bug 692342 - Get rid of the large and unnecessary table-driven reflectability detector. r=mrbkap
...
The XPIDL machinery should never output an invalid configuration here, so all this checking is unnecessary. The only thing we have to watch out for is native types, which all get shoehorned into T_VOID. So let's make this a simple check.
2011-11-25 17:09:07 -08:00
Bobby Holley
cf0c523c0d
Bug 692342 - Assert !IsArithmetic() rather than IsPointer(). r=mrbkap
...
JSval is the only different between the two, and we handle that above.
2011-11-25 17:09:07 -08:00
Bobby Holley
8ae1b4f193
Bug 692342 - Coalesce cleanup flagging even further. r=mrbkap
...
This eliminates another pesky use of IsPointer().
2011-11-25 17:09:07 -08:00
Bobby Holley
80a53aed88
Bug 692342 - Assert against arrays of jsvals, since we don't handle them. r=mrbkap
2011-11-25 17:09:07 -08:00
Bobby Holley
06df2e6a7d
Bug 692342 - Coalesce cleanup flagging within ConvertDependentParam. r=mrbkap
...
The only change in functionality here is that we flag for cleanup on 'inout' sized strings in addition to 'in' sized strings. I'm pretty sure we want that.
2011-11-25 17:09:07 -08:00
Bobby Holley
ce087657c7
Bug 692342 - Move some things below Do datum_type resolution in ConvertDependentParam. r=mrbkap
2011-11-25 17:09:07 -08:00
Bobby Holley
eb2e2115a2
Bug 692342 - Reorder in/out/inout handling in XPCWrappedNative parameter conversion. r=mrbkap
...
Apologies for the copy paste here. Fixing that will require some more serious re-architecting.
2011-11-25 17:09:07 -08:00
Bobby Holley
95cde91eeb
Bug 692342 - Move a call to SetValNeedsCleanup() to an equivalent location. r=mrbkap
2011-11-25 17:09:07 -08:00
Bobby Holley
5424bb3bcc
Bug 692342 - Remove check for !IsInterfacePointer(), given the code a few lines above. r=mrbkap
2011-11-25 17:09:07 -08:00
Bobby Holley
62e80bfb1b
Bug 692342 - Reindentation from previous patch (no other changes). r=mrbkap
2011-11-25 17:09:07 -08:00
Bobby Holley
583010a596
Bug 692342 - Create a ConvertDependentParam(i) method to match ConvertIndependentParam(i) (modulo reindentation). r=mrbkap
2011-11-25 17:09:07 -08:00
Bobby Holley
6b83abef00
Bug 692342 - Simplify cleanup code in ConvertIndependentParameter(). r=mrbkap
...
We're not dealing with dependent parameters here. So as far as I can tell, the only behavior change that this introduces is that we flag for cleanup on T_WCHAR_STR in addition to T_CHAR_STR. This seems like something we probably want.
2011-11-25 17:09:07 -08:00
Bobby Holley
ab29eff0be
Bug 692342 - Introduce deprecated_IsPointer() to handle the cases that are too mucky to figure out right now. r=mrbkap
2011-11-25 17:09:06 -08:00
Bobby Holley
cd0b0da035
Bug 692342 - Remove the obviously superfluous uses of IsPointer(). r=mrbkap
...
These are the easy cases, which all fall into one or more of the following categories:
* A check-and-throw, followed by a switch whose default case also throws
* A check of IsPointer() &&-ed with or tightly enclosing a check that implies IsPointer()
* A check of something clearly enforced by the XPIDL compiler
2011-11-25 17:09:06 -08:00
Bobby Holley
01cb0af700
Bug 692342 - Remove use of IsReference() within XPConnect. r=mrbkap
...
All we're doing is checking that various types aren't flagged as reference. But xpidl makes sure this doesn't happen, so we should just trust it instead.
2011-11-25 17:09:06 -08:00
Mounir Lamouri
64f6355173
Bug 705280 - Quickstub nsIDOMHTMLDocument.*. r=mrbkap
...
Currently not all methods of nsIDOMHTMLDocument were quickstubbed which means
some methods like document.head were excessivly slow (see bug report).
2011-11-26 01:24:08 +01:00
Andrew Paprocki
6e53604b3e
Bug 660747 - Reverting YARR begin characters optimization. r=dmandelin
2011-11-22 00:21:18 -05:00
Brian Hackett
f90413cb77
Fix incorrect test in FindIdentifierBase, bug 694247.
2011-10-25 08:48:22 -07:00