Commit Graph

24401 Commits

Author SHA1 Message Date
Boris Zbarsky
e4b4da3503 Bug 838518 part 1. Fix treewalker callers per the API change that was made. r=smaug 2013-02-06 14:22:33 +00:00
Norbert Lindenberg
628e25e6a1 Bug 769872 - Add self-hosted JavaScript core of Intl constructors Collator, NumberFormat, DateTimeFormat (part 2). r=jwalden 2013-02-06 23:04:39 -08:00
Benjamin Peterson
223b3cbb4d Bug 836524 followup - need to include inlines. CLOSED TREE 2013-02-07 00:03:48 -05:00
Bill McCloskey
bf1720eb36 Bug 836524 - Zone renaming part 6 (r=jonco) 2013-02-06 18:08:47 -08:00
Bill McCloskey
f8c18bb56d Bug 836524 - Zone renaming part 5 (r=jonco) 2013-02-06 18:08:42 -08:00
Bill McCloskey
4300bedd74 Bug 836546 - Simplify gray links in the GC (r=jonco) 2013-02-06 18:08:34 -08:00
Bill McCloskey
502a26876a Bug 836524 - Zone renaming part 4 (r=terrence) 2013-02-06 18:08:28 -08:00
Bill McCloskey
7cf8d31812 Bug 836524 - Zone renaming part 3 (r=jonco) 2013-02-06 18:08:22 -08:00
Bill McCloskey
43f9fef2cf Bug 836524 - Zone renaming part 2 (r=jonco) 2013-02-06 18:08:16 -08:00
Bill McCloskey
57509c61ee Bug 836524 - Zone renaming part 1 (r=terrence) 2013-02-06 18:08:10 -08:00
Brendan Eich
6dda1df952 Bug 433529 - switch style nit-policing followup (r=lumpy). 2013-02-06 15:28:36 -08:00
Christian Holler
028393e58d Bug 838150 - Add ASan and Valgrind annotations to JS LifoAlloc. r=bhackett 2013-02-06 14:30:01 +01:00
Christian Holler
64b698b8ac Bug 838148 - Add 63 missing jit-tests for various bugs. rs=terrence 2013-02-06 14:01:01 +01:00
Jeff Walden
cb6dea2fcf Fix up a few lingering references to jsval.h. Followup to bug 837773, r=bustage in a CLOSED TREE 2013-02-05 16:13:24 -08:00
Nicholas Nethercote
6edcbd1cf6 Bug 837981 - Remove GetDeflatedStringLength(). r=terrence.
--HG--
extra : rebase_source : 7966380110472b6e164c3689378fdbd788d25301
2013-02-05 15:12:05 -08:00
Jeff Walden
ded452f8a5 Bug 837773 - Add a PropertyKey.h header. r=jorendorff
--HG--
rename : js/src/jsval.h => js/public/Value.h
extra : rebase_source : 1756e599b0718b8e765cecb972737040e0ba56e4
2013-02-01 16:42:48 -08:00
Jeff Walden
75d4e3a04d Bug 837773 - Change private uint32_t Values to use the int32_t representation, for simplicity. r=luke
--HG--
extra : rebase_source : 75e7118b9e5713dc252043e6f40d79e238a2480f
2013-02-01 18:41:35 -08:00
Jeff Walden
fb13aa0bce Bug 837773 - Move JS::Value into Value.h. r=jorendorff
--HG--
extra : rebase_source : b41cee90d5c08a6e1c23f023af2eb2f1ac41e1a3
2013-02-01 16:15:49 -08:00
Jeff Walden
b730ad62b4 Bug 837773 - Move JS::Anchor into js/public/Anchor.h, necessary to properly make Value.h an independent header. r=jorendorff
--HG--
rename : js/src/jsval.h => js/public/Value.h
extra : rebase_source : c109f562aea18e7466b6af6fd1dd2efae11b0333
2013-02-01 15:31:00 -08:00
Jeff Walden
083e74deca Bug 837773 - Move js/src/jsval.h to js/public/Value.h. r=jorendorff
--HG--
rename : js/src/jsval.h => js/public/Value.h
extra : rebase_source : 224d021ad357f133b0b04658ca9b59a52b74fd65
2013-02-01 14:24:37 -08:00
Jeff Walden
c6ddf83217 Bug 837773 - Organize jsapi.h's #includes. r=jorendorff
--HG--
extra : rebase_source : 88b6a890a4e2304beb5f37198b9f6f2ebda9a8a9
2013-02-01 13:07:10 -08:00
Terrence Cole
b01d3f3a49 Bug 706885 - Do not store singletons in the Nursery; r=bhackett
--HG--
extra : rebase_source : 0f6fe8fd6954c60a25b7180e503afd124956ec1c
2013-01-28 11:01:54 -08:00
Terrence Cole
e576168e4c Bug 832103 - Add a regression test for the given bug; r=bhackett DONTBUILD
--HG--
extra : rebase_source : d6ee5befb43f912a8ae678c6639e4ae37e64d7d7
2013-02-05 09:47:53 -08:00
Brian Hackett
8be677bc40 Bug 836705 - Fix bogus assert when loading from definitely-double arrays, r=jandem. 2013-02-05 09:48:55 -07:00
Brian Hackett
e62502b424 Bug 832670 - Don't verify barriers when unwinding frames that finished in JM, r=billm. 2013-02-05 09:44:52 -07:00
Ryan VanderMeulen
6710d4e443 Backed out changeset 2861ef67390a (bug 837566) for Linux32 mochitest-other shutdown hangs. 2013-02-05 07:54:49 -05:00
Vicamo Yang
206ac2e59c Bug 833278 - Part 2/2: Implement MozVoicemailEvent using codegenerator. r=gwagner,smaug 2013-02-05 17:02:18 +08:00
Nicholas Nethercote
b6e73adcac Bug 837566 - Remove js_RemoveRoot. r=terrence. 2013-02-03 20:17:34 -08:00
Sean Stangl
9cf22c38fe Bug 829758 - Use MatchOnly mode for str_search(). r=dvander 2013-01-15 15:35:25 -08:00
Sean Stangl
46f8dd6c33 Bug 832217 - Construct RegExpShared in the same compartment as the RegExpStatics. r=billm 2013-02-01 17:36:29 -08:00
Luke Wagner
af04a674f0 Bug 837016 - IonMonkey: store CodeLabels by value (r=h4writer)
--HG--
extra : rebase_source : e03d276c80dcdf29b6b9bec4627a93528f423ff6
2013-01-31 18:41:04 -08:00
Hannes Verschore
eafb69e61d Bug 832058: IonMonkey: Only inline if script is compile-and-go and doesn't have an arguments objects, r=nbp 2013-02-04 17:38:38 +01:00
Bobby Holley
b2bee1e222 Bug 831076 - Add assertSameCompartment to JS_ObjectToOuterObject, and clean up classinfo hook. r=mrbkap 2013-02-04 15:13:14 +00:00
Bobby Holley
aecba694cc Bug 831076 - Enter a compartment in jsd. r=mrbkap 2013-02-04 15:13:14 +00:00
Bobby Holley
2ad47344dd Bug 831076 - Outerize during same-compartment wrapping so that JS_Wrap* is guaranteed to outerize. r=mrbkap 2013-02-04 15:13:14 +00:00
Bobby Holley
fd4c9ea494 Bug 831076 - Outerize at the very beginning of XPConnect wrapping and remove other outerization checks. r=mrbkap 2013-02-04 15:13:13 +00:00
Andrew McCreight
8e63ed0ee6 Bug 819131 - Preserve reflector delegate weak map keys. r=billm 2012-05-25 16:07:24 +00:00
Nicholas Nethercote
e011bac0c2 Bug 836985 follow-up: Make ScriptSourceHolder constructor explicit. r=benjamin. 2013-02-03 20:03:06 -08:00
Nicholas Nethercote
eecf7d2754 Bug 837002 - Fix two clang warnings in SpiderMonkey. r=luke. 2013-02-03 19:55:23 -08:00
Nicholas Nethercote
1a9585a68f Bug 836985 - Remove ScriptSourceHolder::rt. r=benjamin. 2013-02-03 19:55:09 -08:00
Brian Hackett
54aa8e3c4c Bug 837418 - Fix silly mistake when dealing with OOM under str_concat, r=terrence. 2013-02-03 16:37:56 -07:00
Till Schneidereit
6e0640f6b1 Bug 810715 - De-lazify a JSFunction's script before querying its ndefaults value. r=luke
--HG--
extra : rebase_source : ce0494d920bb7d5f6add7cc04947ab50431dc696
2013-01-29 11:34:36 +01:00
Peter Van der Beken
aa02745915 Fix for bug 830879 (HTML Element WebIDL bindings require classinfo). r=bz.
--HG--
extra : rebase_source : a88a5f24d3d4c12b652f1228eb5b3b7bb8b9e5ee
2013-01-10 10:54:32 +01:00
Sean Stangl
ebac09c3f6 Backout Bug 837042 for mysterious compilation failures on TBPL. 2013-02-01 18:02:01 -08:00
Sean Stangl
b7a3460e6d Bug 832217 - Construct RegExpShared in the same compartment as the RegExpStatics. r=billm 2013-02-01 17:36:29 -08:00
Daniel Holbert
d76965acba Bug 837253: When declaring JSObject as a friend, use 'class' instead of 'struct' to fix MSVC warning-spam. r=dvander 2013-02-01 15:15:30 -08:00
Sean Stangl
aba8b667c2 Bug 837014 - Always inline the empty script. r=bhackett 2013-02-01 13:29:12 -08:00
Brian Hackett
91a68ce5b9 Bug 836774 - Prevent objects/strings from flowing to an MToDouble, r=jandem. 2013-02-01 06:44:17 -07:00
Hannes Verschore
4b00cf33c0 Bug 828119: IonMonkey: Add fastpath for strict string comparison, r=jandem 2013-02-01 11:39:02 +01:00
Benjamin Peterson
aa30b0ac59 Bug 718969 - Perform an exorcism; remove the decompiler. r=luke 2013-02-01 00:19:00 -05:00
Benjamin Peterson
d74f98a284 Bug 777474 - Use the expression decompiler for opcode text when possible. r=bhackket 2013-02-01 00:10:17 -05:00
Nicholas Nethercote
524f6ea9b5 Bug 788293 - Remove e4x support. r=jorendorff,terrence,evilpie.
Ding dong!  The witch is dead!
2013-01-24 21:24:57 -08:00
Nicholas Nethercote
961bc1fa85 Bug 834090 - Name unused opcodes more sanely. r=jorendorff. 2013-01-24 16:14:54 -08:00
Phil Ringnalda
b4eec14ca3 Back out 66882ea6f8c7 (bug 788293) and 32f09cb3c7b6 (bug 834090) for bustage
CLOSED TREE
2013-01-31 22:29:30 -08:00
Phil Ringnalda
f70cddbe1c Back out fa772ccdf19d (bug 718969) and 050a0a27024a (bug 777474) for being in the way of backing out bustage
CLOSED TREE
2013-01-31 22:27:54 -08:00
Benjamin Peterson
ba2bb88b35 Bug 718969 - Perform an exorcism; remove the decompiler. r=luke
--HG--
extra : rebase_source : 64df8f9a7ac230e1462a8f6e134ac3e86258d6f8
2013-02-01 00:19:00 -05:00
Benjamin Peterson
b1908446d0 Bug 777474 - Use the expression decompiler for opcode text when possible. r=bhackket
--HG--
extra : rebase_source : 84a1421dfdf12c8e6fd2bb8a09132cd83c13c590
2013-02-01 00:10:17 -05:00
Nicholas Nethercote
ae7837bdef Bug 788293 - Remove e4x support. r=jorendorff,terrence,evilpie.
Ding dong!  The witch is dead!

--HG--
extra : rebase_source : 7574f5620e303c25120fcfc8ceb2099ad75c8f1b
2013-01-24 21:24:57 -08:00
Nicholas Nethercote
ef065e091e Bug 834090 - Name unused opcodes more sanely. r=jorendorff.
--HG--
extra : rebase_source : 1ca2f3707aff6c24461d2acadde79b7bbc905225
2013-01-24 16:14:54 -08:00
Luke Wagner
e0251d0e52 Bug 836616 - allow ParseNodes to distinguish numbers containing a decimal point (r=njn)
--HG--
extra : rebase_source : c1b048a3008ac492149488d427f14c9bb5cf5c31
2013-01-14 08:25:28 -08:00
Nicholas Nethercote
84a1d83d0a Bug 833208 (part 5) - Remove e4x support from mochitests. r=jorendorff.
--HG--
extra : rebase_source : a88f8ed13299c566df2297729b3a5ddf21fcaafa
2013-01-28 14:55:17 -08:00
Nicholas Nethercote
f7f94fcd8f Bug 833208 (part 4) - Remove e4x support from xpcshell tests. r=jorendorff.
--HG--
extra : rebase_source : a7bd33905120f74e6c242e0c236450dd3be54436
2013-01-30 16:56:16 -08:00
Nicholas Nethercote
1a39b36678 Bug 833208 (part 3) - Remove e4x support from jsapi-tests. r=jorendorff.
--HG--
extra : rebase_source : d3e2edd48c95fcf1f237831eae788f613778ab64
2013-01-28 14:55:14 -08:00
Nicholas Nethercote
cb0816440c Bug 833208 (part 2) - Remove e4x support from jstests. r=jorendorff.
--HG--
rename : js/src/tests/e4x/Statements/12.3-01.js => js/src/tests/js1_6/extensions/nested-for-each.js
rename : js/src/tests/e4x/Regress/regress-355569.js => js/src/tests/js1_8_5/regress/regress-355569.js
rename : js/src/tests/e4x/Regress/regress-477053.js => js/src/tests/js1_8_5/regress/regress-477053.js
rename : js/src/tests/e4x/Regress/regress-561031.js => js/src/tests/js1_8_5/regress/regress-561031.js
extra : rebase_source : d146e304a8d31b1536804f86929628a638ff3269
2013-01-28 14:25:15 -08:00
Nicholas Nethercote
73f7dab4ed Bug 833208 (part 1) - Remove e4x support from jit-tests. r=jwalden.
--HG--
rename : dom/browser-element/BrowserElementParent.jsm => dom/browser-element/BrowserElementParent.js
rename : js/src/jit-test/tests/e4x/bug613151.js => js/src/jit-test/tests/basic/bug613151.js
rename : js/src/jit-test/tests/e4x/bug651966.js => js/src/jit-test/tests/basic/bug651966.js
rename : js/src/jit-test/tests/e4x/bug737251.js => js/src/jit-test/tests/basic/bug737251.js
extra : rebase_source : 2102a879231490bf1b73249b4889c2d83c73010f
2013-01-28 14:25:14 -08:00
Sean Stangl
da4d7ac589 Backout Bug 829758 to investigate crashes. 2013-01-31 13:51:38 -08:00
Sean Stangl
827c6ac92a Bug 836087 - Avoid using doubles for lastIndex in ExecuteRegExp(). r=nbp 2013-01-31 13:43:06 -08:00
Luke Wagner
e9a2d59dfe Bug 835003 - simplify generation of MTableSwitch jump tables (r=h4writer)
--HG--
extra : rebase_source : dc652a92a43e9af389f925539cfeebee70b313ea
2013-01-31 11:30:35 -08:00
Joey Armstrong
278deb0097 bug 830351: remove unused .mkdir.deps rule and clenaup cosmetic makefile problems 2013-01-31 14:55:30 -05:00
Hannes Verschore
04afae0fc5 Bug 836102: Minimal truncate analysis for constants, r=mjrosenb 2013-01-31 19:36:58 +01:00
Brian Hackett
b7716a9328 Bug 836623 - Fix unnecessary growElements() call, bogus assert during object densification, r=billm. 2013-01-31 10:37:25 -07:00
Jon Coppeard
76b722da5a Bug 836312 - GC: Sweep IonCode incrementally r=billm 2013-01-31 10:47:16 +00:00
Jan de Mooij
50140b4441 Bug 836255 part 1 - Refactor some arguments-related functions to use AbstractFramePtr. r=dvander 2013-01-31 11:50:07 +01:00
Jan de Mooij
77beb7506c Bug 835277 part 3 - Call IonFrameIterator::script in GetTopIonJSScript. r=nbp 2013-01-31 11:50:04 +01:00
Jan de Mooij
c199d8e4e6 Bug 835277 part 2 - Fix hasBreakpointsAt. r=bhackett 2013-01-31 11:50:01 +01:00
Jan de Mooij
ee7cb3966e Bug 835277 part 1 - Convert CallObject::createForStrictEval to use AbstractFramePtr. r=djvj 2013-01-31 11:49:55 +01:00
Mike Hommey
5ff8037f5d Bug 836161 - Fix gcc version test from bug 833627 to be properly quoted by m4. r=ted 2013-01-31 10:32:18 +01:00
Boris Zbarsky
4386972397 Add a test for WebIDL-weakmap stuff in addition to XPConnect-weakmap. No bug, no review
--HG--
rename : js/xpconnect/tests/mochitest/test_bug655297.html => js/xpconnect/tests/mochitest/test_bug655297-1.html
rename : js/xpconnect/tests/mochitest/test_bug655297.html => js/xpconnect/tests/mochitest/test_bug655297-2.html
2013-01-31 01:04:48 -05:00
Bill McCloskey
8d37ebbb0a Bug 830855 - Remove JSScript::principals (sort of) (r=luke)
--HG--
extra : rebase_source : 584a12fbae35888d7c6f66dc0e0d403af7cc0fe0
2013-01-30 18:10:46 -08:00
Jesse Ruderman
9c27a46764 Bug 778085 followup - fix typo in help message. DONTBUILD 2013-01-30 17:48:15 -08:00
Gary Kwong
bb23e9ad9e Bug 836531 - Change getBuildConfiguration to output more information. r=sfink 2013-01-30 15:01:35 -08:00
Bill McCloskey
5380e03c22 Bug 835966 - Refactor {cx,rt,allocator}->malloc_ (r=luke) 2013-01-30 12:22:04 -08:00
Boris Zbarsky
194b6a08f7 Bug 829867. Unpref PaintRequest and Screen WebIDL bindings and remove some cruft from quickstubs. r=peterv
nsIDOMCharacterData and nsIDOMText quickstubs are not needed after bug 826703.

nsIDOMRect quickstubs haven't been needed since bug 824970 landed.

nsCSSPropertiesQS has been unused since bug 801083 at least.

The various includes being removed are either fully on WebIDL now or using WebIDL quickstubs.
2013-01-29 12:52:09 -05:00
Boris Zbarsky
27b20c21af Bug 824589. Convert XULElement to WebIDL. r=peterv
The assertions in nsINode and nsWrapperCache are to eagerly catch
failures to override those methods.

The classinfo change for XULTreeBuilder is needed because one of those
is returned via an nsIXULTemplateBuilder attribute on XULElement.
Alternately, I could mark it notflattened in Bindings.conf, but Enn
said he prefers this anyway.

The change to the QI impl in BindingUtils is needed because when
XPConnect converts an IID from C++ to JS it makes is an nsJSID, not an
nsJSIID.  We've run into this before, sadly.

I removed "id" from nsIDOMXULElement because it's already on Element.
I suppose I could have left it there, but this seems cleaner.

The nsJSIID::HasInstance changes are needed to support XBL-implemented
interfaces.  Sadly, this does mean that if the underlying object QIs
to something but we didn't put those props on the WebIDL we'll end up
testing true for instanceof but not exposing the props.  I don't see
an obviously better way.  We should work on killing off uses of
"instanceof someinterface".

The browser.js change is needed to avoid throwing exceptions during
browser-chrome tests that are now getting reported because our
swapFrameLoaders is no longer an XPConnect method.
2013-01-29 12:51:55 -05:00
Ryan VanderMeulen
d999b4efd2 Merge m-c to inbound. 2013-01-30 08:06:05 -05:00
Ryan VanderMeulen
517ae2f99a Merge the last PGO-green inbound changeset to m-c. 2013-01-30 08:05:31 -05:00
Tom Schuster
48de7b61ce Bug 836000 - IonMonkey: Don't clobber out register in loadFromTypedArray. r=h4writer 2013-01-30 13:45:24 +01:00
Brian Hackett
3aaf4de3c0 Bug 836138 - Fix a couple double array correctness bugs, r=jandem. 2013-01-30 04:31:07 -07:00
Gregory Szorc
cff9cbca5e Merge mozilla-central into build-system 2013-01-29 20:27:15 -08:00
Brian Hackett
2d849cea23 Bug 835102 - Convert sufficiently sparse objects back to using dense elements, r=billm. 2013-01-29 19:50:41 -07:00
Gregory Szorc
bddcff9d72 Bug 784841 - Part 6: Move some functions from ConfigStatus to mozbuild; r=ted
--HG--
rename : build/tests/unit-ConfigStatus.py => python/mozbuild/mozbuild/test/backend/test_configenvironment.py
2013-01-29 06:24:24 -08:00
Terrence Cole
a3e6adc9fa Bug 706885 - Rework Rooting APIs to preserve all available type information; r=billm 2013-01-28 18:25:23 -08:00
Boris Zbarsky
209081f37e Bug 829867. Unpref PaintRequest and Screen WebIDL bindings and remove some cruft from quickstubs. r=peterv
nsIDOMCharacterData and nsIDOMText quickstubs are not needed after bug 826703.

nsIDOMRect quickstubs haven't been needed since bug 824970 landed.

nsCSSPropertiesQS has been unused since bug 801083 at least.

The various includes being removed are either fully on WebIDL now or using WebIDL quickstubs.
2013-01-29 12:52:09 -05:00
Boris Zbarsky
8231be64a0 Bug 824589. Convert XULElement to WebIDL. r=peterv
The assertions in nsINode and nsWrapperCache are to eagerly catch
failures to override those methods.

The classinfo change for XULTreeBuilder is needed because one of those
is returned via an nsIXULTemplateBuilder attribute on XULElement.
Alternately, I could mark it notflattened in Bindings.conf, but Enn
said he prefers this anyway.

The change to the QI impl in BindingUtils is needed because when
XPConnect converts an IID from C++ to JS it makes is an nsJSID, not an
nsJSIID.  We've run into this before, sadly.

I removed "id" from nsIDOMXULElement because it's already on Element.
I suppose I could have left it there, but this seems cleaner.

The nsJSIID::HasInstance changes are needed to support XBL-implemented
interfaces.  Sadly, this does mean that if the underlying object QIs
to something but we didn't put those props on the WebIDL we'll end up
testing true for instanceof but not exposing the props.  I don't see
an obviously better way.  We should work on killing off uses of
"instanceof someinterface".

The browser.js change is needed to avoid throwing exceptions during
browser-chrome tests that are now getting reported because our
swapFrameLoaders is no longer an XPConnect method.
2013-01-29 12:51:55 -05:00
Luke Wagner
a64cc4de99 Bug 835578 - IonMonkey: fix visitCompare/visitTest to not useRegister on constant operands (r=dvander) 2013-01-29 08:29:51 -08:00
Luke Wagner
915ba5dd0b Bug 835449 - fix StackIter corner case where evalInFrame fails to pop native calls (r=jandem)
--HG--
extra : rebase_source : 37d60303aee651ef0dbc28b63994b811507e6a07
2013-01-28 10:53:49 -08:00
Nils Maier
4f144469fc Bug 761552 - Part 2: Avoid external JS strings in XPCConvert. r=bholley
XPCConvert needs to convert some string types to JS strings in order to call
from C++ into JS land. Make those converted JS strings allocate the buffers
from the JS compartment memory pool, instead of making them external and
allocated from the main heap.
This improves memory reporting and may also influence memory fragmentation
and/or performance.
2013-01-29 10:50:04 -05:00
Hannes Verschore
a90c15eada Bug 835178: IonMonkey: Enable inlining of functions containing JSOP_SETARG, r=nbp 2013-01-29 16:26:11 +01:00
Boris Zbarsky
2379ea179f Bug 829252 followup. Now that WindowRoot has a wrapper cache, we need to be able to deal with ConstructSlimWrapper on things that have no classinfo. r=peterv pending, but landing on CLOSED TREE now to fix orange. 2013-01-29 10:18:05 -05:00
Boris Zbarsky
bb1df3a788 Bug 834877 part 3. Add faster DOMString-to-JS conversion code. r=peterv 2013-01-29 09:42:14 -05:00
Brian Hackett
fd448d2a8b Bug 835496 - Don't try to fix the types for object initializers with dense elements, r=jandem. 2013-01-29 07:03:38 -07:00
Boris Zbarsky
60309d1fc9 Bug 829252 part 4. Turn on the EventTarget quickstubs. r=peterv 2013-01-29 08:44:01 -05:00
Jon Coppeard
88d0bf3878 Bug 835385 - Also, ensure no GC during Ion compilation r=billm 2013-01-28 18:21:11 +00:00
Jon Coppeard
c87e52e320 Bug 835385 - GC: Fix for some jit test rooting analysis failures r=terrence 2013-01-28 16:43:07 +00:00
Jon Coppeard
fdf03d711e Bug 834766 - Also root some out params r=sphink 2013-01-28 16:41:30 +00:00
Jon Coppeard
05f88cbed6 Bug 834766 - GC: Fix some more rooting issues found by static analysis r=sphink 2013-01-25 17:48:07 +00:00
Jeff Walden
891be940c1 Bug 786135 - Make parseInt(stringStartingWith0ButNot0xOr0X) parse as decimal to comply with ES5. r=dmandelin
--HG--
rename : js/src/tests/js1_8_5/extensions/parseInt-octal.js => js/src/tests/ecma_5/Global/parseInt-default-to-decimal.js
extra : rebase_source : 824fe7e00fbb6ffa38ebba5c43f6c0801f387309
2013-01-28 13:08:32 -08:00
Norbert Lindenberg
10ec616451 Bug 769872 - Add self-hosted JavaScript core of Intl constructors Collator, NumberFormat, DateTimeFormat (part 3). r=jwalden
--HG--
extra : rebase_source : 9029f8b5d03c08a5c56c38934c12e4e6458c1755
2013-01-28 14:03:44 -08:00
Jeff Walden
9f1d235f1e Bug 834988 - Clarify that all the DST-offset methods take a time in UTC seconds, and that the internal fields store UTC values. Also add documentation comments by the related methods. r=dmandelin
--HG--
extra : rebase_source : ee848c192ddafe87cdb8388f0d2b81a0d5e4be9a
2013-01-25 16:50:24 -08:00
Jeff Walden
c6b1acb9c6 Bug 834988 - Invert the meaning of LocalUTCDifferenceSeconds and rename it to UTCToLocalStandardOffsetSeconds. This gives it the same sign/semantics (if different units) as the -8 in UTC-8, and it makes it consistent with ES5's LocalTZA concept. Also add an interface comment with two examples of its behavior. r=dmandelin
--HG--
extra : rebase_source : 3e56a9fcc590c6b42c2782bd30431db8f3464825
2013-01-25 15:46:10 -08:00
Brian Hackett
33f74ff1b3 Bug 833898 - Allow converting mixed arrays of ints and doubles to uniform doubles, r=jandem. 2013-01-29 16:20:03 -07:00
Boris Zbarsky
ad93d158ff Bug 835417 part 3. Add the notion of aliasing DOM stuff to MIR and flag MGetDOMProperty with the right alias set if it's pure. r=jandem 2013-01-29 17:53:53 -05:00
Boris Zbarsky
89d5ad423c Bug 835417 part 2. Implement WebIDL parser and codegen support for marking things pure. r=peterv 2013-01-29 17:53:53 -05:00
Nathan Froyd
cd6a6d521a Bug 835358 - remove unused member nsXPConnect::mScopes; r=bholley
--HG--
extra : rebase_source : 7c5c2152666c9b8eb8860db4d7e39c274f772b5b
2013-01-28 10:37:57 -05:00
Hannes Verschore
0848e86384 Bug 824473: Add testcases for the inlined funapply, r=testcase 2013-01-29 02:29:08 +01:00
Brian Hackett
388669f99c Bug 835140 - Don't treat lambdas inside other functions or loops as run-once, r=luke. 2013-01-28 17:24:35 -07:00
Terrence Cole
ad6be46fcc Bug 835157 - Remove the unused createWithProto methods; r=Waldo
--HG--
extra : rebase_source : 4c26c36c313d5fe551f8e6e607a3ed6f1ecd6fa9
2013-01-27 10:37:20 -08:00
Sean Stangl
91ab29a936 Bug 749358 - Inline MUse storage. r=luke 2013-01-28 15:30:50 -08:00
Terrence Cole
d51fb2712c Bug 706885 - Add a pointer to the JSRuntime on the gc::Chunk; r=billm
--HG--
extra : rebase_source : f6ac0b0db7791b365d0e63f6fea2e5f451964453
2013-01-23 12:22:36 -08:00
Boris Zbarsky
66e49b02aa Back out bug 824589 (rev 22695cac3896) on suspicion of Ts regression 2013-01-29 17:18:06 -05:00
Boris Zbarsky
775587776a Back out bug 829867 (rev 2a0424e177c1) on suspicion of Ts regression 2013-01-29 17:17:37 -05:00
Hannes Verschore
de69ca40ba Bug 835877: Increase inline depth for small functions, r=dvander 2013-01-29 22:17:50 +01:00
Peter Van der Beken
4d5c0010c4 Fix for bug 715156 (JS code no longer work for select options as array in a Greasemonkey script (index and name setters don't really work via XrayWrapper)). r=bz.
--HG--
extra : rebase_source : 2ced75b6d49dbab5afe9a6ce7c322bf18a634026
2013-01-14 11:29:48 +01:00
Bobby Holley
155106260a Bug 830500 - Implement JS_CharsToId. r=Waldo 2013-01-28 14:46:10 +01:00
Ed Morley
cb0790a0ed Backout 3985cb4da6b6, 55ab9f026dc4, f7ead00b7654 and e2108ea96ae5 for a variety of build failures on a CLOSED TREE 2013-01-28 12:19:12 +00:00
Bobby Holley
226296a2ab Bug 830500 - Implement JS_CharsToId. r=Waldo 2013-01-28 12:44:04 +01:00
Ed Morley
bc0702d0d7 Backout f3c145bd1dd2 & 5075690572a9 for OS X startup failures 2013-01-28 11:08:21 +00:00
Hannes Verschore
53cd1ed9e0 Bug 824473: OOM fixes for IonBuilder, r=jandem 2013-01-27 23:40:01 +01:00
Peter Van der Beken
a6ea06e0ab Fix for bug 715156 (JS code no longer work for select options as array in a Greasemonkey script (index and name setters don't really work via XrayWrapper)). r=bz.
--HG--
extra : rebase_source : 6bc420bd917e00a49dc5f6f3de13ff9e290c9580
2013-01-14 11:29:48 +01:00
Kyle Machulis
2ff0659932 Bug 777271 - Re-implement nsIDOMCallEvent using event implementation codegen. r=bent,vicamo,hsinyi 2013-01-28 15:39:50 +08:00
Benjamin Peterson
0b8009e52c Add test for bug 831846. 2013-01-27 21:43:04 -05:00
Matt Brubeck
3edb33b536 Bug 792509 - Allow Metro builds on non-Windows platforms [r=jimm] 2013-01-26 23:45:27 -08:00
Bill McCloskey
4447e28755 Bug 824473 - Fix build errors (r=bustage) 2013-01-27 14:38:43 -08:00
Bill McCloskey
f02075dde3 Bug 751618 - Zone renaming comment fix (r=jonco) 2013-01-27 13:51:41 -08:00
Bill McCloskey
9880d9be50 Bug 751618 - Zone renaming part 9 (r=terrence) 2013-01-27 13:51:41 -08:00
Bill McCloskey
4668793972 Bug 751618 - Zone renaming part 8 (r=terrence) 2013-01-27 13:51:41 -08:00
Bill McCloskey
0e1f799e7b Bug 751618 - Zone renaming part 7 (r=jonco) 2013-01-27 13:51:41 -08:00
Bill McCloskey
500a4cf0cc Bug 751618 - Zone renaming part 6 (r=terrence) 2013-01-27 13:51:41 -08:00
Bill McCloskey
a8af377c9a Bug 751618 - Zone renaming part 5 (r=jonco) 2013-01-27 13:51:40 -08:00
Bill McCloskey
ada638a3a5 Bug 751618 - Zone renaming part 4 (r=terrence) 2013-01-27 13:51:40 -08:00
Bill McCloskey
539bea171f Bug 751618 - Zone renaming part 3 (r=jonco) 2013-01-27 13:51:40 -08:00
Bill McCloskey
20da154356 Bug 751618 - Zone renaming part 2 (r=jonco) 2013-01-27 13:51:35 -08:00
Bill McCloskey
6949e36ae6 Bug 751618 - Zone renaming part 1 (r=jonco) 2013-01-27 12:37:18 -08:00
Bill McCloskey
3983fc5f91 Bug 751618 - Fix assertions in ResetIncrementalGC (r=jonco) 2013-01-27 12:35:42 -08:00
Bill McCloskey
8544cb4e1d Bug 751618 - Add js/GCAPI.h (r=terrence) 2013-01-27 12:35:12 -08:00
Hannes Verschore
faf7655d26 Bug 824473: Nits + fix for ARM builds, r=dvander 2013-01-27 23:11:56 +01:00
Hannes Verschore
0d0c839486 Bug 834500: IonMonkey: Don't forbid ion compilation when JM is disabled and bouncing between IM and the interpreter, r=nbp 2013-01-27 22:51:49 +01:00
Hannes Verschore
4993f9de55 Bug 824473: IonMonkey: Enable inlining of JSOP_FUNAPPLY, r=dvander 2013-01-27 22:51:41 +01:00
Hannes Verschore
f742afbc26 Bug 824473: IonMonkey: Remove use of monitoredTypesReturn to decide when inlining calls, r=dvander 2013-01-27 22:51:32 +01:00
Hannes Verschore
580faed73e Bug 824473: IonMonkey: Structural changes to IonBuilder, r=dvander 2013-01-27 22:51:26 +01:00
Benjamin Peterson
8e5f088c9f Bug 831846 - Enter a script global's compartment before running the expression decompiler on it. r=billm 2013-01-27 15:16:01 -05:00
Brian Hackett
adb8388228 Bug 832364 - Generate optimized paths for element accesses on native objects, r=jandem. 2013-01-26 13:21:27 -07:00
Jan de Mooij
2cf5db424f Bug 825379 - Fix JSContext::findVersion to work with Ion frames. r=dvander 2013-01-26 16:40:06 +01:00
Tom Schuster
9d7b9480f4 Bug 830787 - Move jsscope to vm/Shape. r=jorendroff
--HG--
rename : js/src/jsscopeinlines.h => js/src/vm/Shape-inl.h
rename : js/src/jsscope.cpp => js/src/vm/Shape.cpp
rename : js/src/jsscope.h => js/src/vm/Shape.h
2013-01-26 16:03:19 +01:00
Brian Hackett
eeae3d8a69 Bug 834826 - Eliminate or refactor various unnecessary stack roots, r=terrence. 2013-01-26 07:42:20 -07:00
Jeff Walden
d16ab51821 Bug 830257 - Compute the local time zone offset, not including any offset due to DST, in a different, hopefully more correct, way. r=dmandelin 2013-01-25 22:02:55 +00:00
Sean Stangl
8f2307fcc4 Bug 834762 - yarr/MatchResult.h:58:44: warning: overflow in implicit constant conversion [-Woverflow]. r=warning-spam
From 29c3e8f8ef230a27d2bce0016094b43f812befe0 Mon Sep 17 00:00:00 2001
---
 js/src/yarr/MatchResult.h | 2 +-
 js/src/yarr/YarrJIT.cpp   | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
2013-01-25 16:34:08 -08:00
Nicholas D. Matsakis
aa174a5dd7 Bug 825714 followup: Silence various warnings and make various style corrections. r=billm 2013-01-25 14:09:25 -08:00
Joey Armstrong
ee2eada8c4 bug 747540: fix dependencies for java build 2013-01-25 15:22:13 -05:00
Kannan Vijayan
6360c65059 Bug 834447 - Make Ion entry use AbstractFramePtr instead of StackFrame*. r=sstangl 2013-01-25 11:34:47 -05:00
Jan de Mooij
a9f2829ff4 Bug 833817 part 3 - Replace JSStackFrame with JSAbstractFramePtr. r=luke 2013-01-25 09:49:29 +01:00
Jon Coppeard
6ecb789968 Bug 815542 - crash in IncrementalCollectSlice r=billm
--HG--
extra : rebase_source : d751b3684f6461b094278aa39508417928c2b660
2013-01-25 09:56:04 +00:00
Bobby Holley
800db35b78 Bug 833856 - Handle errors better in EvaluateString. r=bz
This bug happens when we take the !useSandbox path. Basically, when the code
throws, we can end up with garbage in *aRetValue while still returning true
from EvaluateString. It looks like the convention is for these kind of eval
functions to return success even for invalid code, so lets just make sure we
check things a bit better.

This crashtest is kind of half-baked in the sense that it doesn't actually
crash without the rest of the patch. But the testcase here involves a lot of
undefined behavior (what ends up getting left in *aRetValue) during a call
to window.open (which spins the event loop, etc). I already sunk about half
an hour into trying to make it crash, so I'm just going to go with this for
now.
2013-01-25 11:17:40 +01:00
Nicholas D. Matsakis
29d4b19e90 Bug 825714: Refactor JS allocation routines to enable allocation on parallel
threads, and move various ion fields into per-thread-data. r=billm

More detailed:
- A new routine JSObject::parExtendDenseArray() that permits parallel code to
  allocate a dense array on its own Allocator.
- Create an allocation path in the GC for loading a fresh arena as needed
  (ArenaLists::parallelAllocate()).
- Ensure that if GC is triggered during parallel execution, parallel execution
  is aborted and the request is deferred until parallel execution terminates.
- Updates to the ForkJoin/ThreadPool so that they create their own Allocators
  as well as other misc API changes.
- Moves some of the ion-related fields (e.g., |ionTop|) into perThreadData.
- Remove out-of-date malloc tracking fields.
2013-01-24 21:12:44 -08:00
Ryan VanderMeulen
0ec8f1851b Merge m-c to inbound. 2013-01-24 22:47:56 -05:00
Makoto Kato
39914ff1f5 Bug 830676 - YarrJIT is broken on Win64 after landing bug 820124. r=sstangl 2013-01-25 12:09:54 +09:00
Ryan VanderMeulen
bc26304729 Merge the last PGO-green inbound changeset to m-c. 2013-01-24 20:59:19 -05:00
Mike Hommey
ad2788a617 Bug 834429 - Re-export MACOSX_DEPLOYMENT_TARGET after bug 833627. r=ted 2013-01-24 22:11:28 +01:00
Brian Hackett
08de32891b Bug 834242 - Reduce cost of exact stack rooting during property reads, r=terrence. 2013-01-24 20:18:34 -07:00
Ryan VanderMeulen
2a6786e231 Merge m-c to inbound. 2013-01-24 21:09:59 -05:00
Jon Coppeard
8183eae08b Bug 833396 - Fix some rooting issues found by static analysis r=sphink 2013-01-21 17:41:49 +00:00
Nicholas Nethercote
6414ad3a6b Bug 833151 - Avoid unnecessary copy of CompileOptions. r=benjamin.
--HG--
extra : rebase_source : 542536e11e35f31bec2c5811bcfc56e491d6358a
2013-01-23 18:14:38 -08:00
Steve Fink
5f0dd03670 Bug 831961 - fix jsapi-tests rooting hazards from static analysis. r=terrence
https://tbpl.mozilla.org/?tree=Try&rev=3938c588e1d1

--HG--
extra : rebase_source : c566e3137bca925c7c4789bcd477d0cd85fc366e
2013-01-17 11:45:51 -08:00
Brian Hackett
5c1084be65 Bug 832972 - Reduce cost of exact stack rooting during name operations, clean up some GC allocation methods, r=terrence. 2013-01-23 15:22:10 -07:00
Daniel Holbert
78fd9f0665 Back out 06d0d20fbaf1 (bug 825379) for apparently causing bc perma-orange. 2013-01-23 13:07:06 -08:00
Brian Hackett
ee84757fde Bug 832360 - Store an object's class as part of its type, r=jandem. 2013-01-23 12:57:55 -07:00
Jan de Mooij
8852486dba Bug 825379 - IonMonkey: Differential Testing: Getting different output w/without --ion-eager with forEach. r=dvander 2013-01-24 14:10:53 -05:00
Jason Orendorff
a40a589454 Bug 790629 - Fix the value of this in generator-expressions. r=Waldo. 2013-01-07 12:22:26 -06:00
Jason Orendorff
3679accfd3 Bug 828466 - Remove some ParseNode morphing. Part 3, ParseNode::append. r=Waldo. 2013-01-15 18:57:26 -06:00
Jason Orendorff
f51e0f4e23 Bug 828466 - Remove some ParseNode morphing. Part 2, empty statements. r=Waldo with apparently successful fuzz-testing. 2013-01-15 18:57:26 -06:00
Jason Orendorff
10cddcd678 Bug 828466 - Remove some ParseNode morphing. Part 1, FoldConstants. r=Waldo. 2013-01-15 16:12:15 -06:00
Jason Orendorff
6abfa90236 Bug 825699 - jsapi-tests: Silence two bogus error reports to stderr. r=Waldo. 2013-01-07 12:22:25 -06:00
Eddy Bruel
3b181cb142 Bug 568953 - Fix for module object; r=benjamin 2013-01-23 16:58:50 +01:00
Brian Hackett
1b2896bed2 Bug 832578 - Tweaks to improve compilation of element accesses, r=dvander. 2013-01-23 08:43:40 -07:00
Jacek Caban
df46d43449 Bug 831707 - Use -static-libgcc and -static-libstdc++ on mingw r=glandium 2013-01-23 16:04:34 +01:00
Ryan VanderMeulen
bd08b980a7 Merge m-c to inbound. 2013-01-24 07:09:10 -05:00
Mike Hommey
4d9f2c54bd Bug 780561 - Remove now unused bits of the packaging scripts. r=ted 2013-01-23 11:23:15 +01:00
Jon Coppeard
3c1f76d1c6 Bug 833340 - Fix a couple of jittests failing with rooting analysis r=terrence 2013-01-22 17:03:05 +00:00
Jon Coppeard
72831e79be Bug 831750 - GC: testConservativeGC jsapi test fails with rooting analysis r=terrence a=nonlibxul 2013-01-21 11:00:29 +00:00
Jan de Mooij
d61c628e12 Bug 830885 - Factor out interpreter/debugger exception unwinding code. r=jorendorff a=nonlibxul 2013-01-22 09:46:52 +01:00
Jan de Mooij
b925fe9986 Bug 832950 - Remove frame annotations from SpiderMonkey. r=luke a=nonlibxul 2013-01-22 09:34:17 +01:00
Brian Hackett
ae02ae1919 Bug 832329 - Improve analysis of definite properties for 'new' scripts, r=jandem, a=nonlibxul. 2013-01-21 17:10:21 -07:00
Hannes Verschore
d5a1119abc Bug 831087 - IonMonkey: Differential Testing: Getting different output w/without --ion-eager with /= r=mjrosenb a=nonlibxul 2013-01-21 13:26:26 -08:00
Jan de Mooij
6f41fe1cad Bug 832373 part 1 - Refactor eval-in-frame to use AbstractFramePtr. r=luke 2013-01-21 13:58:50 +01:00
Nicholas Nethercote
1d5169b3d1 Bug 394311 - Stop building with -pedantic. r=ted,dbaron.
--HG--
rename : content/svg/content/nsISVGPoint.cpp => content/svg/content/src/DOMSVGPoint.cpp
rename : docshell/test/browser/browser_bug234628-9.js => docshell/test/browser/browser_bug134911.js
rename : layout/reftests/w3c-css/submitted/values3/calc-background-image-gradient-1-ref.html => layout/reftests/css-calc/background-image-gradient-1-ref.html
rename : layout/reftests/w3c-css/submitted/values3/calc-background-image-gradient-1.html => layout/reftests/css-calc/background-image-gradient-1.html
rename : layout/reftests/w3c-css/submitted/values3/reftest.list => layout/reftests/css-calc/reftest.list
rename : layout/reftests/text/auto-hyphenation-10-ref.html => layout/reftests/text/auto-hyphenation-10.html
rename : layout/reftests/text/auto-hyphenation-8-ref.html => layout/reftests/text/auto-hyphenation-8.html
rename : layout/reftests/text/auto-hyphenation-9-ref.html => layout/reftests/text/auto-hyphenation-9.html
extra : rebase_source : 012df725d55b031ccc03d9bfcf785056d95a2ebe
2013-01-20 14:12:42 -08:00
Jon Coppeard
051f3c8c36 Bug 832363 - GC: Rooting updates to jsdate.cpp r=sphink 2013-01-18 17:36:24 +00:00
Mike Hommey
fa66112164 Bug 833253 - Don't rely on eval during recursive expansion for nsinstall_is_usable. r=ted 2013-01-23 10:13:04 +01:00
Mike Hommey
651db16a7c Bug 833627 - Reject gcc < 4.4, and remove a few unused Xcode related variables. r=ted 2013-01-23 10:13:02 +01:00
Brian Hackett
4bd948e772 Bug 821361 - Optimize type information in closures that only run once, r=luke. 2013-01-20 02:49:21 -07:00
Brian Hackett
fc6b99d448 Bug 832425 - gcPreserveCode() should be defined when not using JS_GC_ZEAL, r=h4writer. 2013-01-19 17:30:05 -07:00
Steve Fink
57a2c2471b Bug 828753 - jsid rooting, mostly in jsinfer.*. Also switch JSObject from struct to class. r=terrence 2012-12-31 12:40:21 -08:00
Mike Hommey
34889d7845 Bug 831790 - Use the buildconfig python module for expandlibs_config. r=ted
--HG--
rename : config/expandlibs_config.py.in => config/expandlibs_config.py
rename : js/src/config/expandlibs_config.py.in => js/src/config/expandlibs_config.py
2013-01-19 09:45:50 +01:00
Brian Hackett
52e25ae69f Bug 832042 - Reduce cost of exact stack rooting during addition operations, r=terrence. 2013-01-18 20:35:08 -07:00
Bobby Holley
b7fb048ffe Bug 823348 - Tests. r=mrbkap
We tack these onto the tests from bug 812415, adding coverage for
nsExpandedPrincipal and making sure that the waivers are deep.

We also take the opportunity to check the asymmetric security
relationship between a principal and its corresponding nsEP.
2013-01-23 06:04:39 +01:00
Bobby Holley
f20eabe075 Bug 823348 - Stop checking for Xray waivers in the Xray machinery. r=mrbkap
All the casese where we want to waive should now be going through WaiveXrayWrapper.
2013-01-23 06:04:39 +01:00
Bobby Holley
c82ae67593 Bug 823348 - Replace security wrapper enumeration with a more rule-based approach. r=mrbkap 2013-01-23 06:04:39 +01:00
Bobby Holley
4b3c0f19a3 Bug 823348 - Hoist special cases to the top of WrapperFactory::Rewrap. r=mrbkap
This paves the way for more rule-based selection of wrappers in the common case.
2013-01-23 06:04:39 +01:00
Bobby Holley
6284ce3329 Bug 823348 - Move COW prototype remapping out of wrapper selection. r=mrbkap
It's pretty orthogonal, and makes the critical block more complicated than it
needs to be.
2013-01-23 06:04:39 +01:00
Bobby Holley
39970d33e6 Bug 823348 - Precompute various parameters in Rewrap. r=mrbkap
This is generally cleaner, and avoids potentially calling these functions
multiple times when we start moving this stuff around.
2013-01-23 06:04:39 +01:00
Bobby Holley
7124dc509b Bug 823348 - Use GetXrayType for content->chrome Xray wrappers. r=mrbkap
There's no reason to do this any different than we do for XOWs and such. The
only thing this might conceivably support would be certain chrome XPWNs-as-COWs.
But that would require that they forced a parent in precreate without being
flagged as DOM objects in classinfo. And it's not clear why we'd want to support
that. And we're generally moving away from COWs anyway.
2013-01-23 06:04:39 +01:00
Bobby Holley
1aedd25af4 Bug 823348 - Use EnsureCompartmentPrivate In Rewrap and stop checking for null. r=mrbkap 2013-01-23 06:04:39 +01:00
Bobby Holley
72ddba04a7 Bug 823348 - Flip off the wantXrays for chrome sandboxes. r=mrbkap
wantXrays means that the sandbox wants Xray wrappers even when accessing same-
origin content. The default is true, which Blake says has something to do with
GreaseMonkey and days of old.

This flag never had an effect for chrome, because the chrome->chrome case always
short-circuited to &CrossCompartmentWrapper::singleton. But once we start
respecting the flag as a general-purpose indicator that Xrays should be applied
same-origin, we need to either add a special case in Rewrap or make the flag reflect
reality. The latter seems cleaner and more sane.

However, things are complicated by the fact that there's also a completely different,
orthogonal usage, whereby setting wantXrays to false implicitly waives Xray on the
returned sandbox _and_ on any results returned from evalInSandbox. This is just nuts.
The former can be accomplished by callers manually using .wrappedJSObject, and the
latter by having EvalInSandbox transitively apply waivers from their sandbox arguments.

I've updated the documentation on the MDN page so that it only describes the
reasonable usage. The next step is to get rid of the crazy behavior. I think the
best path of migration is to have wantXrays: false keep implicitly waiving, but
waive return values from EvalInSandbox based on whether the argument was waived. This
patch does that.
2013-01-23 06:04:39 +01:00
Bobby Holley
33983c1d00 Bug 823348 - Make NNXOWs use an explicitly opaque Policy. r=mrbkap
There's no reason to be doing a dynamic check here, given that the JSClasses
will never match. Lets be explicit and safe.
2013-01-23 06:04:38 +01:00
Bobby Holley
165e39b43e Bug 823348 - Do a better job of lying about the holder and make assertions fatal. r=mrbkap
I noticed this nonfatal assertion firing, unrelated to my patches. Leaking
the holder is not so great. Let's fix this for real.
2013-01-23 06:04:38 +01:00
Bobby Holley
ddf7e9edc1 Bug 823348 - Remove broken and unused __scriptOnly__ check. r=mrbkap
__scriptOnly__ is unused on mxr and addons-mxr. Morevoer, the current
implementation is totally broken, because we check for NNXOW, which only
happens when a random content JS object ends up in some other cross-origin
scope (via addons, presumably), whereas chrome objects use ChomeObjectWrapper.

I'm soon going to replace SCRIPT_ACCESS_ONLY with checked unwrapping, and mark
all COWs as unsafe to unwrap (see bug 821573 and bug 658909). So let's just kill
this thing here.
2013-01-23 06:04:38 +01:00
Bobby Holley
d66093b809 Bug 823348 - Don't set universalXPConnectEnabled for chrome compartments. r=mrbkap
There's a browser-chrome test that does this, which means that _all_ subsequent
browser-chrome tests inherit it. So depending on the ordering of cases in
WrapperFactory, we might end up using a CrossCompartmentWrapper rather than an
XrayWrapper, meaning that stuff like nodePrincipal doesn't work anymore.

The semantics of UniversalXPConnect are now entirely dicatated by what makes
our test suite go green. So let's not force ourselves to bend over backwards
during wrapping to handle this case. And let's fix that stupid test while
we're at it.
2013-01-23 06:04:38 +01:00
Bobby Holley
36a6df18c4 Bug 823348 - Uninline UniversalXPConnect management. r=mrbkap
Every time the layout of CompartmentPrivate changes, I forget to rebuild in
caps/ and spend half an hour wondering what the heck is going on. :-(
2013-01-23 06:04:38 +01:00
Ehsan Akhgari
16e89b722a Bug 833631 - Unprefix mozAudioContext; r=roc
--HG--
extra : rebase_source : 3c477a97ea842a806f6fad6f5c3a81d6e50b27c3
2013-01-22 20:12:21 -05:00
Eddy Bruel
e1f5f5b9e2 Bug 568953 - Fix for build warning; r=Ms2ger 2013-01-21 19:02:41 +01:00
Bill McCloskey
ec777c5805 Bug 833163 - Remove bogus scheduledForDestruction assertion (r=luke) 2013-01-22 14:15:25 -08:00
Daniel Holbert
349a03db26 Bug 833405: Don't treat deprecated-declarations build warnings as errors, in --enable-warnings-as-errors builds. r=ted 2013-01-22 13:28:16 -08:00
Justin Lebar
8142ddc91e Bug 832620 - Skip the GCC <= 4.4 version check when building with clang. r=glandium 2013-01-22 16:14:27 -05:00
Justin Lebar
8819b682a4 Bug 832623 - Disable -fstrict-aliasing in the JS engine for gcc <= 4.4 on all platforms, not just Linux/Android. r=glandium 2013-01-22 16:14:27 -05:00
Jan de Mooij
0259f0ae64 Bug 832373 part 2 - Refactor initExecuteFrame to use AbstractFramePtr. r=luke a=nonlibxul 2013-01-22 14:33:43 +01:00
Jan de Mooij
63ce894f6d Bug 831754 part 2 - Add patchable call instruction, x86/x64 part. r=dvander a=nonlibxul 2013-01-22 14:33:36 +01:00
Jan de Mooij
1a46e13a3a Bug 831754 part 1 - Add patchable call instruction, ARM part. r=mjrosenb a=nonlibxul 2013-01-22 14:33:07 +01:00
Jan de Mooij
e4ecfdd0b6 Bug 833817 part 1 - Remove unused JSStackFrame API functions. r=luke
--HG--
extra : rebase_source : 95bf7acfa40ce4c70120a65bd3b15748da457dbc
2013-01-24 20:39:24 +01:00
Bill McCloskey
486acaf684 Remove LIFO invariants from the enumerator list (bug 831626, r=billm).
--HG--
extra : rebase_source : f3ff97bee7484820c45be04c0688a9c8d51bbe7f
2013-01-24 11:17:41 -08:00
Jason Orendorff
7d6b00e061 Fix up a recently busted test that apparently does not run on tinderbox. No bug#, no_r=me. 2013-01-24 13:00:20 -06:00
Nicolas B. Pierron
2dc69ff68b Bug 830086 - Do not add read property stubs for proxies. r=djvj 2013-01-24 10:32:01 -08:00
Benjamin Smedberg
4ae6c6425a Bug 833863 - Don't install js/src/ds/SplayTree.h, put MFBT first in the js/src/Makefile.in VPATH, r=khuey 2013-01-24 11:34:58 -05:00
Luke Wagner
bebb8515b0 Bug 834108 - avoid O(n^2) chunk-searching in LifoAlloc::ensureUnusedApproximate (r=dvander)
--HG--
extra : rebase_source : d3cb159978d10e6f74984d8556784081b2c940b9
2013-01-24 14:36:17 -08:00
Terrence Cole
85b0b5a254 Bug 803182 - Make the js shell stack limit match the browser's; r=dmandelin
This should help ensure that recursion errors found in the shell actually
represent real errors. This also attempts to account for the difference in size
between debug and optimized builds to the size of js::Interpret's stack frame.
2012-10-29 13:36:41 -07:00
Luke Wagner
49c211df20 Bug 832094 - make the top-level function ParseNode always be a PNK_FUNCTION (r=jorendorff)
--HG--
extra : rebase_source : f6af6da88e185ccc62152ef1013dfeba1418cbc7
2012-11-28 16:33:00 -08:00
Luke Wagner
f7323d0f91 Bug 832085 - Never bail in truncated LModI/LModPowTwoI/LModMaskI (r=hv1989)
--HG--
extra : rebase_source : efa4ec10c37fdec3861ac5097db7c5b5c2ade63b
2012-12-07 18:54:05 -08:00
Luke Wagner
fd2cdad54e Bug 832085 - Simplify LModI codegen (r=hv1989)
--HG--
extra : rebase_source : a4790f4036478b274f461bcf5052c7f88dd32889
2012-12-07 18:54:05 -08:00
Luke Wagner
3749cbcb3b Bug 832085 - Never bail in truncated LDivI (r=hv1989)
--HG--
extra : rebase_source : 1e03a172ddd450a2d63822b2a0522efc6429fa76
2012-12-07 18:54:05 -08:00
Luke Wagner
7dfc3008fd Bug 832079 - IonMonkey: common out MDiv lowering (r=dvander)
--HG--
extra : rebase_source : 5afa690efc26a859ceb980dddfeaa27a505cf9d6
2012-12-07 18:54:05 -08:00
Luke Wagner
abe8490917 Bug 832073 - s/ScaleFromShift/ScaleFromElemWidth/ (r=dvander)
--HG--
extra : rebase_source : 113e5770c8f6c6ad67e55bdd341e79e03bb29ff9
2012-12-14 10:27:15 -08:00
Luke Wagner
e42dd44ea4 Bug 832071 - Replace custom AutoDestroyAllocator with ScopedJSDeletePtr (and rename ScopedDeletePtr to ScopedJSDeletePtr) (r=dvander)
--HG--
extra : rebase_source : 84229d3a9453d3f4aab8a84583b6e0d1e0e3a0a4
2012-11-01 21:35:21 -07:00
Luke Wagner
ca5f4b622a Bug 832070 - LTruncateDToInt32 doesn't need a snapshot (r=sstangl)
--HG--
extra : rebase_source : 0c273db1eb30aa2a51571ac31ce7d160792b61a4
2012-12-07 18:54:05 -08:00
Luke Wagner
d695bb6ba6 Bug 832065 - don't use resume point to iterate over phis (r=sstangl)
--HG--
extra : rebase_source : 0c54df0ad7fb5daba820efaa49a1d8eb7e355104
2012-11-28 15:19:39 -08:00
Luke Wagner
90c40ef9e6 Bug 832063 - unify Assembler::flush/finish (r=mrosenberg)
--HG--
extra : rebase_source : baa26470724b55df9b7945fc16f4e697a4ec703e
2012-12-20 19:12:24 -08:00
Luke Wagner
b0f73dd733 Bug 832090 - make HashMap/Set movable (r=terrence)
--HG--
extra : rebase_source : 7c6a7a0d03bf361f2ee7c853f7f07bf15841b21b
2012-11-28 15:19:39 -08:00
Benjamin Peterson
a03201b56b Bug 832151 - Make js_ErrorFormatString const. r=jorendorff
--HG--
extra : rebase_source : 4281941f6c31d5e8a5b6af1662e8f67ba722c934
2013-01-18 19:35:37 -05:00
Terrence Cole
db32ef9d0d Bug 832489 - Un-bitrot the post barrier verifier; r=billm
--HG--
extra : rebase_source : 2c385bcc55f952dc7795c8770af6faeafb172ee8
2013-01-18 10:04:17 -08:00
Tom Schuster
ac9cdea279 Bug 830590 - GC: ArrayToIdVector's trapName needs to be a Handle. r=terrence 2013-01-18 22:44:52 +01:00
Tom Schuster
506cc3991b Bug 799602 - Update JS Unicode support to 6.2.0. r=jwalden 2013-01-18 22:44:46 +01:00
Steve Fink
380ecf9335 Backed out changeset fce4e0f8a553 (bug 828753) for breaking windows warnings-as-errors (stop adding JSObject forward decls, please!) 2013-01-18 13:20:21 -08:00
Steve Fink
01f8a5b4d8 Bug 828753 - jsid rooting, mostly in jsinfer.*. Also switch JSObject from struct to class. r=terrence
--HG--
extra : rebase_source : c8806b27677594925ad0e6b54c47af5cf17e1153
2012-12-31 12:40:21 -08:00