Commit Graph

22752 Commits

Author SHA1 Message Date
Sean Stangl
36b708b087 Backout 73f735acc3e1. 2012-10-16 13:17:59 -07:00
Sean Stangl
8edbf1fe6d Bug 801839 - Clean up jsop_getprop(). r=pierron 2012-10-16 12:07:17 -07:00
Terrence Cole
a67474905a Bug 793577 - Implement Return<T> for direct returns of unrooted GC pointers; r=billm r=njn
Return<T> wraps GC things that are returned from accessor methods.  The wrapper
helps to ensure correct rooting of the returned pointer and safe access while
unrooted.
2012-09-26 11:13:20 -07:00
Bobby Holley
2d8eff9c4b Bug 797304 - Replace MoveWrapper nonsense with orphan fixup. r=peterv 2012-10-16 15:07:54 +02:00
Bobby Holley
12bf387728 Bug 797304 - Add special handling for nuked parents in orphan fixup. r=peterv 2012-10-16 15:07:54 +02:00
Bobby Holley
f688764987 Bug 797304 - Be more aggressive when fixing up orphans. r=peterv
To make stronger assumptions, we should dig deeper on the parent chain, and also morph any slim wrappers. This is slightly slower, but not much, since this stuff only gets called for HTML documents, and the parent chains there tend to be short. Moreover, this only gets called during document.open(), where performance doesn't matter so much.
2012-10-16 15:07:54 +02:00
David Zbarsky
6d18b74223 Bug 801803: More nsresult as enum class creates warnings r=me 2012-10-16 00:26:51 -04:00
David Zbarsky
35ce833fdb Backout 368cd30cccda for bustage 2012-10-15 23:52:17 -04:00
David Zbarsky
95cf6682cb Bug 801803: More nsresult as enum class creates warnings r=me 2012-10-15 23:37:34 -04:00
Jeff Walden
7ad7a1cb1e Fix up and un-skip the test for bug 406572, following up on a comment in bug 577325. r=jorendorff
--HG--
rename : content/canvas/test/test_toBlob.html => content/canvas/test/test_mozGetAsFile.html
extra : rebase_source : 8457c42ff9ba9151f240462e06192fa4dc444a75
2012-01-29 03:03:18 -08:00
Bill McCloskey
0c1b7aeb25 Backout bug 791174 for orange 2012-10-15 17:00:39 -07:00
Bill McCloskey
e74a04d071 Bug 791174 - Clean up GC tracing code (r=jonco) 2012-10-12 11:28:44 -07:00
Benjamin Peterson
e5bf068b35 Bug 800407 followup - Fix running in browser environment. r=me
--HG--
rename : content/canvas/test/test_toBlob.html => content/canvas/test/test_mozGetAsFile.html
extra : rebase_source : 5f42dac25147c4e44cc24a0b254d047e9bac6203
2012-10-15 17:16:12 -04:00
Benjamin Peterson
7e8bc55d3f No bug - Add executable bit. rs=terrence 2012-10-15 16:15:52 -04:00
Benjamin Peterson
cc904a1f1a Bug 800407 - Remove incorrect assertion that Function constructor defined functions cannot have inherited strict mode. r=benjamin code=Nikhil Marathe
--HG--
extra : rebase_source : 54cb7adb34ea2b9825d9aadf19f896f68f5dc508
2012-10-15 16:12:41 -04:00
Ehsan Akhgari
9e0549e4d9 Backout changeset 0f0797cdb55a (bug 800106) because of Kraken regressions on Windows XP 2012-10-15 14:19:55 -04:00
Ed Morley
25701792b7 Merge mozilla-central to mozilla-inbound 2012-10-15 16:09:10 +01:00
Kannan Vijayan
a84513d064 Bug 800935 - Fix ASSERT error in generateCallGetter. (r=nbp) 2012-10-15 10:56:20 -04:00
Ryan VanderMeulen
da830356a6 Merge inbound to m-c. 2012-10-14 16:39:23 -04:00
Ehsan Akhgari
6b1b2c0d54 Bug 801344 - Make sure that JSRuntime::initSelfHosting never returns an uninitialized value; r=till 2012-10-14 11:12:03 -04:00
Ryan VanderMeulen
d37755dc84 Merge the last PGO-green inbound changeset to m-c. 2012-10-13 19:26:29 -04:00
Jan Beich
a9328aa582 Bug 801295 - mincore() call has incorrect type on tier3 (non-Linux). r=jlebar
--HG--
extra : rebase_source : 3201ac0b491a8cb40f916276e5b34a14d3122dc7
2012-10-13 09:34:00 -04:00
Andrew Quartey
464807b57d Bug 792581 - part 16: Replace LL_L2UI macro with uint32_t cast. r=ehsan 2012-10-12 13:29:11 -04:00
Justin Lebar
ddc9c65e5f Bug 798510 - Part 2: Fix bug in JSRuntime::sizeOfExplicitNonHeap() where, if execAlloc_ is null, we don't measure the stack space. rs=njn 2012-10-12 10:26:06 -04:00
Justin Lebar
9ed3356569 Bug 798510 - Part 1: Use mincore to correctly calculate js::StackSpace::sizeOfCommitted() on *nix. r=luke,njn
Previously, we assumed all memory was committed, thus vastly overstating the memory used by our stack.
2012-10-12 10:26:06 -04:00
Ed Morley
8fc88262ba Backout 3044539fec87 (bug 799465),2dbcd6d16b43 (bug 798264), f7019f73a5f0 (bug 711628), a484a3a904da, 7154061ddc00 & 7e7fc42021c1 (bug 799465) for burning 2012-10-12 14:45:38 +01:00
Ehsan Akhgari
ff1b98f157 Bug 801346 - Remove s_VOID_id from dombindings.cpp; r=bholley 2012-10-15 09:05:09 -04:00
Peter Van der Beken
12f507617a Fix for bug 799465 (Add complete support for non-nsISupports objects in new DOM bindings) - fix CC traversal and wrapper preservation. r=bz.
--HG--
rename : dom/tests/mochitest/chrome/file_bug800817.xul => dom/tests/mochitest/chrome/file_bug799299.xul
rename : dom/tests/mochitest/chrome/test_bug800817.xul => dom/tests/mochitest/chrome/test_bug799299.xul
extra : rebase_source : bed68ffa15fe5933994c33fbd94ad2b597b5b1b9
2012-09-26 20:12:15 +02:00
Aryeh Gregor
45b3e80460 Bug 799917 - Make document.characterSet always lowercase; r=bz,f=hsivonen,smontagu 2012-10-14 10:13:19 +02:00
Aryeh Gregor
2f24871362 Bug 799905 - .URL and .compatMode should be defined on Document, not HTMLDocument; r=bz 2012-10-11 14:48:31 +02:00
Jim Blandy
0a2a9c19f9 Bug 743311: Implement Debugger.prototype.findAllGlobals. r=jorendorff 2012-10-13 16:04:41 -07:00
Jim Blandy
2935cf9083 Bug 743311: Implement Debugger.prototype.onNewGlobalObject. r=jorendorff 2012-10-13 16:04:41 -07:00
Jim Blandy
db40a2832d Bug 743311: Add option to shell 'evaluate' to catch termination, for tests. r=jorendorff 2012-10-13 16:04:41 -07:00
Jim Blandy
ffc6457899 Bug 796073: Identify debuggees only by Debugger.Object instances and CCWs that can be unwrapped securely. r=luke
This patch affects behavior that a lot of debugger tests rely on; I've
tried to update the tests without losing coverage of behavior that is still
supported:

- A prior patch in this series removes uses of addDebuggee to generate
  Debugger.Object instances referring to random objects, using
  makeDebuggeeValue instead.

- The test debug/Debugger-debuggees-07.js is deleted, because it's testing
  for the very behavior we're removing. Other tests are trimmed to remove
  usage that is no longer supported.

- The new test debug/Debugger-debuggees-17.js checks that we reject objects
  that don't designate debuggees. The existing test
  Debugger-debuggees-06.js checks that non-object values are properly
  rejected.

- The new test debug/Debugger-debuggees-18.js checks that globals are
  correctly identified regardless of how we designate them.
2012-10-13 16:04:41 -07:00
Jim Blandy
b755c3b751 Bug 796073: Use Debugger.Object.prototype.makeDebuggeeValue where appropriate, not Debugger.prototype.addDebuggee. r=luke
Many tests use Debugger.prototype.addDebuggee to produce Debugger.Object
instances referring to random objects. Now we have
Debugger.Object.prototype.makeDebuggeeValue to do that, which is more
careful about wrappers. This patch changes all the existing tests that
abuse addDebuggee in this way (well, they didn't have any choice when they
were written) to use makeDebuggeeValue instead, in preparation for
tightening up addDebuggee to only accept global objects.
2012-10-13 16:04:41 -07:00
Jim Blandy
9e7714919a Bug 795119: Complain coherently when evalInGlobal{,withBindings} is passed a CCW to a global, not a global. r=luke 2012-10-13 16:04:16 -07:00
Jim Blandy
789197fda9 Bug 799272: Implement Debugger.Object.prototype.unwrap. r=luke 2012-10-13 16:04:16 -07:00
Jim Blandy
520b89592a Bug 799272: Implement Debugger.Object.prototype.global. r=luke 2012-10-13 16:04:16 -07:00
Jacek Szpot
0ebb25a85a Bug 800106: replace NS_ALWAYS_INLINE with MOZ_ALWAYS_INLINE; r=ehsan 2012-10-13 17:52:10 +02:00
Peter Van der Beken
52e6c5623d Fix for bug 799465 (Add complete support for non-nsISupports objects in new DOM bindings) - fix CC traversal and wrapper preservation. r=bz.
--HG--
extra : rebase_source : 42b0e6db4b418901f253d66e7323ba5a7cd83eea
2012-09-26 20:12:15 +02:00
Nicholas Cameron
404ba9b65d Bug 734668; reviewer's changes. r=Ms2ger,roc
--HG--
rename : content/canvas/src/nsCanvasRenderingContext2DAzure.cpp => content/canvas/src/CanvasRenderingContext2D.cpp
extra : rebase_source : 827a45dd8cc2bdc77e850e8b1d1e23e9f2f72f7d
2012-10-12 22:42:53 +13:00
Nicholas Cameron
80df51e492 Bug 734668; remove canvas quickstubs. r=Ms2ger
--HG--
extra : rebase_source : ceefaf29933c58a0605d60a599fddf31b0c1b229
2012-10-12 22:42:53 +13:00
Saurabh Anand
f902b20205 Bug 795780 - Remove unnecessary rooting in proxy methods. r=nnethercote.
--HG--
extra : rebase_source : ff593ecc2082dea276f7fe09734394dce595a20c
2012-10-14 17:46:28 +05:30
Siddharth Agarwal
377ab9eb07 Back out bug 585011 (making cl.py a pymake native command) because of bug 794490. 2012-10-14 18:54:18 -07:00
Till Schneidereit
70ab7b00c6 Bug 784400 - Move all intrinsics initialization from the globalObject->intrinsicsHolder object to the runtime's selfHostingGlobal. r=luke 2012-10-11 14:43:21 +02:00
Till Schneidereit
8cf23858fa Bug 784400 - Enable cloning of object literals within functions. r=luke 2012-10-11 11:53:02 +02:00
Till Schneidereit
9c3f9146e0 Bug 784400 - Give self-hosted code access to standard builtins. r=luke 2012-08-28 04:58:00 +02:00
Till Schneidereit
8af01ce667 Bug 784620 - Support reading self-hosted JS from a file set via environment variable. r=terrence 2012-10-11 11:19:43 +02:00
Benjamin Peterson
e4dfaf6857 Bug 779118 - Try to be more robust about waiting for compression to finish. r=luke 2012-10-13 09:24:13 -04:00
Benjamin Peterson
85e07532ff Bug 791465 - Fix processDirectives' ASI emulation. code=André Bargull r=benjamin 2012-10-13 09:23:53 -04:00