Commit Graph

19011 Commits

Author SHA1 Message Date
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
Steve Fink
2709146cb8 Bug 748937 - Switch JSD destroyScript signature from JSContext -> JSFreeOp. r=jorendorff
This is a warning fix only; JSD doesn't use the argument anyway.

--HG--
extra : rebase_source : 9529bdbfbb387cc03b29abef780e45abb881ed43
2012-04-27 11:49:57 -07:00
Steve Fink
94a69a3b1a Bug 751396 - Fire slice callbacks only for "outer" GCs. r=billm
--HG--
extra : rebase_source : d30a5157d0f87bbc691ddf1cd0598974d0e509fc
2012-05-03 12:32:37 -07:00
Andrew McCreight
dcc0543487 Bug 744103, part 4 - Remove nsCycleCollectionLanguageRuntime. r=smaug 2012-05-03 12:28:11 -07:00
Andrew McCreight
a6b24a3344 Bug 744103, part 3 - Change NoteRoot to NoteJSRoot and NoteNativeRoot. r=smaug 2012-05-03 12:28:11 -07:00
Andrew McCreight
3ac11cfc5b Bug 744103, part 2 - Change NoteScriptChild to NoteJSChild. r=smaug 2012-05-03 12:28:10 -07:00
Peter Van der Beken
25970d2711 Fix for bug 744772 (Trace the DOM interface object array). r=bz.
--HG--
extra : rebase_source : c9f27bed0eab0e6db03295050176ef986cf0b59b
2012-05-02 14:49:43 +02:00
Jan de Mooij
baf385a1c9 Bug 749663 - Rename isCompileable to isJaegerCompileable. r=bhackett
--HG--
extra : rebase_source : f2215a721eb97610253d52e66cbb0e5b37a53a63
2012-05-03 12:13:44 +02:00
Marco Castelluccio
26aae65fb6 Bug 751280 - Remove 2-arg form of xpc_FastGetCachedWrapper. r=bholley 2012-05-03 06:22:58 -04:00
Joey Armstrong
4f2ec63c86 Bug 739710 - Makefile.in edits to use mkdir_deps function: file batch #2. r=ted 2012-05-03 06:22:33 -04:00
Gary Kwong
72229ff69e Bug 736746 - Remove js_IsMathFunction since it was only used in tracer and tracer is long gone. r=billm 2012-05-02 11:18:44 -04:00
Julian Seward
361868acd5 Bug 733863 - Initialise outparams in callee (LoopState::getEntryValue) rather than at all call points. r=bhackett 2012-05-03 06:22:33 -04:00
Luke Wagner
2b2f0ea130 Bug 720753 - hoist EvalCache from JSCompartment into JSRuntime (r=igor) 2012-05-03 09:12:48 +02:00
Luke Wagner
e511623bf4 Bug 720753 - hoist ToSourceCache from JSCompartment into JSRuntime (r=cdleary) 2012-05-03 09:12:48 +02:00
Luke Wagner
5da4eef5a8 Bug 720753 - hoist NativeIterCache from JSCompartment into JSRuntime (r=bhackett) 2012-05-03 09:12:47 +02:00
Luke Wagner
4f7cf0b974 Bug 720753 - hoist NewObjectCache from JSCompartment into JSRuntime (r=bhackett) 2012-05-03 09:12:47 +02:00
Luke Wagner
712afdc579 Bug 720753 - hoist JaegerCompartment and MathCache from JSCompartment into JSRuntime (r=bhackett,njn) 2012-05-03 09:12:47 +02:00
Luke Wagner
64c39528ee Bug 720753 - hoist scriptFilenameTable from JSCompartment into JSRuntime (r=igor) 2012-05-03 09:12:47 +02:00
Luke Wagner
f80844498f Bug 650353 - Implement Compartment-Per-Global in XPConnect. r=mrbkap 2012-05-03 09:10:12 +02:00
Luke Wagner
aa6d7ccb08 Bug 722775 - rm sameGroupAs. r=mrbkap 2012-05-03 09:10:10 +02:00
Kyle Huey
9d19220495 Bug 750183 - Don't nuke chrome->chrome cross-compartment wrappers. r=bholley 2012-05-03 09:10:08 +02:00
Landry Breuil
3238222b67 Bug 691898 - Use YARR regexp interpreter instead of PCRE on platforms where YARR JIT is not supported r=dmandelin
PCRE doesn't build anyway.
2012-05-03 08:41:30 +02:00
Mike Hommey
0c684fb324 Bug 561973 - Install js shell when running make install from js/src. r=jimb 2012-05-03 08:40:40 +02:00
Boris Zbarsky
32c7f6e634 Bug 742217. Reduce the use of nested namespaces in our binding code. r=peterv,bent
In the new setup, all per-interface DOM binding files are exported into
mozilla/dom.  General files not specific to an interface are also exported into
mozilla/dom.

In terms of namespaces, most things now live in mozilla::dom.  Each interface
Foo that has generated code has a mozilla::dom::FooBinding namespace for said
generated code (and possibly a mozilla::bindings::FooBinding_workers if there's
separate codegen for workers).

IDL enums are a bit weird: since the name of the enum and the names of its
entries all end up in the same namespace, we still generate a C++ namespace
with the name of the IDL enum type with "Values" appended to it, with a
::valuelist inside for the actual C++ enum.  We then typedef
EnumFooValues::valuelist to EnumFoo.  That makes it a bit more difficult to
refer to the values, but means that values from different enums don't collide
with each other.

The enums with the proto and constructor IDs in them now live under the
mozilla::dom::prototypes and mozilla::dom::constructors namespaces respectively.
Again, this lets us deal sanely with the whole "enum value names are flattened
into the namespace the enum is in" deal.

The main benefit of this setup (and the reason "Binding" got appended to the
per-interface namespaces) is that this way "using mozilla::dom" should Just
Work for consumers and still allow C++ code to sanely use the IDL interface
names for concrete classes, which is fairly desirable.

--HG--
rename : dom/bindings/Utils.cpp => dom/bindings/BindingUtils.cpp
rename : dom/bindings/Utils.h => dom/bindings/BindingUtils.h
2012-05-03 00:35:38 -04:00
Ehsan Akhgari
1f46a45045 Merge mozilla-central into mozilla-inbound on a CLOSED TREE 2012-05-02 21:52:33 -04:00
Matt Brubeck
e3b7b8e191 Merge mozilla-central and mozilla-inbound 2012-05-02 15:58:11 -07:00
Bobby Holley
8bc0b852b9 Bug 750859 - Remove {Disable,Revert}Capability. r=bz, PGO helper on CLOSED TREE 2012-05-02 23:57:43 +02:00
Bobby Holley
37471e102e Bug 750859 - Remove (most of) SetCanEnableCapability. r=bz 2012-05-02 23:57:34 +02:00
Luke Wagner
3fd46e14d2 Bug 749617 - Optimize js::CloneScript (r=njn,a=not-libxul)
--HG--
extra : rebase_source : a18f454312960f048b0ef15a3b3b7d48f9ba49f8
2012-05-01 20:39:05 -07:00
Luke Wagner
f3f59663e8 Bug 749617 - improve getLocalNamesArray (r=waldo,a=not-libxul)
--HG--
extra : rebase_source : 184c3644798da9bca23da017f6f9a53e28711930
2012-05-01 15:45:01 -07:00
Luke Wagner
28cc1f08ca Bug 749617 - rm XDRState::codeString (r=njn,a=not-libxul)
--HG--
extra : rebase_source : de4e8eba904cd44a7b3d99edd85d841a359b83d5
2012-05-01 14:01:06 -07:00
Christian Holler
46073c5af4 Bug 749588 - Remove set_limits in jit_test.py, r=dmandelin
--HG--
extra : rebase_source : 98b9b32f10030f3605d88b904d749ac30b98c824
2012-04-30 22:01:29 -04:00
Ehsan Akhgari
1264cba321 Backout changeset b0200dab0ccc to revert the incorrect backout of an fx-team range (no bug)
This is the range I mistakenly backed out before:
http://hg.mozilla.org/mozilla-central/pushloghtml?changeset=bc5fee76550b
2012-05-02 16:11:19 -04:00
Ehsan Akhgari
077dde163d Backout the latest merge from fx-team because of Ts regressions (no bug) 2012-05-02 15:37:08 -04:00
Tim Taubert
467f00c214 merge m-c to fx-team; a=js-only 2012-05-02 15:36:57 +02:00
Jim Blandy
af6268930f Bug 750368: Help 'make xpcshell-tests' find 'mozinfo' Python module. r=ted 2012-05-01 16:54:45 -07:00
Jeff Walden
a79459cb17 Fix some optimized-build warnings, neither yet reported as far as I know. No bug, r=themaid 2012-04-28 10:09:27 -07:00
Jeff Walden
ccee3f6a26 Fix build warnings introduced by bug 745057, bug 739380, and bug 746036 (warnings reported as bug 749951 and bug 749933, and in bug 746036 itself). r=chucktesta 2012-04-28 09:58:30 -07:00
Jeff Walden
b41816bb37 Remove an unnecessary jsdate.h #include from jsobjinlines.h, and add a new one to vm/GlobalObject.cpp, significantly reducing the number of files compiled when jsdate.h changes. No bug, r=sparky 2012-04-26 18:58:30 -07:00
Joey Armstrong
086dd72141 Bug 743243 - Add isTargetStem makefile function. r=ted 2012-04-28 11:16:12 -04:00
Gabor Krizsanits
4ab96d9a72 Bug 735280 - Part 3: Components object specific wrapper. r=bholley 2012-04-28 09:12:28 -04:00
Gabor Krizsanits
d3cb3d3e52 Bug 735280 - Part 2: Add pre-create to nsXPComponents. r=bholley 2012-04-28 09:12:27 -04:00
Gabor Krizsanits
e04309157b Bug 735280 - Part 1: Connect XPCWrappedNativeScope and Components. r=bholley 2012-04-28 09:12:27 -04:00
David Mandelin
a842c48399 No bug, update Handle documentation, r=NPOTB 2012-04-27 16:40:10 -07:00
Nicolas Pierron
396525c215 Bug 745057 part 2 - Rename FrameRegsIter to ScriptFrameIter. r=luke 2012-04-27 15:14:35 -07:00
Nicolas Pierron
fcda9df993 Bug 745057 part 1 - Abstract StackFrame in TypeObject::clearNewScript. r=luke 2012-04-27 15:14:34 -07:00
David Mandelin
0e160b9533 No bug, add header comments to Memory.h, r=none 2012-04-27 15:10:54 -07:00
Marty Rosenberg
92232bf982 Specify that the input to a gnu asm statemnt is also an output so gcc knows the value in the register gets clobbered (bug 749486, r=jbramley) 2012-04-27 14:58:03 -07:00
Eddy Bruel
8266662238 Bug 703537: Removing the fix trap r=jorendorff@mozilla.com 2012-04-27 17:09:32 -04:00
Justin Lebar
1cb8e5461d Bug 741652 - Followup: Remove incorrect comment. DONTBUILD 2012-04-27 13:46:45 -04:00
Peter Van der Beken
d4809c1dce Fix for bug 723465 (Make finalize for DOM list bindings use XPConnect).
--HG--
extra : rebase_source : e4df7d98765aaa2c600044d69f8714568f1d6109
2012-04-27 10:15:40 +02:00
Peter Van der Beken
7d387b6e1a Fix for bug 741267 (UserScript's XMLHttpRequest is undefined in 20120401 nightly).
Pass two objects when creating a DOM interface object, the global used to cache
the DOM interface objects and a receiver object on which the named property is
that points to the DOM interface object.

--HG--
extra : rebase_source : b462393e7376fdb68f3b279ccd08b3ab25ac154a
2012-04-23 16:10:56 +02:00
Gijs Kruitbosch
ae54e2bc78 Bug 539095 - Expose high-res timers to web content (performance.now()). r=bz, sr=smaug
--HG--
extra : transplant_source : o%9F%061%D4%B5%7D%5C%FB%95%5D%16%27%DEKU%EC%21%3AR
2012-04-27 09:22:06 +02:00
Makoto Kato
04cb76033f Bug 747311 - autodetect android_toolchain on Android/x86. r=glandium 2012-04-27 14:45:38 +09:00
Phil Ringnalda
1f0b033b16 Merge m-c to m-i 2012-04-26 21:40:59 -07:00
Ed Morley
9da8d22547 Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-04-26 13:46:02 +01:00
Kyle Huey
7f0a8a30db Bug 695480: Remove support for chrome code leaking DOM objects. r=jst,billm,bholley 2012-04-25 21:03:53 -07:00
Andrew McCreight
a9c6928a04 Bug 678615, part 2: remove FinishCycleCollection. r=smaug 2012-04-25 08:10:09 -07:00
Andrew McCreight
a5af270e47 Bug 678615 - remove ExplainLiveExpectedGarbage. r=smaug sr=peterv 2012-04-25 08:10:09 -07:00
Ed Morley
bf37d98c17 Backout afab1aaf6704 & 0405d42629fd (bug 747197), 0379525bbdca (bug 746262), 91b9cba098f8 (bug 745944), 8535dc5b590a (bug 741040) for win debug bustage 2012-04-25 09:54:34 +01:00
Mike Hommey
79542a4d88 Bug 747870 - Properly align XPCLazyCallContext::mData. r=bholley 2012-04-25 09:09:08 +02:00
Mike Hommey
3f4029bbf4 Bug 743241 - Remove OSARCH and OSTYPE defines from config.mk. r=ted 2012-04-25 09:01:10 +02:00
Mike Hommey
a7c8845018 Bug 508942 - Use Preprocessor.py filters in #defines and #includes. r=ted,r=pike
Original patch by Markus Stange.
2012-04-25 09:00:57 +02:00
Matt Brubeck
d5da39b00f Back out bug 730208 and bug 747543 because of xpcshell test failures 2012-04-24 20:47:16 -07:00
Ryan VanderMeulen
d485f6d4b3 Backout 0b170d1f5d10 (bug 735280) due to red. 2012-04-24 22:09:23 -04:00
Gabor Krizsanits
f58f1c2ecd Bug 735280 - Part 3: Components object specific wrapper. r=bholley 2012-04-24 21:48:02 -04:00
Gabor Krizsanits
8abef4d8c3 Bug 735280 - Part 2: Add pre-create to nsXPComponents. r=bholley 2012-04-24 21:48:01 -04:00
Gabor Krizsanits
e6e268bb09 Bug 735280 - Part 1: Connect XPCWrappedNativeScope and Components. r=bholley 2012-04-24 21:47:54 -04:00
Ehsan Akhgari
a992263c77 Merge mozilla-central into mozilla-inbound 2012-04-24 21:29:44 -04:00
Ehsan Akhgari
30412417b6 Merge the last green PGO changeset from birch to mozilla-central 2012-04-24 20:54:12 -04:00
Patrick Wong
30fd6e9e6a Bug 745659 - Removed the nsPrintfCString constructor which takes a length and all corresponding instances that call that particular constructor. This is accomplished by removing the length component from the instantiation. r=jlebar 2012-04-24 14:43:00 -04:00
Lukas Blakk
d7f942d541 Merging in version bump NO BUG a=relman 2012-04-24 12:54:16 -04:00
Bobby Holley
90ecba456e Bug 743615 - Add the JS_{Read,Write}StructuredClone api. r=jorendorff 2012-04-24 12:58:07 +02:00
Ehsan Akhgari
dadbef66ac Merge mozilla-central into birch 2012-04-24 10:49:42 -04:00
Ehsan Akhgari
624b7c422e Merge from mozilla-central 2012-04-23 18:17:44 -04:00
Kyle Huey
a2478f9645 Bug 747245: Fix a silly weak reference assertion. r=bent a=mfinkle 2012-04-23 14:14:10 -07:00
Ehsan Akhgari
06098487ea Merge mozilla-central into birch 2012-04-22 16:10:35 -04:00
Mike Hommey
90af61ce13 Bug 749573 - Declare run-mozilla.sh and xpcshell as SDK_BINARY. r=ted 2012-04-30 08:05:34 +02:00
Mike Hommey
d278e617c4 Bug 748739 - Link stdc++compat as a static library, and always link it when STDCXX_COMPAT is enabled. r=ted
--HG--
rename : build/stdc++compat.cpp => build/unix/stdc++compat/stdc++compat.cpp
2012-04-30 08:03:59 +02:00
Nathan Froyd
9428e4b221 Bug 746228 - pack JSPropertyDescriptor better on 64-bit hosts; r=luke 2012-04-17 13:45:38 -04:00
Josh Matthews
6b9a8a5fe2 Bug 729204 - Make docshell privacy notifications work across multiple processes. r=bz 2012-04-19 20:13:20 -04:00
Ehsan Akhgari
3f561f1dad Merge mozilla-central into birch 2012-04-20 13:50:08 -04:00
Ehsan Akhgari
b0555ad014 Merge mozilla-central into birch 2012-04-19 10:03:36 -04:00
Myk Melez
fd7a6dd8f7 bug 746156 - isolate webapp runtime files into subdirectory of Firefox package; r=bsmedberg, a=akeybl 2012-04-19 00:39:52 -07:00
Terrence Cole
2fbb8b9a80 Bug 746356 - Ignore js files in the root test dir; r=dmandelin, a=blassey
We should not be skipping computing their relative name, we should be skipping
them completely.

--HG--
extra : rebase_source : 3d2477afa62861afd0599f6448daf59acae7c268
2012-04-18 17:47:54 -07:00
Boris Zbarsky
e6901a65af Bug 742168. Refer to experimental bindings, not Paris bindings, in the pref code, since it will only control a subset of the Paris bindings. r=peterv 2012-04-18 12:02:04 -04:00
Ginn Chen
686a05800d Bug 689916 testing for regexp crash on SPARC r=dmandelin a=test-only 2012-04-18 18:41:10 +08:00
Marco Bonardo
8fd56f3066 Merge last green PGO from inbound to central 2012-04-17 15:31:58 +02:00
Olli Pettay
d796636855 Bug 731875 - Geolocation doorhanger might cause a zombie compartment, GeoPositionOptions part, r=dougt 2012-04-16 22:08:48 +03:00
Luke Wagner
5ea21f7058 Bug 745236 - fix f.apply(arguments) optimization bug 2 (r=bhackett,a=lsblakk)
--HG--
extra : rebase_source : cda098b51a867bf32f1486bc5b9170c3c747af9a
2012-04-13 09:55:13 -07:00
Luke Wagner
96f6d99742 Bug 745236 - fix f.apply(arguments) optimization bug 1 (r=bhackett,a=lsblakk)
--HG--
extra : rebase_source : 2cb0944ca1beaa25f38d47180d73eb1cbaf0d285
2012-04-13 09:55:12 -07:00
Nicholas Nethercote
c96eedd250 Bug 739512: Patch 4: move JS{Const,Object,TryNote}Array into the |js| namespace. r=sfink. 2012-04-10 23:51:12 -07:00
Nicholas Nethercote
eb58a727b0 Bug 739512: Patch 10: add JSScripts::hasConsts() et al. r=dvander. 2012-04-10 23:51:10 -07:00
Jeff Walden
528084de61 Bug 739380 - Start to implement a [[HasProperty]] hook, per the proto-climbing refactoring, for elements. r=bhackett 2012-04-10 16:33:44 -07:00
Nicholas Nethercote
08dc2dae6b Bug 744311 (part 1) - Preliminary whitespace and code order changes. r=jlebar.
--HG--
extra : rebase_source : f700733d8aa1aed1ae1f9206b4ee9063f9a03341
2012-04-09 22:52:33 -07:00
Boris Zbarsky
7e0db46628 Bug 748237. Only do the c++11 stuff for clang here, since otherwise we get scary warnings with gcc on android. r=luke 2012-04-26 00:43:00 -04:00
Boris Zbarsky
e2ed0fe94a Bug 747815. Use const strings for arguments in DOM bindings. r=peterv 2012-04-26 00:42:03 -04:00
Ryan VanderMeulen
3d3d4922c1 Backout a0b3af4ac9f5 (bug 735280) due to Android jsreftest orange. 2012-04-25 21:59:36 -04:00
Luke Wagner
423a1ad7a5 Bug 748212 - Tolerate n layers of wrapping around a RegExp (r=bholley)
--HG--
extra : rebase_source : 1f53df440672630bf309bef3af40b313fa8bf4f4
2012-04-25 18:18:46 -07:00
Gabor Krizsanits
0f38ab4f31 Bug 735280 - Part 3: Components object specific wrapper. r=bholley 2012-04-25 20:12:33 -04:00
Gabor Krizsanits
07fb83f53a Bug 735280 - Part 2: Add pre-create to nsXPComponents. r=bholley 2012-04-25 20:12:33 -04:00
Gabor Krizsanits
a9ded93717 Bug 735280 - Part 1: Connect XPCWrappedNativeScope and Components. r=bholley 2012-04-25 20:12:33 -04:00
Steve Fink
ab02777c4d Bug 748109 - realpath -> abspath. r=terrence
--HG--
extra : rebase_source : 72dffb16b58fec41babde5aba3160e8da67782d1
2012-04-25 15:02:23 -07:00
Jeff Walden
977628bb34 Bug 739380 - Start to implement the [[SetP]] hook from the proto-climbing refactoring. r=bhackett 2012-04-09 16:03:23 -07:00
Jeff Walden
665121450d Bug 739380 - Start to implement the default [[GetP]] hook from the proto-climbing refactoring for the various element types. r=bhackett 2012-04-10 16:33:44 -07:00
Jeff Walden
f4b90c866f Bug 747197 - abs works on ints, fabs works on doubles, grasshopper. Smallest bugfix ever. r=terrence 2012-04-26 17:19:04 -07:00
Nicholas Nethercote
809407a18d Bug 745068 - Minor front-end cleanups. r=jorendorff.
--HG--
extra : rebase_source : 29e7d06bc87f19c0d0a8fe239af9219e6c255032
2012-04-16 15:35:31 +10:00
Brian Hackett
831bd99f78 Stop precisely tracking arguments and locals beyond a 1000 variable threshold, bug 735974. r=dvander 2012-04-15 21:38:53 -07:00
Brian Hackett
a21f8c5a5d Check type compatibility when coercing RootedVar to Handle, bug 745361. r=luke 2012-04-15 21:19:44 -07:00
Justin Lebar
5766598758 Bug 741378 - Rejigger the js memory reporters to match jemalloc's. r=njn 2012-04-16 12:20:54 +10:00
Justin Lebar
b391903730 Back out changeset 21f34fdd64a3 (bug 741378) because it breaks telemetry. r=me 2012-04-16 11:34:00 +10:00
Justin Lebar
dbb7a3bbac Bug 741378 - Rejigger the js memory reporters to match jemalloc's. r=njn 2012-04-16 11:17:26 +10:00
Bobby Holley
1037d6c217 Bug 745483 - Don't assert that TI is enabled when the pref is disabled. r=jdm 2012-04-15 17:54:03 -07:00
Bobby Holley
b0e37aa6d8 Bug 743843 - Introduce the options object for Components.Exception. r=Ms2ger,sr=mrbkap 2012-04-15 17:51:37 -07:00
Bobby Holley
50e6634137 Bug 743843 - Ditch the confusing switch-based parsing and add some comments. r=Ms2ger 2012-04-15 17:51:36 -07:00
Bobby Holley
1e648b7690 Bug 743843 - Factor individual argument parsers into helper methods. r=Ms2ger 2012-04-15 17:51:36 -07:00
Bobby Holley
d8267ab1e1 Bug 743843 - Factor out Exception argument parsing into a helper class. r=Ms2ger
For ease of reviewing, note that there are only 2 changes to the big switch statement:
1 - return ThrowAndFail(...) -> return false.
2 - eMsgBytes -> messageBytes
2012-04-15 17:51:36 -07:00
Bobby Holley
d3e1c85a70 Bug 745422 - Factor fundamental traps into js::AbstractWrapper. r=gal 2012-04-15 16:43:14 -07:00
Ms2ger
1de8ab38d4 Bug 742893 - Part a: Make xpc_qsValueTo{Uint,Int}64 public; r=bholley 2012-04-14 15:07:31 +02:00
Ms2ger
c6ce9f7d79 Bug 741349 - Get rid of the mozilla::xpconnect::memory namespace; r=bholley 2012-04-14 15:05:19 +02:00
Ms2ger
a37d5dbaac Bug 741347 - Remove nsIXPConnect::DefineDOMQuickStubs, call DOM_DefineQuickStubs directly instead; r=bholley 2012-04-14 15:05:17 +02:00
Alessandro Decina
efe31886e6 Bug 422540 - GStreamer backend for audio/video decoding. r=cdouble, a=npotb 2012-04-18 18:33:13 -04:00
Ehsan Akhgari
ce3ea50465 Merge the last green PGO changeset on mozilla-inbound into mozilla-central; a=me 2012-04-18 16:18:04 -04:00
Bill McCloskey
59e67136ab Bug 731837 - Fix GC mark time regression from IGC (r=igor,a=tracking-firefox) 2012-04-17 12:40:30 -07:00
Jeff Walden
4c415c06fb Bug 736591 - Reduce the amount of string allocation attempted in ecma_5/RegExp/regress-617935.js to hopefully reduce intermittent orange. (The limit the test previously checked is no longer correct, so the allocation need not be repeated quite so many times as it was before this patch.) r=luke 2012-04-16 17:34:36 -07:00
Christian Holler
826d2446be Bug 734976 - Call js_ReportOutOfMemory in jsgcinlines when simulating OOM. Original patch by Brian Hackett. r=luke,bhackett,jdemooij 2012-04-14 11:37:32 -07:00
Nicolas Pierron
71deb3e9bf Bug 745360 - Native calls are not function frames. r=luke 2012-04-13 18:27:57 -07:00
Luke Wagner
4cfaa1893c Fix warnings in js/src (no bug, rs=dvander) 2012-04-13 18:03:33 -07:00
Mark Capella
2599ced77f Bug 723530 - double error reporting in ctype JS api implementation, r=bholley 2012-04-27 12:47:00 +02:00
Terrence Cole
9558f83778 Bug 748397 - Do not use non-standard format chars in gcStats; r=billm
It turns out that %F is not in the standard for SuSv2 which apparently covers
the printf family.  This does the float printing in a hackier, but portable, way.
2012-04-26 15:21:19 -07:00
David Mandelin
a0c8c20d80 Bug 746036 diagnostic: crash on compartment mismatch entering JS_ExecuteScript, r=billm
--HG--
extra : rebase_source : ca6212351aa4e40ab3038aa45bda3329ab367f0c
2012-04-26 16:09:53 -07:00
Joey Armstrong
09aeb22041 Bug 746151 - re-add approved patch edits that were merged away - r=coop 2012-04-26 18:12:20 -04:00
Bobby Holley
c48d120359 Bug 747749 - Remove call to JS_SetGlobalObject in mozJSComponentLoader. r=luke 2012-04-26 20:40:11 +02:00
Ms2ger
7cc668adc9 No bug - NULL isn't a boolean (JS_InitCTypesClass edition); rs=Waldo 2012-04-26 20:02:33 +02:00
Jeff Walden
a6e60df408 Bug 746262 - Augment PropDesc so that it can represent the absence of a property by adding an isUndefined() method and bit, and checking it in all the relevant accessors. r=jorendorff
--HG--
extra : rebase_source : 45b29d3f65a9e01119f01d9a30f574038abcaea1
2012-04-18 15:06:30 -07:00
Jeff Walden
ccb5b52398 Bug 745944 - Make PropDesc assert propriety of access in its accessors, and privatize all PropDesc fields. r=jorendorff
--HG--
extra : rebase_source : 4c39a5437f7940684c9bc3624ca6d6f06579576e
2012-04-10 11:08:28 -07:00
Jeff Walden
0972875ad9 Bug 747197 - Rename TIMECLIP to TimeClip to match the spec spelling (also as it's no longer a macro). r=luke
--HG--
extra : rebase_source : f4a1b1dc841e01fbd8a5d444ae7b6d29882b09e6
2012-04-19 16:22:08 -07:00
Jeff Walden
36690ba6dd Bug 747197 - Move basic numeric conversion operations (double->uint32_t, double->int32_t, double->integer, but not Value->* just yet) into vm/NumericConversions.h, a header with minimized dependencies. r=luke
--HG--
extra : rebase_source : 9adeb7048427d501dddc4a13b735309f7b1207c6
2012-04-19 16:18:24 -07:00
Terrence Cole
6a05a0781a Bug 746236 - Fix make -C builddir jstestbrowser; r=ted.mielczarek
Broken by Bug 735549.
2012-04-17 11:40:57 -07:00
Terrence Cole
2d151c6a22 Bug 746829 - Group jsreftest options by category; r=dmandelin
Should be a mild usability improvement.  Also reorganizes the code to make
future changes easier.
2012-04-19 18:12:41 -07:00
Terrence Cole
1586c62754 Bug 745322 - Make a relocatable version of HeapId; r=billm
We cannot put implicitly post-barriered items into memory managed outside the
GC.

--HG--
extra : rebase_source : 9d4c8db78d887642dd06e60788e9d514040e92e4
2012-04-16 13:05:47 -07:00
Brian Hackett
0079174207 Get rooting analysis to pass jit-tests in the interpreter, bug 745742. r=billm 2012-04-30 17:10:30 -07:00
Bill McCloskey
a300c149fe Bug 750416 - Fix error in restoreValueArray in JS GC (r=igor) 2012-04-30 16:00:10 -07:00
Bill McCloskey
dd35a638db Bug 750476 - Fix comment in gc/Barrier.h (r=NPOTB) 2012-04-30 13:51:55 -07:00
Justin Lebar
e7e161cf7f Bug 748440 - Part 1: Add heap-committed-unused and heap-committed-unused-ratio memory reporters, and rename some JS memory reporters to match. Also add back the js-gc-heap memory reporter. r=njn
--HG--
rename : browser/components/privatebrowsing/test/unit/test_privatebrowsing_telemetry.js => browser/components/privatebrowsing/test/unit/test_privatebrowsing_autostart.js
rename : browser/components/privatebrowsing/test/unit/test_privatebrowsingwrapper_telemetry.js => browser/components/privatebrowsing/test/unit/test_privatebrowsingwrapper_autostart.js
rename : security/manager/ssl/src/TransportSecurityInfo.cpp => security/manager/ssl/src/nsNSSIOLayer.cpp
rename : security/manager/ssl/src/TransportSecurityInfo.h => security/manager/ssl/src/nsNSSIOLayer.h
extra : rebase_source : 237a72f9b82f0e39dd0f15afa6056f231dc58358
2012-04-30 14:27:15 -04:00
Kyle Huey
2cfdab8b94 Bug 750253: Reorder generation of quickstubs header/cpp to avoid unnecessary rebuilds. r=ted 2012-04-30 12:30:00 -04:00
Mike Hommey
e551920d94 Bug 750290 - Remove tools/leaky. r=dbaron 2012-04-30 18:17:46 +02:00
Christian Holler
83e8abadfc Bug 749768 - Disable valgrind for jit-tests when running with AddressSanitizer, r=khuey 2012-04-30 10:23:12 -04:00
Joey Armstrong
293cde4260 bug 748130: Replace FORCE dependencies, repacks are a conditional force. r=ted 2012-04-27 17:00:00 -04:00
Terrence Cole
d0699e95a8 Bug 735549 - Generate the JS reftest suite's manifests automatically; r=dmandelin
--HG--
extra : rebase_source : 910bca5b40e37a69427cb3ab1332f24c00a0b2e7
2012-03-22 18:52:12 -07:00
Bobby Holley
dd4ac27670 Bug 745661 - Make TI assertion handle safe mode, too. r=khuey 2012-04-16 16:57:36 -07:00
David Anderson
f84d3b7b8d Remove more uses of JS_FrameIterator (bug 744617, r=mrbkap). 2012-04-16 12:30:04 -07:00
David Anderson
2b1abddde3 Remove simple JS_FrameIterator uses in xpconnect (bug 744617, r=bholley).
--HG--
extra : rebase_source : c206450cf46011543f58cded4c5aff2d49932afd
2012-04-16 12:25:28 -07:00
Ed Morley
8043672933 Backout 3e24a0ebd104 (bug 726949) for M-oth orange; a=backout 2012-04-19 12:28:43 -07:00
Boris Zbarsky
757816f10d Bug 726949. Instead of using the given proto for the sandbox directly, use a proxy that forwards to the given proto but rebinds all getters/setters/methods to use the given proto, not the sandbox global, as this. r=bholley, a=tracking-firefox
The code in XPCQuickStubs.h just moved from XPCQuickStubs.cpp.
2012-04-19 14:19:41 -04:00
Jason Orendorff
e126ffe211 Bug 738617 - Revert changeset 6d139ebc0f43 (bug 730139). Reserving let breaks some web sites. r=Waldo, a=mfinkle. 2012-04-18 15:07:11 -05:00
Steve Fink
e55dffb2ed Bug 747543 - Convert JIT registration API to use JITChunks nearly everywhere in place of JITScripts. r=bhackett
--HG--
extra : rebase_source : fd1ab3d4e24b8046b85421b29dfa96e1a74bf608
2012-01-30 16:13:24 -08:00
Steve Fink
c7e97d8358 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 : 1286bdbc4c337956242c292e0fa385629ee8850b
2012-03-14 09:32:58 -07:00
Steve Fink
2254cc2dd8 Bug 730208 - Root JSD's pet global so it can't participate in CC cycles. r=billm
--HG--
extra : rebase_source : 9211b881e0c0931bd7df16989bed492449b1c74f
2012-03-20 21:29:47 -07:00
Steve Fink
4642a9a56c Bug 730208 - XPConnect changes to UnmarkGray some more objects and return them for convenience. r=mccr8
--HG--
extra : rebase_source : a1d56aa4dc9dcf1fe280c42667710494f2481a7c
2012-03-20 21:22:40 -07:00
Steve Fink
34b8859f43 Bug 730208 - Implement js::IsIncrementalBarrierNeededOnScript. r=billm
--HG--
extra : rebase_source : 2f065e0dae6c2789b547b677eb0e8ebb466feec2
2012-04-24 16:29:03 -07:00
Ryan VanderMeulen
3e57646eb6 Bug 747243 - Fix MSVC warning with a little JS_FRIEND_API love. r=billm 2012-04-24 19:50:00 -04:00
David Rajchenbach-Teller
cbad079392 Bug 742384 - Have CDataFinalizer.dispose return a value. r=jorendorff 2012-04-13 23:56:03 +02:00
David Rajchenbach-Teller
ea91d88d16 Bug 720771 - Implement finalization for CData values. r=jorendorff 2012-04-05 15:06:25 +02:00
Jeff Walden
96258a9e18 Back out a9764c9ec124, d8aac2bd90db, d167f7fbb53e, and ca7b13e02cd5 for not-entirely-trivial build bustage. r=bustage 2012-04-24 16:47:28 -07:00
Jeff Walden
cc87d84154 Add a NumberValue(uint64_t) overload, and remove the size_t overload, as it might be the case that size_t and uint32_t, say, are the same type. Followup to bug 747197, r=bustage 2012-04-24 16:29:42 -07:00
Jeff Walden
5c44e93a18 Bug 739380 - Start to implement a [[HasProperty]] hook, per the proto-climbing refactoring, for elements. r=bhackett
--HG--
extra : rebase_source : a48f4fc318145fd1c089cfb5b4df05eb1ff4350c
2012-04-10 16:33:44 -07:00
Jeff Walden
c11d413423 Bug 739380 - Start to implement the [[SetP]] hook from the proto-climbing refactoring. r=bhackett
--HG--
extra : rebase_source : 80de606a7e0128b0e61b35af0f31b6b4876e6b6f
2012-04-09 16:03:23 -07:00
Jeff Walden
a4702eb04c Bug 739380 - Start to implement the default [[GetP]] hook from the proto-climbing refactoring for the various element types. r=bhackett
--HG--
extra : rebase_source : 0270610c88d3315023a4cc582abbaf62dcf8a1cc
2012-04-10 16:33:44 -07:00
Jeff Walden
129b85b9f5 Bug 747197 - Rename TIMECLIP to TimeClip to match the spec spelling (also as it's no longer a macro). r=luke
--HG--
extra : rebase_source : 28083b4eeeee68c829b8804545d3ad6bb5660561
2012-04-19 16:22:08 -07:00
Jeff Walden
4d293739ec Bug 747197 - Move basic numeric conversion operations (double->uint32_t, double->int32_t, double->integer, but not Value->* just yet) into vm/NumericConversions.h, a header with minimized dependencies. r=luke
--HG--
extra : rebase_source : a564ba8f6a4350c1c49359f08e9de44670b89aeb
2012-04-19 16:18:24 -07:00
Jeff Walden
6e1a835eec Bug 746262 - Augment PropDesc so that it can represent the absence of a property by adding an isUndefined() method and bit, and checking it in all the relevant accessors. r=jorendorff
--HG--
extra : rebase_source : 50294d6b3abd9c6730d7e369220efc831f240c6a
2012-04-18 15:06:30 -07:00
Jeff Walden
d00644a6ef Bug 745944 - Make PropDesc assert propriety of access in its accessors, and privatize all PropDesc fields. r=jorendorff
--HG--
extra : rebase_source : 56e51a95253f95442f09e441620b2fac3f758c53
2012-04-10 11:08:28 -07:00
Jeff Walden
947dd17a45 Fix class/struct mismatch warnings for js::ArrayBufferObject. Followup to bug 741040, r=chucktesta
--HG--
extra : rebase_source : c5f0daa4261896c8c5013872b1aa9cf367adeebc
2012-04-24 15:39:21 -07:00
Terrence Cole
ea3ceb90cb Bug 744880 - Make Relocatable HeapValue for use with manual post barriers; r=billm
We cannot have implicit post barriers run on any pointer that can be relocated
outside of the GC's control. This includes things like HashTables and Vectors.

--HG--
extra : rebase_source : 7bae3ab9e319be48c343be58d6858b43b743e581
2012-04-13 14:33:18 -07:00
Steve Fink
9ebaebb340 Bug 741040 - Make an ArrayBufferObject subclass of JSOBject. r=Waldo
--HG--
extra : rebase_source : 63dd1cc69cfae37203c1f037d5a4b0b5c5651e7b
2012-03-28 14:43:01 -07:00
Steve Fink
e304e9ec70 Bug 748109 - jstests.py cannot find any test cases. r=terrence
When I do:
  cd js/src/tests
  python jstests.py $js_bin js1_8_5/extensions

it is unable to find any tests to run because it's looking relative to the jstests.py script, but at least in this case that is a relative path (plain "jstests.py") so os.path.dirname(__file__) is the empty string and that doesn't seem to work very well.

--HG--
extra : rebase_source : 1cdc461680ceadba26fc512a50d9c7247a187744
2012-04-21 15:51:04 -07:00
Bill McCloskey
8f6f8fc771 Bug 744727 - Fix methodjit register alloc bug (r=bhackett) 2012-04-24 13:36:20 -07:00
Jim Mathies
f4ee5f8ac9 Bug 737969 - Win8 Metro build config. r=ted 2012-04-24 14:28:19 -05:00
Terrence Cole
14c6d5ad99 Bug 748397 - Fix broken JSON when there is a ',' in LC_NUMERIC; r=billm
--HG--
extra : rebase_source : 5e086466273671dbecacb7d877990250d428db6e
2012-04-24 11:25:20 -07:00
Tom Schuster
fde4c4d67e Bug 735036 - Check for OOM in debug only method. r=luke 2012-04-24 20:03:48 +02:00
Steve Fink
b2d8a8c429 Bug 747543 - Convert JIT registration API to use JITChunks nearly everywhere in place of JITScripts. r=bhackett
--HG--
extra : rebase_source : a2ccddb35663ee3365f1440133c59a69ba4babca
2012-01-30 16:13:24 -08:00
Steve Fink
d7670e4b2c Bug 748915 - Implement JS_IsArrayBufferViewObject
Also includes some warnings fixes.

--HG--
extra : rebase_source : 79f95f42db10a7ee20971dac3abd7364c4ef91f5
2012-03-28 14:43:01 -07:00
Matt Brubeck
db7e149288 Merge mozilla-central to mozilla-inbound 2012-04-13 14:09:05 -07:00
Nicolas Pierron
b013fffd14 Bug 744670 - Port StackIter modification of IonMonkey. r=luke 2012-04-13 13:45:01 -07:00
Jim Blandy
7cddb22750 Bug 743351: Implement Debugger.Script.prototype.staticLevel. r=jorendorff 2012-04-13 13:17:18 -07:00
Matt Brubeck
b950055584 Bug 745233 - Back out 33e485d0e23b, 26eb08593f89, ce72679ffb95, 10b783e85c1e (bug 720771, bug 742384) because of Linux64 PGO crashes 2012-04-13 10:40:27 -07:00
Matt Brubeck
b7d725d72a Back out e4c82a6b298c, 036194408a50, 39acc9f51df8 (bug 714647 and followups) because of test_finalizer.js crashes in Linux64 PGO builds 2012-04-12 22:07:43 -07:00
Jeff Walden
971c198c3d Attempt to fix OS X (gcc 4.2) build bustage. No bug, r=gcc-42-should-die 2012-04-12 18:32:25 -07:00
Jeff Walden
2e8482d1bf Fix clang JS shell build bustage. No bug, r=billm over irl 2012-04-12 18:15:26 -07:00
Luke Wagner
f5f4ed58b7 Bug 744842 - don't include actual args in error.stack.toString (r=dmandelin)
--HG--
extra : rebase_source : 66a780c6abfc4fadc7cc08ed97224296af20ad61
2012-04-11 18:07:44 -07:00
Jeff Walden
a7643a91b4 Bug 739380 - Convert the defineElement hooks to use an ECMAScript-style [[DefineOwnProperty]] interface, not the old-school SpiderMonkey defineProperty interface. r=bhackett
--HG--
extra : rebase_source : e43fcbfdb76c61b4ecd7a5f4b1d17aefa0d19f83
2012-04-09 15:15:46 -07:00
Joey Armstrong
e4b8ee53ac Bug 742835 - autotargets.mk: handle mkdir dot requests - r=ted 2012-04-13 14:44:24 -04:00
David Mandelin
0447d76457 Bug 736609: fix typo, r=sfink, a=akeybl
--HG--
extra : rebase_source : 4299196454f1a078ada48328a953d571efea9a4a
2012-04-12 11:54:47 -07:00
Bobby Holley
ac0a01ac3b Bug 744034 - Link the script context to the outer window earlier to ensure that we always have TI for content. r=mrbkap 2012-04-12 11:21:12 -07:00
Bill McCloskey
4212ec544a Bug 744489 - Fix incremental GC assertion in ValidateIncrementalMarking (r=igor) 2012-04-12 11:14:43 -07:00
Bill McCloskey
026a334c4f Bug 742843 - Clean up weakmap header (r=terrence) 2012-04-09 11:42:04 -07:00
Bill McCloskey
80d2dc87c2 Bug 740609 - Handle null filename (r=luke) 2012-04-12 11:03:45 -07:00
Bill McCloskey
2ae805f612 Bug 740509 - Trace through all type properties for non-GC tracers (r=bhackett) 2012-04-12 11:03:40 -07:00
Bill McCloskey
870b30c42a Bug 744285 - Fix conservative stack scanning for non-GC tracers (r=igor) 2012-04-12 11:03:20 -07:00
Brian Hackett
90b23329e3 Add most handles and stack rooters needed for exact scanning on shell benchmarks, bug 714647. r=billm 2012-04-12 09:23:51 -07:00
Nathan Froyd
70e094f740 Bug 614188 - Part 3: build double-conversion as a part of MFBT; r=Waldo 2012-04-09 12:05:11 -04:00
Terrence Cole
870bfd5f18 Bug 744192 - Assert that Vectors do not contain implicitly postbarriered types; r=luke
Since vectors move their memory around outside the control of the GC, it is not
valid to store an implicitly post-barriered item in a Vector.

--HG--
extra : rebase_source : 2cef4d855cc4e926cea872cda18e5cf29230f0a7
2012-04-11 17:14:11 -07:00
Bas Schouten
67b6c99e9f Bug 719776 - Part 2: Make MOZ_CRASH and MOZ_ASSERT expand inline. r=waldo 2012-04-12 02:03:07 +02:00
Brian Hackett
0adbe5e564 Use right compartment iterator when profiling scripts, bug 744611. r=billm 2012-04-11 15:54:55 -07:00
Terrence Cole
0335016a75 Bug 743868 - Fix barriers in SupressDeletedProperties; r=billm
Right now, we simply stop tracing through deleted properties. This causes us to
delete things that are still in the write buffer. We need to, in addition, set
the reference to NULL to ensure that the write buffer doesn't dereference these
dead entries.

--HG--
extra : rebase_source : add220d5fb47e0e3ffd767c9b5ebd6172df07671
2012-04-09 16:52:50 -07:00
Masatoshi Kimura
5ca99795f4 Bug 743049 - Part 1: Add a friend API to get an error type name from a number. r=luke 2012-04-11 17:55:22 -04:00
Masatoshi Kimura
23049011a9 Bug 730161 - Replace IDBDatabaseException and FileException with DOMException. r=sicking 2012-04-11 17:55:21 -04:00
Terrence Cole
50754226d0 No bug - Warning fix for 91357:fa24b215d49e; r=luke
--HG--
extra : rebase_source : 9d48a4a09cb54d711a24da41576ffc24d44a3cb4
2012-04-11 10:32:50 -07:00
Terrence Cole
946e7a9836 Bug 743896 - Fix failure misattribution in jstest runner; r=dmandelin
In the unix task runner, when we kill tasks, we should be checking and returning
bool if we kill so that we then run waitpid in timeout mode.  We weren't, so
tasks were never failing with timeout, only with failure.  It turns out that
this is not safe anyway: it will race against signal delivery.  We're better off
just removing this hack and letting the timeout cutoff be fuzzy.

--HG--
extra : rebase_source : cd44838e67cf541fd5741406e8c3f02ad7530f16
2012-04-11 10:02:33 -07:00
Nathan Froyd
547541ab7c Bug 743988 - unconditionally link PROGRAMS and SIMPLE_PROGRAMS with CXX; r=ted 2012-04-10 10:16:26 -04:00
Jan de Mooij
68d7e98ea7 Bug 742393 - Don't inline array.concat if the array prototype has indexed properties. r=bhackett 2012-04-11 18:49:42 +02:00
Phil Ringnalda
4348c0ace3 Back out 4b82f26f8593:2fcf9cbedd48 (bug 743393, bug 719776) for bustage 2012-04-11 09:06:40 -07:00
Bas Schouten
643a86cf44 Bug 719776 - Part 1 - Followup: Fix one more case of assuming ASSERT expands to an expression. r=bustage 2012-04-11 17:18:30 +02:00
Bas Schouten
57bf03284d Bug 719776 - Part 2: Inline MOZ_Assert and MOZ_Crash. r=waldo 2012-04-11 16:55:31 +02:00
David Rajchenbach-Teller
f5cecb0389 Bug 742384 - CDataFinalizer.dispose now returns a value. r=jorendorff 2012-04-11 10:46:19 +02:00
David Rajchenbach-Teller
1aa5a6da6a Bug 720771 - Implementing finalization for CData values. r=jorendorff 2012-04-05 15:06:25 +02:00
Mike Hommey
f1ca47c4d8 Bug 644608 - Implement full dependencies for expandlibs. r=ted
* * *
Bug 644608 - Fixups
2012-03-31 09:24:39 +02:00
Nicholas Nethercote
9d39f9ab68 Bug 739512: Patch 9: move JSScript::debug into a table. r=jorendorff. 2012-04-10 18:03:01 -07:00
Jeff Walden
ac5f9be17e Attempt to fix OS X (gcc 4.2) build bustage. No bug, r=gcc-42-should-die 2012-04-12 18:32:25 -07:00
Jeff Walden
5e9385a53d Fix clang JS shell build bustage. No bug, r=billm over irl 2012-04-12 18:15:26 -07:00
Brian Hackett
71506db37a Add most handles and stack rooters needed for exact scanning on shell benchmarks, bug 714647. r=billm 2012-04-12 09:23:51 -07:00
Nicholas Nethercote
1abc4ee40d Bug 739512 - Patch 8: move sourceMap into a table. r=jorendorff.
--HG--
extra : rebase_source : a986cf630b84c9b531e6179afce57b0e8c69d1ff
2012-04-09 19:56:04 -07:00
Andrew McCreight
0f2d884b02 Bug 744272. disable test_watchpoints due to bogus failures. rs=billm 2012-04-10 18:43:22 -07:00
Nicholas Nethercote
3f9ad62aaf Bug 739512 - Patch 7: move scriptCounts into a table (attempt 2). r=bhackett. 2012-04-10 18:41:42 -07:00
Nicholas Nethercote
5d6764adf5 Backed out changeset fdd10e0e6e5e (bug 739512) due to 32-bit bustage. 2012-04-10 18:36:08 -07:00
Nicholas Nethercote
05656f8fc7 Bug 739512 - Patch 7: move scriptCounts into a table. r=bhackett. 2012-04-09 19:50:06 -07:00
Jeff Walden
23a4858cfa Bug 743878 - Move uint8_clamped and associated machinery into ObjectImpl.h, so that the new object representation can use it as well. r=sfink 2012-04-09 15:14:59 -07:00
Terrence Cole
766f061885 Backed out changeset a43eb4a2d2fd 2012-04-10 17:03:25 -07:00
Terrence Cole
431a41bf56 Bug 744192 - Assert that Vectors do not contain implicitly postbarriered types; r=luke
Since vectors move their memory around outside the control of the GC, it is not
valid to store an implicitly post-barriered item in a Vector.
2012-04-10 16:43:54 -07:00
Luke Wagner
b17d72e8f5 Fix --disable-methodjit bustage (no bug, r=red) 2012-04-10 14:57:15 -07:00
Luke Wagner
398d1b2cdc Bug 740259 - add ALIASEDVAR ops, assert they are used iff the variable is aliased (r=bhackett,waldo,jorendorff,dherman) 2012-03-24 12:29:36 -07:00
Luke Wagner
7b63a166b8 Bug 740446 - make 'arguments' more like a normal local binding (r=bhackett) 2012-04-02 08:58:30 -07:00
Luke Wagner
df74b15a74 Bug 740259 - Assert that dynamic binding access is expected (r=bhackett) 2012-03-16 12:02:37 -07:00
Luke Wagner
2fd1b31a43 Bug 740259 - Tighten assertions around closed-var noting (r=bhackett) 2012-03-28 16:36:57 -07:00
Brian Hackett
82d6dfefe1 Treat FILTER and ENDFILTER as unknown ops, bug 740595. r=luke 2012-04-10 12:59:38 -07:00
Brian Hackett
f07d7134e6 Remove bogus assert, bug 727476. r=luke 2012-04-10 12:56:59 -07:00
Brian Hackett
ff26f41a91 Avoid assert botch in makeLazyType after types have been nuked, bug 734978. r=luke 2012-04-10 12:36:26 -07:00
Brian Hackett
0f2b8a2a2b Don't botch assert after OOM while constructing object's lazy type, bug 735016. r=luke 2012-04-10 12:27:13 -07:00
Brian Hackett
8f6d99798b Bail out from on calling functions if an OOM occurs while during initial bytecode analysis, bug 727341. r=luke 2012-04-10 12:24:46 -07:00
Brian Hackett
8bd6082ef9 Preserve invariant between saved array and lifetime variables' saved fields on OOM during analysis, bug 735045. r=luke 2012-04-10 12:16:42 -07:00
Brian Hackett
2f124d21ed Nuking types should be recognized as a recompilation by enclosing monitors, bug 735012. r=dvander 2012-04-10 12:10:04 -07:00
Brian Hackett
1ff7271386 Don't botch assert after OOM while linking ICs, bug 727344. r=dvander 2012-04-10 12:07:26 -07:00
Terrence Cole
ae810f2b36 Bug 744052 - Restructure HashTable::checkOverflow for easier reading; r=luke
When I added this function, I just copied the existing logical structure.  It
makes more sense here to check overflowed and return early, since we can do this
now.
2012-04-10 09:51:48 -07:00
Ehsan Akhgari
54572a4311 Merge mozilla-central into mozilla-inbound 2012-04-10 11:12:26 -04:00
Ehsan Akhgari
0e0d82c20e Merge the last PGO-green changeset from mozilla-inbound into mozilla-central 2012-04-10 11:11:37 -04:00
Igor Bukanov
b600b7db2f Bug 743559 - Remove unused JSRuntime::xml_singleton fields. r=:Waldo
The patch removes unused  anynameObject and functionNamespaceObject fields in JSRuntime.
2012-04-10 11:57:29 +02:00
Terrence Cole
49d3da6509 Bug 743885 - Fix OOM handling regression in HashTable; r=luke
Introduced by me in bug 722946.
2012-04-09 19:07:11 -07:00
Kyle Huey
a321486239 Refix bug 741248 harder. r=me 2012-04-09 17:41:22 -07:00
Brian Hackett
dc3c33f7c6 Don't disable call ICs with the callee frame still on the stack, bug 743088. r=luke 2012-04-09 17:33:42 -07:00
Nicholas Nethercote
69aced89c8 Bug 742163 (follow-up) - Unbreak --disable-methodjit. r=Ms2ger. 2012-04-09 16:41:27 -07:00
Nicholas Nethercote
2e5124c468 Bug 739512 - Patch 2b: rename nClosed{Args,Vars}() as numClosed{Args,Vars}(). r=luke. 2012-04-09 16:37:16 -07:00
Matt Brubeck
0f3bc5ceb0 Merge last green changeset from inbound to mozilla-central 2012-04-09 10:05:48 -07:00
Takanori MATSUURA
714abf89d4 Bug 743433 - Remove .orig files which were accidentally added by bug 680246. r=khuey 2012-04-07 08:48:23 -04:00
Igor Bukanov
5220367ed1 Bug 737364 - part 2 - replace JSContext with JSRuntime in the GC-related API
This part replaces the JSContext *cx argument in most GC-related API
with JSRuntime *rt. When possible, the patch removes the code to obtain
a temporary cx just to run the GC.

The patch also removes JS_DestroyContextMaybeGC. That function is not
used in FF code base and its implementation is broken. It requires that
the context has an entered compartment when it is destroyed, which in
turns implies a missing leave compartment call.
2012-03-28 12:13:30 +02:00
Kyle Huey
e680841744 Fix Bug 743376. r=bz 2012-04-06 17:44:50 -07:00
Mike Hommey
f486d1cc20 Backout bug 644608 for subtly breaking layout/media build 2012-04-06 13:57:24 +02:00
Mike Hommey
63b2524d81 Bug 644608 - Implement full dependencies for expandlibs. r=ted 2012-03-31 09:24:39 +02:00
Mike Hommey
a4aae87aec Bug 741287 - Make expandlibs_gen.py error out when given a missing file. r=ted 2012-04-06 10:16:25 +02:00
Terrence Cole
efc8bb37f1 Bug 730452 - Trigger post barriers on moveDenseArrayElements; r=billm
We cannot do this per-element because it is too slow.  Instead we have a special
storebuffer entry for this case so we can do all work at gc time.

--HG--
extra : rebase_source : 7e48184d38b442b2bdba38553cf93f9d629debf1
2012-04-05 17:56:53 -07:00
Jim Blandy
7fd66f3128 Bug 733461: Implement the 'query' parameter of Debugger.prototype.findScripts. r=jorendorff 2012-04-05 17:10:44 -07:00
Bill McCloskey
2811c81de8 Bug 739899 - Fix clang warning (rs=terrence) 2012-04-05 17:05:34 -07:00
Bill McCloskey
83c4e91ed6 Bug 739899 - Fix orange 2012-04-05 16:50:40 -07:00
Terrence Cole
73120263f6 no bug: Warning fix at predeclaration of AutoCompartment; r=jorendorff 2012-04-05 16:31:26 -07:00
Bill McCloskey
65a72b84c2 Bug 742570 - Improve shell control of incremental GC (r=igor) 2012-04-04 15:07:36 -07:00
Bill McCloskey
6e3982b839 Bug 742570 - Improve GC testing functions (r=igor) 2012-04-03 14:07:38 -07:00
Bill McCloskey
90e65d2fdb Bug 742570 - Change API for compartment GCs (r=igor) 2012-04-03 12:23:11 -07:00
Bill McCloskey
3ace6566fe Bug 742570 - Remove the compartment option for gczeal (r=igor) 2012-04-03 11:41:56 -07:00
Bill McCloskey
1eff4f5687 Bug 739899 - Eliminate the distinction between full and compartment GCs (r=igor) 2012-04-02 18:29:11 -07:00
Luke Wagner
7c8c1d4b3f Bug 743034 - Fix script proto exec. r=bholley 2012-04-05 15:44:55 -07:00
Gabor Krizsanits
c306ffc838 Bug 733035 - postMessage support for sandboxes. r=khuey 2012-04-05 18:33:20 -04:00
Bobby Holley
5fdde2f486 Bug 739825 - Push principals when entering compartments in structured clone. r=mrbkap 2012-04-05 14:02:34 -07:00
Igor Bukanov
050d51e5ff Bug 737364 - part 1 - stop using the cx in the GC implementation
This part removes JSContext::gcBackgroundFree, moves all mark-related
cleanup code to run right after the marking is done for clear mark/sweep
separation and eliminates all JSContext references in the GC
implementation. That allowed to remove a wait for the bakground
finalization to finish in js_DestroyContext. As a followup for the bug
737365 the patch also replaces in few cases the JSContext argument with
FreeOp in infallible code that only free/destroy things.
2012-03-25 09:48:45 +02:00