Commit Graph

19018 Commits

Author SHA1 Message Date
Andrew McCreight
ba6ec2091e Bug 714725 - use deferred release in XPC_WN_Helper_Finalize. r=bholley 2012-05-19 13:56:29 -07:00
Tom Schuster
fdccb7f2cc Bug 673499 - revert unwanted change to js/src/ETWProvider.man 2012-05-19 22:03:17 +02:00
Tom Schuster
4f04509471 Bug 707911 - Rewrite StackTraceToString to use StringBuffer. r=bhackett 2012-05-19 21:56:23 +02:00
Tom Schuster
a683829360 Bug 673499 - remove some trailing whitespace from js/src. r=jorendorff 2012-05-19 21:56:17 +02:00
Brian Hackett
aeda1d5c01 Backed out changeset 5fc7462dd394 for android orange. 2012-05-19 11:52:55 -07:00
Brian Hackett
54e8d378fb Use handles in API object hooks where possible, bug 750733. r=billm 2012-05-19 09:48:09 -07:00
Blake Kaplan
3369596da6 Bug 756584 - Crashtest for bug 720305. r=dveditz 2012-05-19 11:32:46 -04:00
Terrence Cole
3add49f6ca Bug 744579 - Implement a relocatable version of HeapPtr; r=billm
We cannot store HeapPtrs in memory that may be realloced outside of the GC.
Instead we should use the RelocatablePtr, which is more expensive, but is able
to handle being moved, or EncapsulatedPtr which requires external barriers.

--HG--
extra : rebase_source : 949c71cfdab8005339aea49437922f7f00a6f73a
2012-05-15 17:21:23 -07:00
Luke Wagner
adcf0878f8 Bug 746601 - unexpected 'arguments' read from the debugger should work like f.arguments (r=jimb) 2012-04-25 18:21:16 -07:00
Luke Wagner
d7522046db Bug 690135 - create scope objects eagerly or not at all (r=jimb)
--HG--
extra : rebase_source : 6b1e37699e0556685b1ed88fa15ab380428b6ffa
2011-12-20 17:42:45 -08:00
Benjamin Smedberg
2187798a40 Bug 734847 part 2 - treewide changes resulting from the default-infallibility of hashtables; either remove useless result checks, or use the fallible version of APIs, depending on context, r=jlebar
--HG--
extra : rebase_source : 844b008c5167e6ca39a7ba9eeec8b30672938704
2012-05-18 13:30:49 -04:00
Till Schneidereit
1e6b40a71c Bug 755604 - Incrementalize JSCompartment::markTypes. r=billm 2012-05-18 13:35:43 -04:00
Luke Wagner
1f166a42fc Bug 755916 - All early returns of CheckStackAndEnterMethodJIT should return Jaeger_ThrowBeforeEnter (r=bhackett)
--HG--
extra : rebase_source : b613305f2d5020d1437ffcba93a4058fe052d88f
2012-05-16 17:48:25 -07:00
Luke Wagner
c83368a6cc Bug 755396 - fix definition of 'aliased' when a formal is aliased by the arguments object (r=waldo)
--HG--
extra : rebase_source : 6fd207aaee05aef52798340664888998fb89baca
2012-05-08 19:12:33 -07:00
Luke Wagner
fb91c6e9f3 Bug 755578 - simplify Compiler::generatePrologue a tiny bit (r=bhackett)
--HG--
extra : rebase_source : 8f615944126881886684b787f5df4d1ee1c8d650
2012-05-14 12:42:46 -07:00
Ms2ger
20cf723d9c Bug 744935 - Remove JS_PROPERTY_TREE; r=Waldo 2012-05-18 10:29:40 +02:00
Ms2ger
512d8ee24a Bug 755875 - Use ValueToInt64/ValueToUint64 in XPCConvert::JSData2Native; r=bholley 2012-05-18 10:29:40 +02:00
Ms2ger
5a68e74435 Bug 754968 - Part c: Make BindingUtils.h not require private xpconnect headers; r=bholley 2012-05-18 10:29:40 +02:00
Ms2ger
e74680bc00 Bug 754968 - Part b: Export qsObjectHelper; r=bholley 2012-05-18 10:29:40 +02:00
Ms2ger
e0857f523a Bug 754968 - Part a: Export xpcObjectHelper; r=bholley 2012-05-18 10:29:40 +02:00
Ms2ger
d33156de1c Bug 755889 - Inline NonstandardToInt32 into JS_ValueToInt32; r=luke 2012-05-18 10:29:38 +02:00
David Zbarsky
b136ead814 Bug 756227: Fix TreeContext warnings. r=nnethercote.
--HG--
extra : rebase_source : c6ab31cfd64ebecb4a8bd4069d03fc2f41d3203b
2012-05-17 18:29:30 -07:00
Nicholas Nethercote
cdad96bdc7 Bug 755583 (part 1) - Introduce "sundries" entries for aggregating small entries in per-compartment memory reporters. r=luke.
--HG--
extra : rebase_source : 797fc0deb2a438cbb7f4c64f4c03dd4b6378e498
2012-05-16 20:43:36 -07:00
Nicholas Nethercote
4f20b07e70 Bug 755581 - Follow-up: replace js::RuntimeSizes with JS::RuntimeSizes. r=luke.
--HG--
extra : rebase_source : a1081266cec2f249f8acac782c2c806e5db705aa
2012-05-17 17:08:57 -07:00
Jason Orendorff
1eb2ec4e0b Bug 749697 - Support debugging when multiple JSContexts are on the stack. Part 2, fix evcross-context eval-in-frame. r=luke.
--HG--
extra : rebase_source : 216bdac31ec88af4130ffd9ffac9bf0ebb1a9b39
2012-05-17 18:57:34 -05:00
Jason Orendorff
617373c265 Bug 749697 - Support debugging when multiple JSContexts are on the stack. Part 1, weaken a too-strict assertion in JS_GetFrameScopeChain. r=luke.
--HG--
extra : rebase_source : 86803d6edc44cd4b3a7238b808e48bbf5ac205a1
2012-05-17 18:56:45 -05:00
Jason Orendorff
745f248fae Bug 755808 - Add more options to JS shell evaluate() function. r=jimb.
--HG--
extra : rebase_source : f22059d97fbaae885f3b052ed0b84523df3d5ef8
2012-05-17 18:54:30 -05:00
Jason Orendorff
41761a8fea Bug 756260 - Fix up building without JS_HAS_XML_SUPPORT, again. r=terrence.
--HG--
extra : rebase_source : 9b0bc4f31db387e4e98821d712309792c07eac1c
2012-05-17 16:24:32 -05:00
Ed Morley
515ce36c76 Backout a97741bbd972 (bug 755604) for compilation failures 2012-05-17 19:34:56 +01:00
Till Schneidereit
6b3ec1ecea Bug 755604 - Incrementalize JSCompartment::markTypes. r=billm 2012-05-17 14:25:08 -04:00
David Rajchenbach-Teller
b240532e4d Bug 748745 - Supporting readString in a CDataFinalizer. r=jorendorff 2012-05-07 08:59:28 +02:00
Eddy Bruel
0f91edbc9a Bug 703537 - Add IndirectProxyhandler; r=bholley,jorendorff 2012-05-17 13:19:37 +02:00
Nicholas Nethercote
6aaa7e645b Bug 754180 - Give ObjectBox and FunctionBox constructors. r=jorendorff. 2012-05-16 18:42:34 -07:00
Nicholas Nethercote
c9d3eb41ca Bug 754179 - Remove some dead front-end code. r=jorendorff.
--HG--
extra : rebase_source : 6483ba3654782181b89fb5ac3c8f352929efbaa7
2012-05-16 18:12:47 -07:00
Nicholas Nethercote
8262af73d3 Bug 755581 (part 5) - Add "cross-compartment-wrappers" reporter. r=luke.
--HG--
extra : rebase_source : 1dfb5eb522008acd59f6bce5e1724af1dc0da9f0
2012-05-15 19:31:01 -07:00
Nicholas Nethercote
d3d3dcc4bc Bug 755581 (part 4) - Add "math-cache", "script-filenames" and "compartment-objects" reporters. r=luke.
--HG--
extra : rebase_source : cc1fc8ff91a7b63b8a1fd48aac3b5f37c7e84393
2012-05-15 19:30:28 -07:00
Nicholas Nethercote
7ab7a4aeca Bug 755581 (part 3) - Clean up JSRuntime::sizeOfIncludingThis(). r=luke.
--HG--
extra : rebase_source : 892163d96148ed86a190ee7221235dc529445fef
2012-05-15 19:29:14 -07:00
Nicholas Nethercote
977d9347ea Bug 755581 (part 2) - Change "runtime/normal" reporter to "runtime/dtoa". r=luke.
--HG--
extra : rebase_source : 6dfe281494588628c3335058d333080f86bb3487
2012-05-15 19:28:31 -07:00
Nicholas Nethercote
1706a55c1d Bug 755581 (part 1) - Change "mjit/data" reporter to "mjit-data". r=luke.
--HG--
extra : rebase_source : e45b376ff1710e9f1bf3b14363f884bb7fb71d48
2012-05-15 19:27:34 -07:00
Nicholas Nethercote
733d8cdf30 Bug 753657 (part 3): Remove the remaining parts of TreeContextFlags. r=luke.
--HG--
extra : rebase_source : 7d62aac9f3049a5bb6e8821d2055e59348cf9d85
2012-05-15 00:03:39 -07:00
Nicholas Nethercote
96244c6e7a Bug 753657 (part 2): Simplify the setting of FunctionBox::tcflags. r=luke.
--HG--
extra : rebase_source : 6296f09bddf68b625c2011c273fc0c7267f3399a
2012-05-14 23:17:50 -07:00
Nicholas Nethercote
595f3dcbc8 Bug 753657 (part 1): remove TCF_FUN_FLAGS from TreeContextFlags. r=luke.
--HG--
extra : rebase_source : d59ebfd378e5b53d8ab4db50e593b2872ffef475
2012-05-14 23:16:24 -07:00
Bill McCloskey
d19a7980cf Backout bug 753283 (20619d227f29) for orange 2012-05-16 14:55:44 -07:00
Steve Fink
4e71be41e6 Test from bug 741041 is now shell-only, r=bustage. 2012-05-16 14:33:38 -07:00
Bill McCloskey
45fb416471 Bug 753283 - Poison VM stack to help fuzzing (r=bhackett) 2012-05-16 14:10:58 -07:00
Bill McCloskey
c1a8f61f0e Bug 754150 - Add write barrier on JITChunk (r=bhackett) 2012-05-16 13:56:42 -07:00
Steve Fink
b61d1b7021 Bug 741041 - Use UnwrapObjectChecked, and ensure ArrayBufferViews and their buffers are in the same compartment. r=luke
--HG--
extra : rebase_source : c1b7957772e03ac2819d4ffb70f52fb46014648e
2012-03-28 14:43:02 -07:00
Steve Fink
838da24cc1 Bug 741041 - Implement isProxy testing command for JS shell
--HG--
extra : rebase_source : 0beb5a22050916b5100d03314c257a48b19378ae
2012-03-28 14:43:02 -07:00
Doug Turner
5cb911288f Bug 755836 - undef near in directory helper to avoid build errors. r=kyle 2012-05-16 13:27:56 -07:00
Doug Turner
8313ba6d13 Bug 751663 - Implement new device proximity like event that fires only when the screen is close to the user's face. r=smaug 2012-05-16 13:27:54 -07:00
Benjamin Peterson
0188b3d4f3 Bug 755163 - Kill a test which is not useful anymore and liable failure with different compilers. r=jwalden
--HG--
extra : rebase_source : 7bae87e7d74219c8a6e099c58a85445a7dfabcb1
2012-05-16 11:59:17 -07:00
Terrence Cole
b3bade5ef4 Bug 743854 - Do not call init on ArrayBuffer slots in NewObject. r=billm
ArrayBuffers use slotSpan to store their inline size. If we try to initialize
these, then we end up with their address in the StoreBuffer, but with arbitrary
bytes written in these fields by TypeArrays. This patch uses an exact class test
to prevent this initialization behavior.

--HG--
extra : rebase_source : 8aacef597dc7456c5e1e08524c84bbb0932b9a68
2012-05-16 12:01:50 -07:00
Joey Armstrong
94684ebe92 bug 742391: split config/rules.mk - file batch #1 2012-05-16 14:46:28 -04:00
Jim Blandy
b8c26d76b5 Bug 755778: Debugger.Environment.prototype.with should return "with" for 'with' statements' environments. r=jorendorff 2012-05-16 09:19:36 -07:00
Saurabh Anand
0246222c0f Bug 732262 - Add toSource() and toString() methods to js-ctypes ABI objects. r=jorendorff. 2012-05-15 16:48:54 +05:30
Jason Orendorff
c805c1a187 Bug 752092 - Support building SpiderMonkey without JS_HAS_XML_SUPPORT. r=terrence. 2012-05-14 18:53:30 -05:00
Jason Orendorff
474b598d8d Bug 710479 - ASan reports invalid read in PopOffPrec. r=dmandelin. 2012-05-14 18:49:09 -05:00
Jason Orendorff
ac411cc41b Bug 721497 - Assertion failure: compartment mismatched, at ../jscntxtinlines.h:153 with dumpStack. r=luke. 2012-05-14 18:47:32 -05:00
Ed Morley
2acc0d3f41 Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-05-16 10:06:15 +01:00
Till Schneidereit
be76842a0a Bug 754299 - Update gcMaxMallocBytes of existing compartments in JSRuntime::setGCMaxMallocBytes. r=billm 2012-05-15 18:30:15 -04:00
Till Schneidereit
53b81d3cba Change nsXPConnect::CheckForDebugMode to trigger one multi-compartment GC instead of individual GCs for all compartments, to fix GC pauses when switching tabs with Firebug. Bug 754201, r=jorendorff, r=sfink. 2012-05-14 18:46:51 -05:00
Nicholas Nethercote
25daad3e0e Bug 753249 (part 6) - Remove TCF_GENEXP_LAMBDA from TreeContextFlags. r=luke.
--HG--
extra : rebase_source : 30b9e049999e66dae1409022adc8973efd7d2254
2012-05-14 21:38:42 -07:00
Nicholas Nethercote
e9272e872c Bug 753249 (part 5) - Simplify use of TCF_GENEXP_LAMBDA in FoldConstants. r=luke.
--HG--
extra : rebase_source : 8cdce721b1bdfdea8fca8f98de8a0c8fc30e0b9d
2012-05-14 21:38:41 -07:00
Nicholas Nethercote
2a5533e3e5 Bug 753249 (part 4) - Remove TCF_HAS_SINGLETONS from TreeContextFlags. r=luke.
--HG--
extra : rebase_source : 873e79b43fc901057cf1ad79636077f5923a83c0
2012-05-14 21:38:39 -07:00
Nicholas Nethercote
a8b96221a0 Bug 753249 (part 3) - Remove TCF_IN_WITH from TreeContextFlags. r=luke.
--HG--
extra : rebase_source : c88cc07d9a3868ec756daa1da0a0cbe875d3c144
2012-05-14 21:38:37 -07:00
Nicholas Nethercote
ca73f72a05 Bug 753249 (part 2) - Remove TCF_IN_FOR_INIT from TreeContextFlags. r=luke.
--HG--
extra : rebase_source : f70060e47de0130c558c798a572d83c9184f82c5
2012-05-14 21:38:36 -07:00
Nicholas Nethercote
fc08f81685 Bug 753249 (part 1) - Remove TCF_IN_FUNCTION from TreeContextFlags. r=luke.
--HG--
extra : rebase_source : 00d0bc1cdead33084b56d629868009f8280c7988
2012-05-14 21:38:35 -07:00
Mike Hommey
693d8aa482 Bug 754557 - Fix building with --enable-methodjit-spew without --enable-debug. r=dmandelin 2012-05-15 07:44:58 +02:00
Mike Hommey
c20538e54d Bug 748001 - Use explicit targets for object files. r=ted 2012-05-15 07:44:32 +02:00
Steve Fink
1b16f82893 Bug 723712 - Test for !isCachedEval assertion failure. r=test
--HG--
extra : rebase_source : a88931728024e9045947cee4b3e6a5a82030909d
2012-04-16 11:44:10 -07:00
Steve Fink
54e327cbf3 Bug 723712 - Allow entering a compartment with a cached eval script. r=jorendorff
--HG--
extra : rebase_source : fc7a9ae353eefad9b4c9e82b983380b55928c5b8
2012-02-27 13:18:30 -08:00
Steve Fink
ff6423c5f3 Bug 751398 - Make jsdService participate in cycle collection for all of its hooks. r=khuey
--HG--
extra : rebase_source : dd85ac1398037964cb729afb4c0d6ace07387c7b
2012-04-30 13:58:38 -07:00
Andrew McCreight
47adc22ec3 Bug 701415 - Enable GC tracing info in opt builds. r=billm 2012-01-13 17:19:19 -08:00
Joey Armstrong
f91f737a13 bug 751167: replace FORCE with makefile dependencies r=ted 2012-05-15 09:20:30 -07:00
Matt Brubeck
773ffb6265 Merge mozilla-central and mozilla-inbound 2012-05-14 21:41:08 -07:00
Nicholas Nethercote
e8f36613f2 Bug 752816 (part 3) - Remove TCF_COMPILE_N_GO from TreeContextFlags. r=luke.
--HG--
extra : rebase_source : caaac2b872c30d1b4fafacc2e3f32677a609fa7c
2012-05-14 18:00:19 -07:00
Nicholas Nethercote
fd43f617aa Bug 752816 (part 2) - Remove TCF_{NO_SCRIPT_RVAL,NEED_SCRIPT_GLOBAL} from TreeContextFlags. r=luke.
--HG--
extra : rebase_source : 26aacee3d6663be4a77a758b5ebab77a48c797e5
2012-05-14 18:00:17 -07:00
Nicholas Nethercote
8166b79251 Bug 752816 (part 1) - Remove TCF_COMPILE_FOR_EVAL from TreeContextFlags. r=luke.
--HG--
extra : rebase_source : 18460968ee955f620e18da19a34a42fc2e061b0d
2012-05-14 18:00:15 -07:00
Matt Brubeck
bb3a6fefc7 Merge last green changeset from inbound to mozilla-central 2012-05-14 14:00:57 -07:00
Mike Hommey
5262f75c2c Bug 754625 - Use idl-parser from $(LIBXUL_DIST)/sdk/bin and only remove lex and yacc files in header.py --regen. r=khuey 2012-05-14 17:19:39 +02:00
Bobby Holley
9c60ce3d2e Bug 753277 - Assert that all cross-scope wrapper reparenting operations are cross-compartment, and remove the conditional. r=mrbkap
The reindentation is pure. No snakes.
2012-05-14 12:52:17 +02:00
Bobby Holley
dd6ca22451 Bug 753277 - Rename tobj to wrapperGuts, and avoid going through the SCSW on the other side unnecessarily. r=mrbkap
It's not wrong, but it's not necessary either, since we'll just unwrap directly to the underlying object during wrapping. And this is confusing enough as-is.
2012-05-14 12:52:17 +02:00
Bobby Holley
e8eacccb4d Bug 753277 - Rename |obj| to |newWrapper| in js_TransplantObjectWithWrapper. r=mrbkap 2012-05-14 12:52:17 +02:00
Bobby Holley
582d7c4ddc Bug 753277 - Make js_TransplantObjectWithWrapper use RemapWrappers. r=mrbkap 2012-05-14 12:52:17 +02:00
Bobby Holley
fa2b5be266 Bug 753277 - Rename |obj| to |newIdentity| in JS_TransplantObject. r=mrbkap 2012-05-14 12:52:16 +02:00
Bobby Holley
0e3a5c894c Bug 753277 - Factor out CCW remapping from JS_TransplantObject and add comments. r=mrbkap 2012-05-14 12:52:16 +02:00
Nicholas Nethercote
43cf80e068 Bug 752793 (part 3) - Remove TCF_DECL_DESTRUCTURING from TreeContextFlags. r=luke.
--HG--
extra : rebase_source : 559857d9f8eed138c78f376014b9748a3a8ce4e1
2012-05-14 16:23:33 -07:00
Nicholas Nethercote
ef7e588510 Bug 752793 (part 2) - Remove TCF_HAS_FUNCTION_STMT from TreeContextFlags. r=luke.
--HG--
extra : rebase_source : 82cf18efce409b2b48bf10b36090b67daeda6981
2012-05-14 16:23:31 -07:00
Nicholas Nethercote
4fe4587156 Bug 752793 (part 1) - Remove TCF_RETURN_{EXPR,VOID} from TreeContextFlags. r=luke.
--HG--
extra : rebase_source : 6408cd4daf61e330b975cceff41d694cc2240847
2012-05-14 16:23:29 -07:00
Terrence Cole
16d19e5a76 Bug 737640 - Missing barriers in makeOwnBaseShape; r=bhackett
The default copy constructor for BaseShape gets used in makeOwnBaseShape,
bypassing the manual post barriers on getterObj and setterObj. This patch
goes through StackBaseShape, which is the correct usage. It also deletes the
copy constructor to ensure we don't have the same error in the future.
2012-05-14 15:02:43 -07:00
Nicholas Nethercote
8304bf7822 Bug 752758 - Separate TreeContext and BytecodeEmitter. r=bhackett. 2012-05-14 16:08:32 -07:00
Tom Schuster
889e3a0487 Bug 752226 - Remove any use of JSVAL_IS_OBJECT. r=luke,Ms2ger 2012-05-11 17:46:26 +02:00
Bill McCloskey
bd6f3cb10e Bug 754242 - Reset incremental GC upon TOO_MUCH_MALLOC GC requests (r=terrence) 2012-05-11 21:07:54 -07:00
Matt Brubeck
e03dd6bfd0 Back out 6a7bfd84596e (bug 736501) because it broke the build on some versions of GCC (bug 754198) 2012-05-11 20:15:47 -07:00
Paul ADENOT
d19763225d Bug 743720 - Import Speex's audio resampler in the tree. r=kinetik, khuey 2012-05-14 19:01:04 -04:00
Bobby Holley
a677897390 Bug 754311 - Null out the private of soon-to-be-transplanted reflectors _after_ copying their properties onto the holder. r=mrbkap 2012-05-14 23:30:07 +02:00
Bobby Holley
edc81ab397 Bug 754044 - Remove manual injection of same-compartment security wrappers, and make sure to call JS_Wrap* instead. r=mrbkap 2012-05-14 23:30:07 +02:00
Bobby Holley
80f05e377a Bug 754044 - Apply same-compartment security wrappers in same-compartment wrapping callback. r=mrbkap 2012-05-14 23:30:07 +02:00
Bobby Holley
4b7ab64339 Bug 754044 - Introduce sameCompartmentWrapObjectCallback. r=mrbkap
We leave it null for gecko for the time being to keep this patch small.
2012-05-14 23:30:07 +02:00
Bobby Holley
d4db4d398f Bug 754044 - Simplify the logic surrounding the prewrap callback in jscompartment.cpp. r=mrbkap 2012-05-14 23:30:07 +02:00