Commit Graph

18767 Commits

Author SHA1 Message Date
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
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