Commit Graph

19183 Commits

Author SHA1 Message Date
Gervase Markham
ca171eec44 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Till Schneidereit
67bd58de49 Bug 756851 - add missing call to object->markIfUnmarked before GCMarker::pushObject. r=billm 2012-05-20 14:34:21 -07:00
Brian Hackett
c07eaa0e3e Use handles in API object hooks where possible, bug 750733. r=billm 2012-05-19 15:03:45 -07:00
Michael Wu
e377eceec8 Bug 756746 - Quote paths in linker scripts, r=glandium 2012-05-19 17:02:34 -04:00
Andrew McCreight
380a75cc8d Bug 714725 - use deferred release in XPC_WN_Helper_Finalize. r=bholley 2012-05-19 13:56:29 -07:00
Tom Schuster
40afae87d0 Bug 673499 - revert unwanted change to js/src/ETWProvider.man 2012-05-19 22:03:17 +02:00
Tom Schuster
a22157c5ee Bug 707911 - Rewrite StackTraceToString to use StringBuffer. r=bhackett 2012-05-19 21:56:23 +02:00
Tom Schuster
55fd8ff0a0 Bug 673499 - remove some trailing whitespace from js/src. r=jorendorff 2012-05-19 21:56:17 +02:00
Brian Hackett
9ae1966596 Backed out changeset 5fc7462dd394 for android orange. 2012-05-19 11:52:55 -07:00
Brian Hackett
a863456144 Use handles in API object hooks where possible, bug 750733. r=billm 2012-05-19 09:48:09 -07:00
Blake Kaplan
1fdfdd21f2 Bug 756584 - Crashtest for bug 720305. r=dveditz 2012-05-19 11:32:46 -04:00
Terrence Cole
a0e0ea194e 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
8e3396e56b Bug 746601 - unexpected 'arguments' read from the debugger should work like f.arguments (r=jimb) 2012-04-25 18:21:16 -07:00
Ryan VanderMeulen
b847a7163c Backout 2ee09416b1d7 (bug 754181) due to jsreftest crashes. 2012-05-24 20:43:40 -04:00
Nicholas Nethercote
9a619771e0 Bug 754181 - Don't store the strict mode code flag twice. r=jwalden,luke.
--HG--
extra : rebase_source : 652c8c235cfa55193346bba4933584f9cc4652f2
2012-05-21 20:06:43 -07:00
Brian Hackett
1573459c2b Rename RootedVar to Rooted, bug 756823. r=billm 2012-05-24 16:05:18 -07:00
Marco Perez
bac7888148 Bug 752067 - Build broken in ipc after prctl changes. r=cjones 2012-05-24 18:45:10 -04:00
Steve Fink
9cb1dfa7f9 Bug 751425 - Fix JS shell exit status on -e script failure. r=jimb
--HG--
extra : rebase_source : efbb774944c282b4a2744c85ca7dea15dbb18650
2012-05-09 15:12:27 -07:00
Steve Fink
12fee613a0 Bug 757682 - Add JSProto_DataView to the setFlagsFromKey assert. r=bhackett
--HG--
extra : rebase_source : 9bffcb95273680a5a6c47a4751215d61ebc889fd
2012-05-24 13:25:49 -07:00
Luke Wagner
48a4a689d4 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
4f91700da9 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
0908574a18 Bug 755604 - Incrementalize JSCompartment::markTypes. r=billm 2012-05-18 13:35:43 -04:00
Luke Wagner
af4a583560 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
3b66de444e 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
e2f2a41d4e Bug 755578 - simplify Compiler::generatePrologue a tiny bit (r=bhackett)
--HG--
extra : rebase_source : 8f615944126881886684b787f5df4d1ee1c8d650
2012-05-14 12:42:46 -07:00
Ms2ger
8f629ee514 Bug 744935 - Remove JS_PROPERTY_TREE; r=Waldo 2012-05-18 10:29:40 +02:00
Ms2ger
d442f7e17f Bug 755875 - Use ValueToInt64/ValueToUint64 in XPCConvert::JSData2Native; r=bholley 2012-05-18 10:29:40 +02:00
Ms2ger
5623a92079 Bug 754968 - Part c: Make BindingUtils.h not require private xpconnect headers; r=bholley 2012-05-18 10:29:40 +02:00
Ms2ger
a44e3f805c Bug 754968 - Part b: Export qsObjectHelper; r=bholley 2012-05-18 10:29:40 +02:00
Ms2ger
2883604225 Bug 754968 - Part a: Export xpcObjectHelper; r=bholley 2012-05-18 10:29:40 +02:00
Ms2ger
69a5e8ca53 Bug 755889 - Inline NonstandardToInt32 into JS_ValueToInt32; r=luke 2012-05-18 10:29:38 +02:00
David Zbarsky
aae99ea660 Bug 756227: Fix TreeContext warnings. r=nnethercote.
--HG--
extra : rebase_source : c6ab31cfd64ebecb4a8bd4069d03fc2f41d3203b
2012-05-17 18:29:30 -07:00
Nicholas Nethercote
82518cb83c 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
b55e7d8641 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
4feb4ce1dc 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
cd9e3fa468 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
bb34a88747 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
7bbae7c493 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
ec4fb61f6f Backout a97741bbd972 (bug 755604) for compilation failures 2012-05-17 19:34:56 +01:00
Till Schneidereit
3578fc11d3 Bug 755604 - Incrementalize JSCompartment::markTypes. r=billm 2012-05-17 14:25:08 -04:00
David Rajchenbach-Teller
c8e286f0be Bug 748745 - Supporting readString in a CDataFinalizer. r=jorendorff 2012-05-07 08:59:28 +02:00
Eddy Bruel
36436d48e3 Bug 703537 - Add IndirectProxyhandler; r=bholley,jorendorff 2012-05-17 13:19:37 +02:00
Nicholas Nethercote
24a56044bf Bug 754180 - Give ObjectBox and FunctionBox constructors. r=jorendorff. 2012-05-16 18:42:34 -07:00
Nicholas Nethercote
4a1242fee5 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
14ad857e16 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
9e31860570 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
56b8cb2a5a 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
a57ef676b8 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
7c43883893 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
dc9e955005 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
0da09800c8 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
e168feaa96 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
075854c6dd Backout bug 753283 (20619d227f29) for orange 2012-05-16 14:55:44 -07:00
Steve Fink
a3835d87d2 Test from bug 741041 is now shell-only, r=bustage. 2012-05-16 14:33:38 -07:00
Bill McCloskey
dc73485a13 Bug 753283 - Poison VM stack to help fuzzing (r=bhackett) 2012-05-16 14:10:58 -07:00
Bill McCloskey
7ab2fc7430 Bug 754150 - Add write barrier on JITChunk (r=bhackett) 2012-05-16 13:56:42 -07:00
Steve Fink
881a106d75 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
84ee0c1367 Bug 741041 - Implement isProxy testing command for JS shell
--HG--
extra : rebase_source : 0beb5a22050916b5100d03314c257a48b19378ae
2012-03-28 14:43:02 -07:00
Doug Turner
b1a5286789 Bug 755836 - undef near in directory helper to avoid build errors. r=kyle 2012-05-16 13:27:56 -07:00
Doug Turner
225363eefe 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
3e852389e0 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
af0232ff56 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
a6c1197fc0 bug 742391: split config/rules.mk - file batch #1 2012-05-16 14:46:28 -04:00
Jim Blandy
33bffa4fd7 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
5d60d3107e Bug 732262 - Add toSource() and toString() methods to js-ctypes ABI objects. r=jorendorff. 2012-05-15 16:48:54 +05:30
Jason Orendorff
f87eefb80b Bug 752092 - Support building SpiderMonkey without JS_HAS_XML_SUPPORT. r=terrence. 2012-05-14 18:53:30 -05:00
Jason Orendorff
09d386c0ee Bug 710479 - ASan reports invalid read in PopOffPrec. r=dmandelin. 2012-05-14 18:49:09 -05:00
Jason Orendorff
5fe9478bb6 Bug 721497 - Assertion failure: compartment mismatched, at ../jscntxtinlines.h:153 with dumpStack. r=luke. 2012-05-14 18:47:32 -05:00
Ed Morley
d055880ec8 Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-05-16 10:06:15 +01:00
Till Schneidereit
7d942b379c Bug 754299 - Update gcMaxMallocBytes of existing compartments in JSRuntime::setGCMaxMallocBytes. r=billm 2012-05-15 18:30:15 -04:00
Till Schneidereit
721ddcf010 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
3588797929 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
99c5195886 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
9a8bca4991 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
5a3bd5d1c3 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
bc9a1185fb 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
c24d1e93db 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
5d398e5cd1 Bug 754557 - Fix building with --enable-methodjit-spew without --enable-debug. r=dmandelin 2012-05-15 07:44:58 +02:00
Mike Hommey
e1c1bf2c5a Bug 748001 - Use explicit targets for object files. r=ted 2012-05-15 07:44:32 +02:00
Steve Fink
2523b1efe1 Bug 723712 - Test for !isCachedEval assertion failure. r=test
--HG--
extra : rebase_source : a88931728024e9045947cee4b3e6a5a82030909d
2012-04-16 11:44:10 -07:00
Steve Fink
84fb4992e9 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
0206f61415 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
1d45033c16 Bug 701415 - Enable GC tracing info in opt builds. r=billm 2012-01-13 17:19:19 -08:00
Joey Armstrong
d3800f614a bug 751167: replace FORCE with makefile dependencies r=ted 2012-05-15 09:20:30 -07:00
Bill McCloskey
c401b0a671 Bug 757667 - Clean up Proxy tracing (r=terrence) 2012-05-23 16:31:26 -07:00
Brian Hackett
b8298cecde Remove Root<T>, bug 756823. r=billm 2012-05-24 08:52:21 -07:00
Bobby Holley
f07d9da02c Bug 553102 - Fix test_cows.xul. r=mrbkap 2012-05-24 13:04:57 +02:00
Jan de Mooij
e498e655ce Bug 757845 - Add edge label to write barrier assert. r=billm
--HG--
extra : rebase_source : affe7600876aeb4969206f39b60c2a8390d43e90
2012-05-24 10:58:05 +02:00
Mike Hommey
e31ecc2134 Bug 756745 - Add -DANDROID and include path to ASFLAGS when building for Android. r=ted 2012-05-24 10:56:26 +02:00
Matt Brubeck
4b70cc9606 Merge mozilla-central and mozilla-inbound 2012-05-14 21:41:08 -07:00
Nicholas Nethercote
62382c55e7 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
b918d818cf 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
1690b97ab7 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
84daf0496c Merge last green changeset from inbound to mozilla-central 2012-05-14 14:00:57 -07:00
Mike Hommey
1f46768cf3 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
1cfe6cb48d 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
d164e49f75 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
a15bbc35ba Bug 753277 - Rename |obj| to |newWrapper| in js_TransplantObjectWithWrapper. r=mrbkap 2012-05-14 12:52:17 +02:00
Bobby Holley
0f1b06973a Bug 753277 - Make js_TransplantObjectWithWrapper use RemapWrappers. r=mrbkap 2012-05-14 12:52:17 +02:00
Bobby Holley
e2c3bd38b7 Bug 753277 - Rename |obj| to |newIdentity| in JS_TransplantObject. r=mrbkap 2012-05-14 12:52:16 +02:00
Bobby Holley
b41868c759 Bug 753277 - Factor out CCW remapping from JS_TransplantObject and add comments. r=mrbkap 2012-05-14 12:52:16 +02:00
Nicholas Nethercote
0cb60ca266 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
7aef656dbc 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
350c2c5e04 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
6ad581c15c 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
0414b9a8ea Bug 752758 - Separate TreeContext and BytecodeEmitter. r=bhackett. 2012-05-14 16:08:32 -07:00
Tom Schuster
fb630ae705 Bug 752226 - Remove any use of JSVAL_IS_OBJECT. r=luke,Ms2ger 2012-05-11 17:46:26 +02:00
Bill McCloskey
9d2414d8d7 Bug 754242 - Reset incremental GC upon TOO_MUCH_MALLOC GC requests (r=terrence) 2012-05-11 21:07:54 -07:00
Matt Brubeck
eebd9c8f2a 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
5b4816ddd6 Bug 743720 - Import Speex's audio resampler in the tree. r=kinetik, khuey 2012-05-14 19:01:04 -04:00
Bobby Holley
4c3278d85a 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
3165006395 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
0c0fa43789 Bug 754044 - Apply same-compartment security wrappers in same-compartment wrapping callback. r=mrbkap 2012-05-14 23:30:07 +02:00
Bobby Holley
0ff9136104 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
28257a13d5 Bug 754044 - Simplify the logic surrounding the prewrap callback in jscompartment.cpp. r=mrbkap 2012-05-14 23:30:07 +02:00
Bobby Holley
7b6eb3c939 Bug 754044 - Alter the semantics of UnwrapObject{,Checked} to check for outer windows on the initial wrapper passed. r=mrbkap
This distinction is the only reason for writing the code in this confusing manner. And I don't think we need it now that we have stopAtOuter.
2012-05-14 23:30:07 +02:00
Bobby Holley
d1ba9b075d Bug 754044 - Pass stopAtOuter=false in GetWrappedNativeOfJSObject, because that's what we mean. r=mrbkap 2012-05-14 23:30:07 +02:00
Luke Wagner
0c1f90bd32 Bug 752379 - ContextStack::pushExecuteFrame should read the most recent 'fp' (r=bhackett)
--HG--
extra : rebase_source : 1b615fbb8bebab0bf5acd859a70b34ae405347a6
2012-05-07 09:15:08 -07:00
Luke Wagner
f59ed367b3 Bug 754503 - JSOP_SETALIASEDVAR should be JOF_DETECTING (r=bhackett)
--HG--
extra : rebase_source : 7980a9efdd48c0d8be31693840993908d82f313f
2012-05-14 12:40:34 -07:00
Steve Fink
6dc9f3b3cd Bug 575688 - DataView.prototype should behave similarly to typed arrays (WebIDL compliance). r=Waldo
Also remove unwanted prototype searching behavior.
2012-03-28 14:43:02 -07:00
Joey Armstrong
7cba75fe18 bug 753939: makeutils.mk .mk loading logic with unit tests r=ted 2012-05-11 11:47:29 -07:00
Landry Breuil
e68e03b499 bug 736961 - use the same cachedir for all idl-parser calls, fixes builds without objdir - r=khuey 2012-05-11 11:17:00 -07:00
Ed Morley
79899a6f75 Backout 9b0fcaacb788 & bf3fef257e68 (bug 752226) for mochitest-other orange 2012-05-11 18:25:52 +01:00
Tom Schuster
1941fb1bb4 Bug 752226 - Remove any use of JSVAL_IS_OBJECT. r=luke,Ms2ger
--HG--
extra : rebase_source : edf2077f8b8bad1970eab6ebe9996e761d4e596c
2012-05-11 17:46:26 +02:00
Tom Schuster
80308a5aff Bug 751139 - Prevent cloning of bound functions. r=luke
--HG--
extra : rebase_source : acf1984137884fec53246a35f3f06f978557bc40
2012-05-11 17:46:03 +02:00
Terrence Cole
eec9068409 Bug 753619 - Fix progress bar totals in jstests.py; r=dmandelin
Something in the previous refactorings has messed up the display of the
progress bar such that it occasionally jumps over 100% and 80chars.
2012-05-10 16:06:41 -07:00
Terrence Cole
54c6efdee6 Bug 745326 - Make Map/SetObject keys/values relocatable; r=billm
Since they use HashTable internally, we need their keys to derive from
RelocatableValue, rather than HeapValue. This also modifies the marking to allow
for the relocation, when that happens.

--HG--
extra : rebase_source : b2499e3354fda99a0ea7a349443c2adef717146b
2012-05-10 17:37:43 -07:00
Terrence Cole
2121ade0ad Bug 752031 - Librarify the jsreftest suite; r=dmandelin
Moves the random .py implementation files into a lib subdirectory.

--HG--
rename : js/src/tests/manifest.py => js/src/tests/lib/manifest.py
rename : js/src/tests/progressbar.py => js/src/tests/lib/progressbar.py
rename : js/src/tests/results.py => js/src/tests/lib/results.py
rename : js/src/tests/tasks_unix.py => js/src/tests/lib/tasks_unix.py
rename : js/src/tests/tasks_win.py => js/src/tests/lib/tasks_win.py
rename : js/src/tests/tests.py => js/src/tests/lib/tests.py
2012-05-04 13:49:39 -07:00
Luke Wagner
c784fde483 Fix inline-used-but-not-defined warning (no bug,r=themaid) 2012-05-10 08:48:39 -07:00
Terrence Cole
a1dec83771 Bug 753931 - Add specialized post barriers to RelocatableValue; r=billm
This inserts stubs for GenerationalGC relocation barriers into the specialized
"Relocatable" HeapValue.
2012-05-10 11:38:39 -07:00
Michael Wu
eaf20f3009 Bug 753378 - Support building on x86 gonk, r=glandium 2012-05-10 11:34:17 -07:00
Steve Fink
2e82cc7265 Bug 752250 - xpc_UnmarkGrayContext should never throw an exception. r=billm
It is possible to have a JSContext with no global object and no frames on the
stack, yet still be within a request. In that case, xpc_UnmarkGrayContext will
trigger an exception "nothing active on context" when it attempts to access the
inner object of the cx's NULL global.
2012-05-09 15:12:27 -07:00
Benjamin Smedberg
ff2537e707 Bug 736501 - Use -Werror=unused-result, r=ted/mayhemer/njn
--HG--
extra : rebase_source : 121cddcd66f9be9b80840b47aecbe95307bae0ab
2012-05-01 09:24:38 -04:00
Bill McCloskey
8ecfd5a5f3 Bug 753615 - Ensure we don't re-enter a GC phase (r=terrence) 2012-05-10 10:29:45 -07:00
Gregory Szorc
03add7dd8e Bug 748490 - Part 3: Followups to part 2; r=ted
Previous patch was submitted prematurely by accident. This addresses
nits from review.
2012-05-10 10:19:16 -07:00
Gregory Szorc
ce02a35113 Bug 748490 - Part 2: Register testing modules with xpcshell test runner; r=ted 2012-05-10 10:10:14 -07:00
Gregory Szorc
902df1ed06 Bug 748490 - Part 1: Provide build rules to install test-only JS modules; r=ted 2012-05-10 10:10:11 -07:00
Andrew McCreight
b8306317dd Bug 747251 - remove unused declaration of JS_CompartmentGC. r=billm 2012-05-10 07:59:33 -07:00
Mike Hommey
ad68904e51 Bug 751845 - Remove pcre source, and cleanup js/src/Makefile.in after bug 691898. r=dmandelin 2012-05-10 12:31:01 +02:00
Nicholas Nethercote
a1c382cf15 Bug 750606 - Remove TreeContext::parser, thus avoiding cycles between TreeContext and Parser objects. r=bhackett. 2012-04-30 22:20:06 -07:00
Nicholas Nethercote
c3b189cb76 Bug 750580 - Remove cyclic dependency between Parser and BytecodeEmitter modules by introducing a TreeContext module. r=jorendorff.
--HG--
rename : js/src/frontend/BytecodeEmitter-inl.h => js/src/frontend/TreeContext-inl.h
extra : rebase_source : 5f4bc6d40424f6c1e44b3c7344559e19ca067a1b
2012-04-30 17:59:23 -07:00
Boris Zbarsky
389a77894c Bug 753397. Add a field to nsCSSPropList for a preference that controls the property. r=dbaron
The actual controlling is not hooked up yet; that will happen in bug 753522 for
the DOM reflections of properties.
2012-05-09 21:29:37 -04:00
Nicholas Nethercote
3e39f0fd35 Bug 750282 - Remove TCF_COMPILING from TreeContextFlags. r=jorendorff.
--HG--
extra : rebase_source : 53a263d5925ccaf659ae1c37d01cc5671576e4b3
2012-05-09 17:31:58 -07:00
Nicholas Nethercote
d03b1380d5 Bug 751818 - Remove DefineGlobal and lots of related stuff. r=jorendorff.
--HG--
extra : rebase_source : 1f666636eab276351bc35b77bd620c3dba127299
2012-05-09 16:20:11 -07:00
Bill McCloskey
50b7e65fc1 Bug 750834 - Disable jit-test bug740509.js (r=NPOTB) 2012-05-09 16:33:04 -07:00
David Rajchenbach-Teller
813502fd15 Bug 748776 - Record a more precise type in CDataFinalizer::Construct. r=jorendorff 2012-05-09 10:33:30 +02:00
Ryan VanderMeulen
127daf870d Merge m-c to inbound. 2012-05-09 18:42:00 -04:00
Bill McCloskey
1738842702 Bug 750959 - Permit incremental GC on Android (r=terrence) 2012-05-09 15:35:51 -07:00
Bill McCloskey
956ccca99d Bug 735944 - about:support should show 0 when incremental GC disabled (r=terrence) 2012-05-09 15:34:08 -07:00
Till Schneidereit
644a9b24a3 Bug 746253 - Use non-incremental GCs for TOO_MUCH_MALLOC (r=igor) 2012-05-09 15:08:30 -07:00
Brian Hackett
bf76d70428 Don't throw away JIT code for compartments in web pages displaying animations, bug 750834. r=billm 2012-05-09 14:14:10 -07:00
Olli Pettay
5cd5cd6fc2 Bug 716014 Investigate if we could use CompartmentGC more often, r=billm+terrence
--HG--
extra : rebase_source : f0cfb9cdd2e2823898f4c18402df53e7b6041bac
2012-05-09 21:53:23 +03:00
Kevin Locke
437fdb60bf Bug 752357 - Include compartment location (sandbox name) in compartment name when it differs from the principal name. r=nnethercote.
--HG--
extra : rebase_source : f82959649a377c4f3806043d83506e3aa48b5915
2012-05-08 19:02:37 -07:00
Jim Blandy
0c7b3827b0 (No bug): Remove comment referring to deleted functions. r=luke on IRC 2012-05-08 18:05:37 -07:00
Terrence Cole
af0c9c9b0f Bug 753101 - Re-enable gc-zeal in the shell; r=billm
GCZeal got disabled by accident in Bug 742570.  This patch re-enables it using
the environment and removes the depricated help option.

--HG--
extra : rebase_source : c2553c3f325afbbe1234fbf8fe59c47df936b8b2
2012-05-08 17:33:58 -07:00
Terrence Cole
ab1313c6c1 Bug 753479 - Make HashTable::Enum::rekeyFront take a separate Lookup; r=luke
--HG--
extra : rebase_source : 7f8b2cda64f34c60f702182f64e370a73a593934
2012-05-04 14:18:28 -07:00
Till Schneidereit
7a2a29c947 Bug 723350 - Improve last-ditch GC trigger. r=billm 2012-05-08 18:49:13 -04:00
Luke Wagner
d266538fea Bug 747617 - fix document.all and swap JSClass::{construct,hasInstance} so this doesn't happen again (r=bz)
--HG--
extra : rebase_source : 036acbd046ff8b42f81e63933901b6aaaa595a76
2012-05-07 12:44:08 -07:00
Bill McCloskey
4aa8036e35 Bug 750538 - Remove jsgcstats.{cpp,h} (r=dmandelin) 2012-05-08 11:14:14 -07:00
Bill McCloskey
1e044a4a4b Bug 751454 - Use automarker for XPCNativeScriptableInfo (r=bholley) 2012-05-08 11:11:09 -07:00
Jon Buckley
abfe75ece8 Bug 728017 - Implement WEBGL_compressed_texture_s3tc - r=bjacob 2012-05-08 13:29:31 -04:00
Ed Morley
5885a6edd0 Backout ba7cf6fd10ae (bug 728017) for failing to compile 2012-05-08 18:50:45 +01:00
Jon Buckley
3954a6b841 Bug 728017 - Implement WEBGL_compressed_texture_s3tc - r=bjacob 2012-05-08 13:29:31 -04:00
Ryan VanderMeulen
28b376aae8 Merge m-c to inbound 2012-05-07 20:29:19 -04:00
Bill McCloskey
cdfac41e5a Bug 752098 - Fix script filename marking with incremental GC (r=luke) 2012-05-07 16:56:57 -07:00
Nicholas Nethercote
de5ab7a0de Bug 752381 - Merge System Principal compartments in about:memory. r=jlebar. 2012-05-06 22:05:16 -07:00
Nicholas Nethercote
8b058f774b Bug 739512: fix Mac and Windows bustage caused by patch 3. r=me. 2012-05-07 10:53:56 +10:00
Nathan Froyd
14eeb930ab Bug 744444 - Part 3: delete CPP_PROG_LINK; r=ted 2012-04-12 16:58:11 -04:00
Nathan Froyd
63643fbbad Bug 744444 - Part 2: delete quantify target and related support; r=ted 2012-04-12 16:56:57 -04:00
Nathan Froyd
82b7940845 Bug 744444 - Part 1: delete purify target; r=ted 2012-04-12 16:54:34 -04:00
Jim Blandy
5e342629c8 (No bug): Fix comment for callee accessor methods in js::StackFrame. r=luke on IRC 2012-05-09 12:10:17 -07:00
Nicholas Nethercote
9ea7b3074c Bug 739512: Patch 3: shrink the representation of optional arrays in JSScript. r=luke.
--HG--
extra : rebase_source : df3e7190d8afbff1dfe95c44b838d6460b2c11b6
2012-04-11 17:19:00 -07:00
Nicholas Nethercote
f6997a3aff Bug 752374 - Fix GCC integer overflow warnings in jsatominlines.h. r=bhackett.
--HG--
extra : rebase_source : aea8276518c71af6817abf096309585d1c8f1d05
2012-05-06 16:43:15 -07:00
Bill McCloskey
37146cc0a7 Bug 749698 - Setup compartment to collect when gcPoke set (r=igor) 2012-05-06 16:36:21 -07:00
Bill McCloskey
7c52eac860 Bug 752081 - Add more cases to IncrementalReferenceBarrier (r=sfink) 2012-05-06 16:33:50 -07:00
Nicholas Nethercote
16972fac2e Bug 739512: Patch 11: change JSScript::useCount to uint32_t. r=dvander.
--HG--
extra : rebase_source : 408dd77b28b697140f6ba08680b24cb69c046390
2012-04-11 16:37:57 -07:00
Brian Hackett
3e6dfb0349 Disallow non-canonical jsids, bug 751331. r=luke 2012-05-06 13:45:19 -07:00
Andrew Paprocki
5d846bbd8f Bug 736792 - Add JSOPTION_STRICT_MODE for embedders to force ES5 strict mode for all code without requiring "use strict" annotations. r=njn 2012-05-05 15:26:16 -04:00
Bobby Holley
17aaa24bab Bug 749173 - Remove AutoPreserveCompartment. r=luke 2012-05-06 13:09:49 +02:00
Phil Ringnalda
86ac0f4449 Back out 4ef39e03c9d9 (bug 736792) for jsreftest failures 2012-05-05 21:43:44 -07:00
Andrew Paprocki
5469fb621c Bug 736792 - Add JSOPTION_STRICT_MODE for embedders to force ES5 strict mode for all code without requiring "use strict" annotations. r=njn 2012-05-05 15:26:16 -04:00
Bobby Holley
9939525174 Bug 743961 - Null-check context pushing callbacks. r=mrbkap 2012-05-05 18:33:40 +02:00
Jan de Mooij
15264c39e7 Bug 752015 - Remove MethodJIT-inl.h. r=bhackett 2012-05-05 18:23:40 +02:00
Ryan VanderMeulen
40cfe78d6d Merge m-c to m-i 2012-05-05 11:50:54 -04:00
Olli Pettay
0067bf7bb3 Backout Bug 716014, a=bustage 2012-05-05 18:20:09 +03:00
Brian Hackett
0a23a4159f Check that double variables have the correct representation when changing types at switch targets, bug 751320. r=dvander 2012-05-05 07:18:55 -07:00
Ed Morley
ea1cca8a21 Merge mozilla-central to mozilla-inbound 2012-05-05 12:57:25 +01:00
wmccloskey@mozilla.com
3857c0f744 Bug 716014, use compartment gc more often, JS API part, r=terrence
--HG--
extra : rebase_source : c61a7552611cfbb0ce39bfee7787da57bec5a637
2012-05-05 11:56:58 +03:00
Olli Pettay
9d18ecc72d Bug 716014, use compartment gc more often, r=billm
--HG--
extra : rebase_source : cf20b7aca16349e4007da24cfb5b19ab7a16cad8
2012-05-05 11:55:30 +03:00
Ms2ger
3b04c7d79e Bug 741245 - Remove nsresult return value from nsXPConnect::GetSafeJSContext(); r=bholley 2012-05-05 11:00:05 +02:00
Ms2ger
3a093c7580 Bug 745427 - Fix XPCWrappedNativeScope::SetContext; r=gal 2012-05-05 11:00:04 +02:00
Christian Holler
5c46c7d23b Bug 751195 - Mark GC function unsafe for AddressSanitizer, r=billm 2012-05-05 02:08:32 -04:00
Ryan VanderMeulen
a3a125f0c1 Backout 2c8ae0c81d32 (bug 742391) due to bustage. r=FAIL 2012-05-04 23:03:31 -04:00
Joey Armstrong
4562b3524a Bug 742391 - Split config/rules.mk - file batch #1. r=ted 2012-05-04 22:46:35 -04:00
Bill McCloskey
6dfb423c22 Bug 745034 - Add page fault counts to GC statistics (r=terrence,dmandelin) 2012-04-09 12:30:33 -07:00
Jeff Walden
c4f8c3922b Bug 752737 - Delete the default and copy constructors and assignment operator from JSString and JSObject to avoid errors. r=luke
--HG--
extra : rebase_source : 37d8f094e917a097ac1b2ee0d4956f15e46c532c
2012-05-07 16:45:19 -07:00
Luke Wagner
fce0db5f34 Bug 752205 - Ensure switch case strings are atoms (r=njn)
--HG--
extra : rebase_source : e91d6c4d5c078e9ae16e7d3bd80e082a564dee57
2012-05-07 08:36:59 -07:00
Terrence Cole
2d725e1799 Bug 752604 - Ergonomics improvements for HashTable::rekeyFront; r=luke
--HG--
extra : rebase_source : 9764f2db38844106ac13f5281d85464f0b2aff80
2012-05-07 12:46:28 -07:00
Jan de Mooij
c85ebc6ad1 Bug 738525 - Add IC for getters backed by a JSNative. r=bhackett
--HG--
extra : rebase_source : 7ad0e6625985cb6349285f918570b9aa4ac2780e
2012-05-07 21:17:48 +02:00
Bill McCloskey
e0fc180960 Bug 743879 - Eliminate lazy atoms (r=Waldo) 2012-05-07 10:13:04 -07:00
Bill McCloskey
939bc668ca Bug 743879 - Backout for build errors (r=bustage) 2012-05-07 10:27:10 -07:00
Boris Zbarsky
d1653e4647 Bug 751077. Skip binding for the XPConnect-default property ops as well when resolving properties on a sandbox prototype. r=bholley 2012-05-07 13:26:50 -04:00
Bill McCloskey
b084713e6c Bug 743879 - Eliminate lazy atoms (r=Waldo) 2012-05-07 10:13:04 -07:00
Bill McCloskey
76240c5634 Bug 747926 - Preserve type tag when overwriting VM stack values (r=bhackett) 2012-05-07 10:12:58 -07:00
Bill McCloskey
cc31724901 Bug 748119 - Read barrier for js::types::Type (r=bhackett) 2012-05-07 10:12:52 -07:00
Bill McCloskey
b915404490 Bug 748119 - Disable verifier reachability check (r=bhackett) 2012-05-07 10:12:46 -07:00
Bill McCloskey
870e1b5096 Bug 749039 - Fixup registers when returning from methodjit (r=bhackett) 2012-05-07 10:12:30 -07:00
Bill McCloskey
f3dfffc509 Bug 715761 - Start to rewrite xpconnect TraceJS code (r=bholley) 2012-05-07 10:01:50 -07:00
Bill McCloskey
41e825178d Bug 715761 - Replace xpconnect automarker macros with templates (r=bholley) 2012-05-07 10:01:44 -07:00
Bill McCloskey
f7ce0e4046 Bug 715761 - Move xpconnect mark bits (r=bholley) 2012-05-07 10:01:39 -07:00
Bill McCloskey
58f1dc82f3 Bug 715761 - Add a comment explaining xpconnect (r=bholley) 2012-05-07 10:01:33 -07:00
Mike Hommey
a854db03ef Bug 751865 - Avoid Preprocessor.py applying filters to file names given on the command line. r=ted 2012-05-07 14:17:47 +02:00
Terrence Cole
83449f6079 Bug 750547 - Remove unused dead branch in js_AtomizeString; r=Waldo
--HG--
extra : rebase_source : e063dae5c05d8da3687e7ce73465e74a49067ccb
2012-04-30 16:20:10 -07:00
Terrence Cole
a14beaf2df Bug 750577 - Use self rooters as needed; r=bhackett
These rooters were introduced in 745742, but not used throughout the method.
2012-04-30 18:08:19 -07:00
Jason Orendorff
a22ef01d98 Bug 738479 - Debugger.Script objects whose referents are non-compile-and-go are crashy. Also fixes bug 746973. r=jimb.
--HG--
extra : rebase_source : 406065559a1e26485503b6d1e4d7eeea9070321f
2012-05-04 10:49:13 -05:00
Jason Orendorff
85d1454321 Bug 725733 - Fix crash in ScriptAnalysis::addTypeBarrier with Debugger. r=billm.
--HG--
extra : rebase_source : eb7726d3857bb4e0f89a7f669fb2791415979e86
2012-05-03 14:37:35 -05:00
Jason Orendorff
13f5b11204 Only run jit-tests under valgrind if we built the JS engine with valgrind.h. Bug 725733, r=jimb.
--HG--
extra : rebase_source : 06d41845a5f16a05e2483cbfaa254fda5d343c98
2012-05-03 14:36:11 -05:00
Adam
aea645da31 Bug 727331 - JS OOM Testing: Assertion failure: !rt->gcRunning, at js/src/jsgc.cpp:2990. r=billm.
--HG--
extra : rebase_source : 5ce0763977c233adeb8a97402a936e3226991671
2012-05-01 10:37:00 -05:00
Jason Orendorff
68ca935eed Bug 749316 - Put Debugger object into chrome scratchpad. r=dcamp,bholley.
--HG--
extra : rebase_source : 12ab275ac9cdfa0e9890c507e30e0b56e4086816
2012-05-01 10:17:32 -05:00
Jason Orendorff
f103f34e07 Bug 745802 - JS OOM Testing: Crash [@ js::HeapId::operator jsid]. r=bhackett.
--HG--
extra : rebase_source : ef4e762c3e63cbcc09247f861c4d7c030b389b10
2012-04-26 15:57:29 -04:00
Jason Orendorff
fb673ebaff Bug 749693 - JS shell global doesn't need JSCLASS_HAS_PRIVATE or its_finalizer. r=jandem.
--HG--
extra : rebase_source : cd46a6909564fb1f3a4e557df17cae3deed2e458
2012-04-27 14:42:55 -04:00
Tom Schuster
f98222b4a5 Bug 648526 - Constant folding in array and object literals. r=bhackett 2012-05-02 16:12:07 +02:00
Tom Schuster
de678b547a Bug 749620 - Add missing power of 10 for edge case. r=luke 2012-05-02 16:11:00 +02:00
Nathan Froyd
2153c0cc8f Bug 746238 - pack TypeCallsite and TypeCompartment better; r=bhackett 2012-04-17 14:00:20 -04:00
Doug Turner
68e34b4226 Bug 738465 - implement device light sensor. r=smaug 2012-05-02 09:43:45 -07:00
Doug Turner
63408865d2 Bug 738131 - implement device proximity. r=smaug
* * *
Bug 738131 - implement device proximity. gonk implementation. r=mwu
2012-05-02 09:43:45 -07:00
Jeff Walden
6c0b5b116e Disable a small bit of debug code when compiling with MSVC as a temporary workaround for a compiler bug. Hopefully a semantically-equivalent workaround can be found in the longer term, but in the short term this at least makes debug Windows shell builds compile again, in a way dmandelin thinks is at least not unreasonable. Another followup to bug 745472, split out for clarity, r=themaid
--HG--
extra : rebase_source : 3f211be919bbc567167859daabb4c41ef2677fbe
2012-05-03 19:17:19 -07:00
Jeff Walden
86d0005dc0 Fix Windows build warnings, followup to bug 745742. r=themaid
--HG--
extra : rebase_source : e660c857ebbd1f8592bb04a1da5cc542cf3e0098
2012-05-03 19:03:13 -07:00
Ryan VanderMeulen
801656068b Bug 575688 - Follow-up so that new test only runs in shell. r=orange 2012-05-03 20:58:28 -04:00
Luke Wagner
b6994d3f36 Bug 690135 - remove some bits of jsdbgapi and shell (r=jorendorff)
--HG--
extra : rebase_source : 6741e97b5279c41ec1b9a08fbf5e693b17820106
2012-04-25 18:19:06 -07:00
Luke Wagner
71816740dc Bug 746839 - rm FunctionBox::methods and CleanFunctionList (r=jimb)
--HG--
extra : rebase_source : 710be6cb5a9cb7684bb0e6310a7715edb3a713f3
2012-04-18 17:10:41 -07:00
Luke Wagner
aa93de78f3 Bug 747554 - Parsing destructuring short-hand should note name use like normal identifiers (r=waldo)
--HG--
extra : rebase_source : 8ed0f8e4228b6704c064703707760abb017ed346
2012-05-02 09:36:55 -07:00
Steve Fink
2c59d5586c Bug 730208 - UnmarkGray fixups for globals and contexts. r=billm
A common source of potential black -> gray edges is JSAPI calls made on objects with gray globals or contexts holding gray globals. (The call could potentially update a black object with a pointer to that global.) This patch mostly traps places where contexts are used, and unmarks their globals. It also includes some more global unmarking.

--HG--
extra : rebase_source : 835c1d6b4a7f7a11571412075ae8847475079edd
2012-03-14 09:32:58 -07:00
Steve Fink
d62b8ed0a7 Bug 730208 - Root JSD's pet global so it can't participate in CC cycles. r=billm
--HG--
extra : rebase_source : 9bf6a12faedab111efee048af0e543b2c1881782
2012-03-20 21:29:47 -07:00
Steve Fink
80175b16ed Bug 730208 - XPConnect changes to UnmarkGray some more objects and return them for convenience. r=mccr8
--HG--
extra : rebase_source : ddbfd05ec43868d39c26b1c37cac7e81522df29f
2012-03-20 21:22:40 -07:00
Steve Fink
ce400592c2 Bug 730208 - Implement js::IsIncrementalBarrierNeededOnScript. r=billm
--HG--
extra : rebase_source : c5ee6063a72e251b1b4ef08aa2d97b6d8364a0e1
2012-04-27 10:53:07 -07:00
Steve Fink
cb33167c33 Bug 575688 - Implement DataView from Typed Arrays spec. r=Waldo
--HG--
extra : rebase_source : b351000320c910c905be386cf71a9933cfe01a0f
2012-03-25 19:14:27 -07:00
Steve Fink
7aee790f0d Bug 741039 - Modify TypedArrays and ArrayBuffers to comply with the WebIDL spec. r=Waldo
WebIDL 4.4.6 says Float32Array.prototype is not a platform object and should throw TypeErrors when any of the Float32Array attributes is accessed. This patch makes obj->isTypedArray only succeed for actual TypedArray instances, and adds TypeErrors when special properties are retrieved from the prototypes.

This patch also eliminates some lingering uses of TypedArray::getTypedArray and makes it and getArrayBuffer static within jstypedarray.cpp. (Both are used for objects whose prototypes are typed arrays or array buffers.)

--HG--
extra : rebase_source : 93032b5c8dc98c4e18eec4fa438f6a9a4173487d
2012-04-23 15:13:02 -07:00
Jeff Walden
9b9677ab81 Bug 751377 - Rename PropertyTable to ShapeTable, so that the new property representation can use the PropertyTable name in the interim while both representations are compiled but only one is used. r=bhackett
--HG--
extra : rebase_source : 43867f7bc935fd5ba41e93ea9f25e4bd8af60d4d
2012-05-02 14:33:17 -07:00
Jeff Walden
4e206e4c68 Bug 751003 - Move Cell, Chunk, Arena, ArenaHeader, FreeSpan, ChunkInfo, ChunkBitmap, your mom into a new gc/Heap.h header that doesn't have any used-but-not-defined traps for the unwary #include-r. r=billm
--HG--
extra : rebase_source : 0cf117e91b1eb8f5eef801c5190380bf988b67a5
2012-05-01 20:04:36 -07:00
Jeff Walden
bc60b350a5 Bug 750907 - Move the marking declarations out of jsgcmark.h and into a header with minimal dependencies. r=billm
--HG--
rename : js/src/jsgcmark.cpp => js/src/gc/Marking.cpp
rename : js/src/jsgcmark.h => js/src/gc/Marking.h
extra : rebase_source : 3eb96a33102f0b76438dbb79ecb46e817bc1b767
2012-05-01 14:30:18 -07:00
Johnny Stenback
fecdb93ec9 First part of bug 749392. Stop exposing 'clear' in our shells in preparation of removing the underlying JS_ClearScope() API. r=jwalden 2012-05-03 15:52:45 -07:00
Matt Brubeck
6772a57f47 Back out 682bf201edde, ef35ba222ac8, and 6a20cf61289d (bug 750907, bug 751003, bug 751377) because of build failure on a CLOSED TREE
--HG--
rename : js/src/gc/Marking.cpp => js/src/jsgcmark.cpp
rename : js/src/gc/Marking.h => js/src/jsgcmark.h
2012-05-03 14:55:52 -07:00
Jeff Walden
53e0262149 Bug 751377 - Rename PropertyTable to ShapeTable, so that the new property representation can use the PropertyTable name in the interim while both representations are compiled but only one is used. r=bhackett
--HG--
extra : rebase_source : a49a6b1386ee1d8be5653c5c4f4c2089bc6bf297
2012-05-02 14:33:17 -07:00
Jeff Walden
6af2dd5471 Bug 751003 - Move Cell, Chunk, Arena, ArenaHeader, FreeSpan, ChunkInfo, ChunkBitmap, your mom into a new gc/Heap.h header that doesn't have any used-but-not-defined traps for the unwary #include-r. r=billm
--HG--
extra : rebase_source : 5ef81fb9032ac5c13fb4cf2a6107a0f63343caa1
2012-05-01 20:04:36 -07:00
Jeff Walden
2044564243 Bug 750907 - Move the marking declarations out of jsgcmark.h and into a header with minimal dependencies. r=billm
--HG--
rename : js/src/jsgcmark.cpp => js/src/gc/Marking.cpp
rename : js/src/jsgcmark.h => js/src/gc/Marking.h
extra : rebase_source : 2829c44da4316ceb6af0f4627158e337dd6ba28a
2012-05-01 14:30:18 -07:00
Jeff Walden
0cf5a73fad Remove TypeIsUint8Clamped as it's now unused. No bug, r=sparky
--HG--
extra : rebase_source : e23d48ea20a8e5bdd10e1e62579993ec30d40170
2012-04-30 14:55:19 -07:00
Jeff Walden
41df0eddf0 Pass the raw typed array element by reference when converting it to a Value. Followup to bug 749933 noted by Ms2ger, r=lumpy
--HG--
extra : rebase_source : 74d838c57ce3448d588d94e5d63f298a06d850a2
2012-04-29 22:27:57 -07:00
Jeff Walden
6bb77ade78 Fix bool-to-pointer conversion warnings. Followup to bug 749617, r=themaid
--HG--
extra : rebase_source : d3849ed4d0f7501a45875a50314cddd66443b098
2012-05-03 02:00:23 -07:00
Rafael Ávila de Espíndola
6f47befabe Bug 555727 - Select clang over llvm-gcc if gcc-4.2 is not available. r=ted. 2012-05-03 17:01:29 -04:00