Commit Graph

18360 Commits

Author SHA1 Message Date
David Anderson
47563b2221 Remove JS_GetScriptedCaller (bug 732652, r=luke,mrbkap,bholley,smaug,bent). 2012-03-06 15:33:12 -08:00
Bill McCloskey
7350c309b0 Bug 734763 - Fix gcMallocAndFreeBytes (r=gregor) 2012-03-12 13:26:37 -07:00
Peter Van der Beken
1fa35e65ac Add new DOM binding for SVG list classes. r=jst.
--HG--
extra : rebase_source : ce84f9457d7b9a14a0a65db5c643938d0e0e05bc
2011-08-22 11:14:13 +02:00
Peter Van der Beken
1af6427c5c Fix for bug 734506 (Fix DOM list binding generation - fix bad argument throwing). r=jst.
--HG--
extra : rebase_source : b71d386827bb0114be6e68a696270868e487fe1c
2011-10-14 23:52:31 +02:00
Peter Van der Beken
fecd70f1c9 Fix for bug 734506 (Fix DOM list binding generation - add includes for all types). r=jst.
--HG--
extra : rebase_source : 113e8e7e98dfea4b67cfa5e08bd281c5f105ab92
2011-10-14 23:18:41 +02:00
Peter Van der Beken
7d74b1e87c Fix for bug 734508 (Add new DOM binding for SVG list classes). r=jst.
--HG--
extra : rebase_source : c32d2fd124093ae437f000655bba7f3a5f17d99d
2011-08-22 11:14:13 +02:00
Peter Van der Beken
fbde930e20 Backout 790be8926d50 to fix commit message
--HG--
extra : rebase_source : 930b7802b35784ef5d70ed359d5d9932013ad62d
2012-03-12 21:13:23 +01:00
Luke Wagner
9cf872a8c8 Bug 732496 - Pop 'sp' after TypeScript::Monitor (r=bhackett)
--HG--
extra : rebase_source : d57dc5b437699cfc9722730c60e0887fe4099208
2012-03-02 15:51:58 -08:00
Peter Van der Beken
c58bd05f01 Fix for bug 734505 (Add new DOM binding for FileList). r=jst.
--HG--
extra : rebase_source : 7a563b1af70c24f9117b813016b7a37612e92431
2011-08-22 11:14:13 +02:00
Peter Van der Beken
24c158b037 Fix for bug 734503 (Add new DOM binding for TouchList). r=jst.
--HG--
extra : rebase_source : 701eb8d9a60ffa981ebcd24f426109bd70cc5cbf
2011-08-22 11:14:13 +02:00
Peter Van der Beken
38d1d644ce Fix for bug 734499 (Add new DOM binding for PaintRequestList). r=jst.
--HG--
extra : rebase_source : 37f4a1ea723db150abc07d66c6f167c27fd9c354
2011-08-22 11:14:13 +02:00
Peter Van der Beken
b0f18cd351 Fix for new bug 734497 (Add new DOM binding for ClientRectList). r=jst.
--HG--
extra : rebase_source : 1cc96b94d21940ac1ed75ec6d46d9c2964fc54a0
2011-08-22 11:14:13 +02:00
Mark Capella
32b24f306f Bug 595926 - Purge last traces of REQUIRES from the build system. r=khuey 2012-03-12 10:22:57 +01:00
Daniel Holbert
8b79621c1a merge m-c tip over to m-i 2012-03-11 15:40:05 -07:00
Ms2ger
05ab4b800a Bug 733872 - Use JS_GetObjectPrototype in XPCWrappedNativeScope::SetGlobal; r=bholley 2012-03-11 09:43:22 +01:00
Christian Holler
1c16cd9f04 Bug 733493 - Improve JS shell OOM testing code, now with 100% less bustage. r=jorendorff 2012-03-10 15:53:03 -05:00
Christian Holler
069b313705 Bug 727326 - Add missing js_ReportOutOfMemory calls in methodjit code. r=bhackett 2012-03-10 15:52:28 -05:00
Gary Kwong
38ac40f69f Backed out changeset 6169d8aa7a9d, a=tbplFire 2012-03-10 12:12:54 -08:00
Gary Kwong
ea5517586d Backed out changeset 248590650201, a=tbplFire 2012-03-10 12:10:53 -08:00
Christian Holler
8d1cd73c37 Bug 727326 - Add missing js_ReportOutOfMemory calls in methodjit code, r=bhackett 2012-03-10 11:51:48 -08:00
Christian Holler
4cec72af96 Bug 733493 - Improve JS shell OOM testing code, r=jorendorff 2012-03-10 11:50:26 -08:00
Jim Blandy
9735b86a55 Bug 676281: Implement Debugger.prototype.findScripts. r=jorendorff 2012-03-02 17:19:56 -08:00
Luke Wagner
d449e79078 Bug 734129 - uncatchable exceptions should still pop cx->enumerators (r=dvander) 2012-03-09 16:25:50 -08:00
Jacek Caban
044bb03d64 Bug 733713 - xpcom/tests fail to compile on mingw r=glandium 2012-03-09 16:58:43 +01:00
Igor Bukanov
f0bddf0e88 bug 728250 - remove JSPrincipals::codebase. r=:luke,:bz
In just 2 cases where JSPrincipals::codebase is used it can be reconstructed from the values stored in the associated nsJSPrincipal. In addition the patch makes nsJSprincipals to inherit both from nsIPrincipal and JSPrincipals allowing to use static_cast to convert between nsIPrincipal and JSPrincipals pointers and to drop many cases of manual JSPrincipal reference counting.
2012-03-09 10:48:50 +01:00
Nicholas Nethercote
d539e72dcc Bug 732843 - Handle Callback() failures in memory multi-reporters. r=jlebar.
--HG--
extra : rebase_source : 54af85a1ef839922d5443cdc36f601611258944a
2012-03-04 15:26:30 -08:00
Makoto Kato
649f1a480a Bug 732328 - need os.close(fd) before os.remove(tmp) on expandlibs_exec.py. r=ted 2012-03-09 11:42:36 +09:00
Jeff Walden
08d94514e3 Bug 733602 - Various StringBuffer cleanups, mostly removing unimplemented methods. r=luke
--HG--
extra : rebase_source : 388d94bf9c332896d1b5d95aac53c4ca75e9fc97
2012-03-06 15:28:48 -08:00
Matt Brubeck
788b29276e Merge mozilla-central to mozilla-inbound 2012-03-08 16:27:40 -08:00
Olli Pettay
d0605c95d6 Bug 730891, event ctor for StorageEvent, r=sicking,kyle 2012-03-08 23:27:05 +02:00
Olli Pettay
3347eae726 Backout Bug 704259, a=bustage 2012-03-08 16:44:32 +02:00
Bill McCloskey
505905b4c3 Bug 732719 - Mark stack slot as undefined (r=bhackett) 2012-03-07 18:05:29 -08:00
Terrence Cole
47d7e443bb Bug 734196 - Updating the private pointer should not recurse when marking; r=billm
The private pointer is the only pointer update during GC marking that can invoke
unrelated code.  If this code triggers a write barrier, then this will recurse.
This patch adds a way to update private pointers without triggering a barrier,
explicitly for use by the GC during marking.
2012-03-08 15:05:21 -08:00
Christian Holler
c21903dcff Bug 727445 - Add --enable-address-sanitizer for ASan specific workarounds. Add --enable-llvm-hacks to pass CFLAGS to NSS and omit -Wl,-z,defs for shared libs. r=khuey,kaie 2012-03-07 15:11:15 -08:00
Marco Bonardo
33fb391942 Backout d68420c97e0e (bug 691898) as suspected of the jit tests failures 2012-03-07 14:06:03 +01:00
Rafael Ávila de Espíndola
39f9e9e4fa Bug 733504 - More workarounds llvm.org/pr12127. r=dvander. 2012-03-07 08:32:15 -03:00
Landry Breuil
e0c1723621 Bug 691898 - Use YARR interpreter instead of PCRE on platforms where YARR JIT is not supported. r=dmandelin 2012-03-07 12:06:19 +01:00
David Mandelin
19d20dfba2 Bug 733146: Add needed import to results.py, r=dmandelin 2012-03-06 18:54:42 -08:00
David Mandelin
18c6a84918 Bug 704259: part 2, don't set cx->generatingError in JS_ReportPendingException, r=luke 2012-03-06 18:49:05 -08:00
David Mandelin
b5df4ac13e Bug 704259: part 1, refactor use of cx->generatingError without changing behavior, r=luke 2012-03-06 18:49:00 -08:00
Luke Wagner
a379d7f023 Bug 733310 - factor out inc/dec interpreter logic (r=bhackett)
--HG--
extra : rebase_source : 10d8277f4446f97e9a158f740d1a398341ac2382
2012-03-06 00:52:42 -08:00
Luke Wagner
1c1f863e22 Bug 732744 - rm AutoPreserveEnumerators (r=dvander)
--HG--
extra : rebase_source : f28eebcf3a3e14f4db0299b07b28f8e7a783b84a
2012-03-06 00:43:45 -08:00
Igor Bukanov
167feb39a4 bug 730234 - remove GC locking from activities, operation callbacks-related code and for code that accesses the JSContext list. r=luke 2012-02-24 12:03:28 +01:00
Bobby Holley
15cc3d3069 Bug 731804 - nsXPCWrappedJSClass::GetNamedPropertyAsVariant should jsvalify strings _after_ changing compartments. r=peterv 2012-03-08 11:13:34 -08:00
Bill McCloskey
243c25adb7 Bug 730447 - Create a GC counter for malloc bytes (r=gregor) 2012-03-07 18:07:41 -08:00
Adam
88859a8624 Make "let" a reserved word for Web scripts. Bug 730139, r=jorendorff. 2012-03-02 18:28:29 -06:00
Jan de Mooij
8c30b1b55f Bug 732423 - Combine GETELEM and CALLELEM interpreter cases and fix some e4x/noSuchMethod bugs. r=bhackett 2012-03-08 12:18:27 +01:00
Mike Hommey
26a95c70bb Fixup for bug 603370. Re-sync build/autoconf/expandlibs.m4 with js/src 2012-03-08 09:15:51 +01:00
Mike Hommey
6b0bf74fce Bug 603370 - Avoid Identical Code Folding messing with symbol reordering. r=khuey 2012-03-08 08:56:28 +01:00
Mike Hommey
afd6044b69 Bug 603370 - Add an option to expandlibs-exec to allow to reorder the symbols when linking. r=khuey 2012-03-08 08:56:27 +01:00
Mike Hommey
03c23b4916 Backout changeset 283408b8d8a3 (bug 603370) 2012-03-08 08:39:17 +01:00
Mike Hommey
544b7a606d Bug 695711 - Always add -ffunction-sections and -fdata-sections when building with GCC, and port bug 670659 and bug 675867 to js/src. r=khuey
--HG--
rename : build/unix/check_debug_ranges.py => build/autoconf/check_debug_ranges.py
rename : build/unix/check_debug_ranges.py => js/src/build/autoconf/check_debug_ranges.py
2012-02-27 16:35:44 +01:00
David Mandelin
4b287e8788 Bug 733260 followup: use uint32_t for array and string lengths, r=luke
--HG--
extra : rebase_source : 1729b4b927fde0678872b9de62a7466381aa07c3
2012-03-06 15:52:55 -08:00
Bobby Holley
cdc3b32f77 Bug 731845 - XPCWrappedNative::ReparentWrapperIfFound should handle preserved wrappers. r=mrbkap 2012-03-05 16:58:59 -08:00
Gregory Szorc
9474ae8763 Bug 729098 - Part 1/2: Create xUnit XML results file when executing xpcshell tests; r=khuey 2012-03-06 15:03:34 -08:00
Bill McCloskey
5eebfa9576 Bug 731094 - Expose a testing function that permits only deterministic GCs (r=igor) 2012-03-06 11:39:31 -08:00
Bill McCloskey
8317610173 Bug 729369 - Expose the same set of SpiderMonkey testing APIs to debug shell and debug browser chrome (r=Waldo) 2012-03-06 11:38:44 -08:00
Terrence Cole
e0888901b5 Bug 733372 - Fix an infinite recursion in GC marking; r=billm
Since the private data is sometimes packed in strange ways into the underlying
structure, we cannot just pass a reference to it to the marker.  Instead, we
store the gotten value on the C stack, do marking and potentially update its
value there, then pass the updated privates location to the object using
setPrivate.  If the setPrivate function triggers write barriers that end up
marking, this can recurse.  For now we should simply not do this.

--HG--
extra : rebase_source : ce2607907cc66f8beaeab433e21ba302cbf1b34e
2012-03-06 11:30:25 -08:00
Matt Brubeck
2d824e1746 Back out 2fbc7d9ac670 (bug 731845) on suspicion of causing test_native_mouse_mac.xul timeouts 2012-03-06 11:05:37 -08:00
Mike Hommey
3dfdf56522 Bug 731151 - Avoid creating (and leaving around) an a.out during configure. r=khuey 2012-02-28 10:48:16 +01:00
Nicholas Nethercote
b9d2e7bc8e Bug 729403 (follow-up) - Use the right KIND for runtime/gc-marker, thus avoiding warnings about explicit mismatches. r=me.
--HG--
extra : rebase_source : 4625531f438d5e1e6a2e600134dee959a45e8204
2012-03-05 21:04:38 -08:00
Mark Hammond
460967a978 Bug 728986: dump() writes to stdout instead of stderr. r=bent 2012-03-06 15:44:37 +11:00
David Mandelin
77d336e566 Bug 733260: remove typedef jsuint, r=luke
--HG--
extra : rebase_source : e8f576e1b5b189b47807c613c0cff79f5c8038e7
2012-03-05 18:43:45 -08:00
Andrew McCreight
fa54e188c3 Bug 723971 - unmark gray for shapes. r=billm 2012-03-05 18:11:29 -08:00
Bobby Holley
2ac145bc8a Bug 731845 - XPCWrappedNative::ReparentWrapperIfFound should handle preserved wrappers. r=mrbkap 2012-03-05 16:58:59 -08:00
Bobby Holley
138146697b Bug 720580 - Assert that we have the global jsclass flag if and only if we're a global. r=mrbkap 2012-03-05 15:22:53 -08:00
Bobby Holley
d3345b4254 Bug 720580 - Assert against creating globals in xpc_NewSystemInheritingJSObject. r=mrbkap
With this patch, the only call to JS_NewGlobalObject in XPConnect happens in xpc_CreateGlobalObject. \o/
2012-03-05 15:22:45 -08:00
Bobby Holley
73485885f8 Bug 720580 - Do the last bit of wrapped global initialization once the dust has settled. r=mrbkap 2012-03-05 15:22:45 -08:00
Bobby Holley
e0a6e0b68d Bug 720580 - Kill temporary globals. r=mrbkap
This patch breaks the "every commit is a 100% correct tree" invariant a little bit, because constructors and prototypes for DOM globals are broken (PostCreatePrototype never gets called). This is fixed in the next patch. Doing it this way makes for a cleaner series of commits, and the browser still builds and runs fine.
2012-03-05 15:22:45 -08:00
Bobby Holley
06eb6e6126 Bug 720580 - Introduce XPCWrappedNative::WrapNewGlobal. r=mrbkap 2012-03-05 15:22:45 -08:00
Bobby Holley
df8c12c18b Bug 720580 - Call TraceDOMPrototypes via TraceXPCGlobal, and avoid the verification process for wrapped natives. r=mrbkap 2012-03-05 15:22:45 -08:00
Bobby Holley
8fbe582aea Bug 720580 - Make the call to PostCreatePrototype optional. r=mrbkap 2012-03-05 15:22:44 -08:00
Bobby Holley
ea2172967e Bug 720580 - Factor out the call to PostCreatePrototype into a helper method. r=mrbkap 2012-03-05 15:22:44 -08:00
Bobby Holley
9afaa4890f Bug 720580 - Accept an explicit native global during XPCWrappedNativeScope creation. r=mrbkap 2012-03-05 15:22:44 -08:00
Bobby Holley
8a333a7b50 Bug 720580 - Manually resolve |Object| on the global in XPCWrappedNativeScope::SetGlobal() to avoid calling into the XPConnect resolve hook too early. r=mrbkap 2012-03-05 15:22:44 -08:00
Bobby Holley
90f6c6474a Bug 720580 - Make JSID class initialization happen on demand. r=mrbkap 2012-03-05 15:22:44 -08:00
Bobby Holley
9c4024ecaa Bug 720580 - Modify the semantics of XPCWrappedNative::FinishCreate() so that it doesn't muck around with the refcounts of its inparam. r=mrbkap
The current semantics involve the caller transfering ownership of the input wrapper to FinishCreate(), which is complicated and error-prone. Now that we're using nsRefPtr at the callsites, we can get rid of it.
2012-03-05 15:22:44 -08:00
Bobby Holley
c1e81348b9 Bug 720580 - Use nsRefPtr instead of manual AddRef/Release in XPCWrappedNative::{GetNewOrUsed,Morph}. r=mrbkap 2012-03-05 15:22:44 -08:00
Bobby Holley
7f6929b9ff Bug 720580 - Move the AutoMarkingWrappedNativePtr in XPCWrappedNative::{GetNewOrUsed,Morph} closer to where we need it. r=mrbkap 2012-03-05 15:22:44 -08:00
Bobby Holley
15d04a0773 Bug 720580 - Stop passing isGlobal everywhere and use the nsIXPCScriptable flags instead. r=mrbkap 2012-03-05 15:22:44 -08:00
Bobby Holley
d3868262e8 Bug 720580 - Stop passing aExtraPtr to InitClassesWithNewWrapedGlobal. r=mrbkap
We only ever pass null here anyway, and this whole infrastructure is going away real soon now.
2012-03-05 15:22:44 -08:00
Bobby Holley
1a5208e617 Bug 720580 - Remove unnecessary aIID parameter from nsIXPConnect::InitClassesWithNewWrappedGlobal. r=mrbkap 2012-03-05 15:22:44 -08:00
Bobby Holley
a7519fcb64 Bug 720580 - Introduce a flag for global natives and assert that we have it. r=mrbkap 2012-03-05 15:22:44 -08:00
Bobby Holley
b1d50a8c93 Bug 720580 - Indicate free bits in nsIXPCScriptable.idl. r=mrbkap 2012-03-05 15:22:43 -08:00
Brian Hackett
fef4714ccf Don't use reference to freed contents of JIT script, bug 730806. r=dvander 2012-03-05 13:25:24 -08:00
Charles Chan
ae3662fc99 Bug 724736 - Move js::StringBuffer into js/src/vm/StringBuffer{-inl.h,.cpp}. r=jwalden
--HG--
extra : rebase_source : 69c3319801fbe80dbe0fc150680c9ffca2e519d9
2012-03-05 12:40:11 -08:00
Brian Hackett
5a694ed717 Ensure 'for' loops have a leading JSOP_NOP, bug 732776. r=dvander. 2012-03-05 12:45:14 -08:00
Jeff Walden
868086dce7 Bug 732669 - Box primitive values correctly when accessing properties of them. r=bhackett
--HG--
extra : rebase_source : c4c084557425e6d42b990ca22c10972fcc6697ce
2012-03-05 09:34:38 -08:00
Terrence Cole
191929071f Bug 728343 - Make unbarriered object marking interface indirect ; r=billm
This will allow us to move objects that are not wrapped in a HeapPtr.
2012-02-17 11:46:11 -08:00
Ed Morley
e63b667897 Backout afeafc02c1de, dfae37833c9b & f9f51c726fa7 (bug 729940 parts 1-3) for talos regressions 2012-03-05 15:22:28 +00:00
Justin Lebar
5b3d13a72b Bug 729940 - Part 2: Stop using crappy hash functions in the js engine. r=bhackett 2012-03-04 15:58:06 -05:00
Justin Lebar
2449f55f11 Back out bug 729940 (a108aee:d75775d) due to 32-bit red. 2012-03-04 14:20:34 -05:00
Justin Lebar
609b52cb35 Bug 729940 - Part 2: Stop using crappy hash functions in the js engine. r=bhackett 2012-03-04 13:49:41 -05:00
Jan de Mooij
3a4053f8e2 Bug 732693 - Fix bytecode emitted for o.__proto__(). r=bhackett 2012-03-03 16:27:51 +01:00
Matheus Kerschbaum
51254c73d0 Bug 687579 part 1: Remove globalStorage implementation. r=jst
Bug 687579 part 1: Remove globalStorage implementation. r=jst
2011-10-09 22:14:00 -04:00
Jeff Walden
b3f78d2c65 Silence a (newly introduced in) clang warning about adding an int to a string. No bug, r=trivial 2012-03-02 19:59:11 -08:00
Luke Wagner
6221ca4d35 Bug 730497 - preparatory parser sanity enhancements (r=jorendorff)
--HG--
extra : rebase_source : 4e89da8ce6b0f107fabd1944575c4c181283eeac
2012-02-27 16:36:04 -08:00
Luke Wagner
43d886c89e Bug 731724 - don't forget about function::arguments! (r=waldo)
--HG--
extra : rebase_source : e782e9f06b17a7ac5c46f990092c94595b1a92cd
2012-03-02 09:32:04 -08:00
David Mandelin
5606b83eed Bug 732306: Remove typedef jsint, r=luke
--HG--
extra : rebase_source : 4d15a8514dbd698c114fa688461e533afab68ffa
2012-03-01 18:54:01 -08:00
aceman
6c002f28d6 Bug 368758 - Remove obsolete workaround pref editor.quotesPreformatted. r=ehsan 2012-03-02 17:23:01 -05:00
Jim Blandy
06d97d28e8 Bug 674171: Implement Debugger.Frame.prototype.onPop. r=jorendorff 2012-03-02 12:12:14 -08:00
Jim Blandy
1529189f09 Bug 674171: Separate the construction of a completion value from the debuggee->debugger compartment transition. r=jorendorff
In class Debugger, split newCompletionValue into:
- resultToCompletion, which takes a standard SpiderMonkey (success, value,
  context's exception) triple and produces the corresponding
  (JSTrapStatus, value) pair; and
- newCompletionValue, which takes a (JSTrapStatus, value) pair and produces
  a JavaScript completion value.

Define receiveCompletionValue to do exactly what newCompletionValue used to
do: the above two operations, with a compartment 'leave' in the middle.
Substitute receiveCompletionValue where newCompletionValue is used now.
2012-03-02 12:12:14 -08:00
Jim Blandy
ef074ec9f3 Bug 674171: Make the JavaScript shell's 'evaluate' function to return a value. r=jorendorff
This simplifies writing tests, since one can use common structure around
uses of both 'eval' (which produces "eval" frames) and 'evaluate' (which
produces "global" frames).
2012-03-02 12:12:14 -08:00
Jim Blandy
6e9fd83118 Bug 674171: Define Debugger::FrameRange, for iterating over the Debugger.Frame instances referring to a given StackFrame. r=jorendorff 2012-03-02 12:12:14 -08:00
Jim Blandy
ef77be4778 Bug 674171: Delete hasDebugModeCodeToDrop, it is scratched^Wunused. r=jorendorff
I had a hard time writing a test case for this, so I gave up.
2012-03-02 12:12:13 -08:00
Peter Van der Beken
df30816ccc Fix for bug 732175 (Generate DOM list bindings that aren't controlled by the dom.new_bindings pref and remove old bindings for NodeList/HTMLCollection/HTMLOptionsCollection). r=jst.
--HG--
extra : rebase_source : 2eeeec059fe3467769ebcc5af01c8d472c2afbb6
2012-02-27 18:02:47 +01:00
Peter Van der Beken
615a5bd90d Fix for bug 717013 (Add new DOM binding for DOMTokenList). r=jst.
--HG--
extra : rebase_source : 6ae0abe3bbe33a140c62c193685e23529d44e6d4
2011-08-22 11:14:13 +02:00
Brian Hackett
85346e0340 Backout consolidation of pending arrays for switch targets, bug 730888. r=dvander 2012-03-01 17:48:32 -08:00
David Mandelin
620151a403 Bug 731898: Remove typedef jsrefcount, r=luke
--HG--
extra : rebase_source : 1e0c99c44a8d6d2807a647273b1d07691f8c983e
2012-03-01 11:43:17 -08:00
Jason Orendorff
7cc5b787c1 Add CallArgs::hasDefined convenience method. Bug 730676, r=luke.
--HG--
extra : rebase_source : 12e51485479c86a518300de28fe125e692dea4c6
2012-03-01 12:48:52 -06:00
Jason Orendorff
bb1b25e0ad Add static assertions as requested in bug 726298 comment 2 and 4.
--HG--
extra : rebase_source : 3edf2446076dae08c16b121de18505174c84f370
2012-03-01 12:48:47 -06:00
Ehsan Akhgari
9fc675a3c3 Bug 732162 - Build mobile profiling builds with -funwind-tables; r=khuey
--HG--
extra : transplant_source : 4O%F7%BA%94%0Fh%F6%5E%EA%10%E1%08%9E%D9S%A2XEd
2012-03-01 16:24:04 -05:00
Jim Blandy
f6127390e7 Bug 721642: Remove function proxy support from proxy_TraceObject. r=jorendorff
Function proxies will always call proxy_TraceFunction, which handles the
'call' and 'construct' slots.

This patch also moves the call to proxy_TraceObject from proxy_TraceFunction into
a tail position, so it could be compiled as a jump.
2012-03-01 12:59:24 -08:00
Marco Bonardo
f2e030c61b Backout 51bff179fa81 (bug 731898) for Android bustage 2012-03-01 21:57:14 +01:00
Bill McCloskey
df7308abde Bug 732087 - Change argc to nvars (r=luke) 2012-03-01 11:58:00 -08:00
David Mandelin
5c3e02ec67 Bug 731898: Remove typedef jsrefcount, r=luke 2012-03-01 11:43:17 -08:00
Bill McCloskey
8273a70134 Bug 731783 - Eliminate per-compartment barrier marker (r=igor) 2012-03-01 10:39:13 -08:00
Kai Engert
252380b29d Bug 728719, NSSUTIL_GetVersion, undefined reference during linking, r=glandium 2012-03-01 17:29:34 +01:00
Jason Orendorff
ee8650cf6e Make Map and Set constructors take a single iterable argument. Bug 726223, r=luke.
--HG--
rename : js/src/jit-test/tests/collections/Map-size-1.js => js/src/jit-test/tests/collections/Map-constructor-1.js
rename : js/src/jit-test/tests/collections/Map-size-2.js => js/src/jit-test/tests/collections/Map-size.js
rename : js/src/jit-test/tests/collections/Set-size-1.js => js/src/jit-test/tests/collections/Set-constructor-1.js
rename : js/src/jit-test/tests/collections/Set-size-2.js => js/src/jit-test/tests/collections/Set-size.js
2012-03-01 09:01:46 -06:00
Jason Orendorff
4d5d656510 Add Map.prototype.size and Set.prototype.size. Bug 726298, r=luke. 2012-03-01 09:01:45 -06:00
Jason Orendorff
33370f823d Add tests for some ancient watchpoint bugs (zombie setters!) and remove a senile line of code from obj_watch. Bug 604781, r=jimb. 2012-03-01 09:01:45 -06:00
Jason Orendorff
d7658cd226 Fix totally wrong OOM handling in MapObject.cpp. Bug 726218, r=luke. 2012-03-01 09:01:45 -06:00
Jason Orendorff
270528dd84 Fix "Assertion failure: isDenseArray() && idx < getDenseArrayInitializedLength(), at ../jsobjinlines.h:558" with for-of, Array, trailing holes. Bug 726212, r=Waldo. 2012-03-01 09:01:45 -06:00
Jason Orendorff
959ae996b6 Element iterators should use [[Get]] and not peculiarly ignore the prototype chain. Bug 725168, r=Waldo. 2012-03-01 09:01:45 -06:00
Jason Orendorff
2642e75e1e Reflect.parse("[,,,]") should make an ArrayExpression with .elements.length 3. Bug 630232, r=dherman. 2012-03-01 09:01:45 -06:00
Jason Orendorff
d52fe19668 Fix hilarious bug in js_malloc: it fails once every 2^32 allocations in DEBUG builds. Bug 730270, r=luke. 2012-03-01 09:01:45 -06:00
Igor Bukanov
212769b040 bug 723286 - remove JSContext * parameter from heap-traversal and related API. r=:billm 2012-02-29 21:23:38 +01:00
Steve Fink
440b7e4be9 Bug 730144 - Label objects with their mark colors when dumping the heap
--HG--
extra : rebase_source : 8bb1243f66610bde734a4f9063446a1b02bc0b68
2012-02-23 18:47:59 -08:00
Steve Fink
10453f7f06 Bug 719294 - Eliminate the bytecode space optimization where it omits the starting line number. r=luke
As per this comment:

/*
 * Special case: function definition needs no line number note because
 * the function's script contains its starting line number.
 */

But this is the only reason why you need a JSContext in js_PCToLineNumber, and I have a user that needs to do the lookup without a context.

--HG--
extra : rebase_source : 0807e755d5d7c1ecd6837ca4f6b8d4cc53e3f0b2
2011-06-06 14:11:08 -07:00
Bobby Holley
657226484b Bug 731471 - Don't reparent wrappers that don't want to move. r=peterv 2012-02-29 21:21:57 -08:00
Justin Lebar
62dbeeb1ab Bug 731789 - Rename mfbt/StdInt.h to mfbt/StandardInteger.h, so stdint types work from cpp files inside mfbt. r=waldo 2012-02-29 22:56:43 -05:00
David Mandelin
d385e9a7d7 Bug 731492: Remove obsolete typedef JSPackedBool, r=luke
--HG--
extra : rebase_source : 95423985f55547755a988ba19629678997bfa553
2012-02-28 19:03:57 -08:00
Matt Brubeck
b2985cd260 Back out 2778f515ed5a (bug 723286) on suspicion of causing OSX64 crashes 2012-02-29 16:18:22 -08:00
Jeff Walden
9ab7770713 Warning patrol. No bug, r=themaid
--HG--
extra : rebase_source : b7e56f8e95e76c35089ff48a26fb60f9a4708995
2012-02-28 18:08:04 -08:00
Igor Bukanov
d93ff2cec2 Bug 731618 - remove JSContext * parameter from heap iteration API. r=:Billm 2012-02-29 21:23:53 +01:00
Steve Fink
f84e5eb138 Bug 731450 - jstests.py needs to import subprocess.call. r=dmandelin
--HG--
extra : rebase_source : 307566ad1ad837dcd355440f378b755db3ae6afc
2012-02-28 17:15:26 -08:00
Steve Fink
b293326077 Bug 730144 - Label objects with their mark colors when dumping the heap. r=mccr8
--HG--
extra : rebase_source : 0eb7c558ec255cb26784522137a8b80746cbe140
2012-02-23 18:47:59 -08:00
Igor Bukanov
2e914758d0 bug 723286 - remove JSContext * parameter from heap-traversal and related API. r=:billm 2012-02-29 21:23:38 +01:00
Bill McCloskey
93c58d3937 Bug 731052 - Clean up incremental resets (r=igor) 2012-02-29 10:28:30 -08:00
Irving Reid
f62ddb349e Bug 731316: override warning about unsupported compiler warning flag on clang. r=respindola. 2012-02-29 10:20:42 -05:00
Rafael Ávila de Espíndola
5d8985e2ba Bug 731503 - fix typo. r=bustage. 2012-02-29 08:16:32 -05:00
Rafael Ávila de Espíndola
fcbba2ae84 Bug 731503 - workaround llvm.org/pr12127. r=dvander. 2012-02-29 08:04:26 -05:00
Igor Bukanov
9174f0c095 bug 730281 - remove cx argument from GC and compartment related functions. r=:billm 2012-02-29 13:18:16 +01:00
Phil Ringnalda
14ef276917 Back out 4537403fb911 (bug 731450), c9e48c19363a (bug 719294), 682dd844587b (bug 730144) for flambe 2012-02-28 19:07:40 -08:00
David Mandelin
838cb3c65a Bug 730523: remove jscompat.h, r=luke 2012-02-28 18:17:11 -08:00
Steve Fink
121049ce09 Bug 731450 - jstests.py needs to import subprocess.call. r=dmandelin
--HG--
extra : rebase_source : b80c2698e84b9744dbc7faeb2ce5654479f7b6d4
2012-02-28 17:15:26 -08:00
Steve Fink
1be7cb6acd Bug 719294 - Eliminate the bytecode space optimization where it omits the starting line number. r=luke
As per this comment:

/*
 * Special case: function definition needs no line number note because
 * the function's script contains its starting line number.
 */

But this is the only reason why you need a JSContext in js_PCToLineNumber, and I have a user that needs to do the lookup without a context.

--HG--
extra : rebase_source : 73064dbbbf31949d19c8f1e1b18eb4febf127c87
2011-06-06 14:11:08 -07:00
Steve Fink
fca4458cd8 Bug 730144 - Label objects with their mark colors when dumping the heap. r=mccr8
--HG--
extra : rebase_source : 14b88d188875dd2f1fe90b9e16af77ef81018fde
2012-02-23 18:47:59 -08:00
David Mandelin
60e80d55b6 Bug 730511: remove obsolete typedefs intN, uintN, r=luke 2012-02-28 15:11:11 -08:00
Nathan Froyd
fe59904f37 Bug 731248 - Remove duplicate headers in js/src. r=luke 2012-02-28 12:01:52 -05:00
Luke Wagner
9a5b28542d Bug 731181 - Handle GC during RegExpShared::compile (r=billm)
--HG--
extra : rebase_source : bfc5af40e73cd5be1dce0fe2198175ae19e77998
2012-02-28 15:36:19 -08:00
Bill McCloskey
9303e9a379 Bug 729367 - Add write barrier flag to shell worker class (r=jorendorff) 2012-02-28 10:43:56 -08:00
Brian Hackett
11539a30d5 Make sure to allocate auxiliary PC counter arrays when required, bug 721274. r=dvander 2012-02-28 08:00:24 -08:00
Jan de Mooij
9f209fa47a Bug 730836 - Refactor SetObjectElementOperation to avoid a GetPcScript call. r=pierron
--HG--
extra : rebase_source : 889b08873e1cab824f62c09c412e6b8d85a98b28
2012-02-28 12:06:42 +01:00
Igor Bukanov
bb69258364 bug 730987 - remove per-context debug hooks. r=luke 2012-02-28 11:54:40 +01:00
Luke Wagner
f6301bef27 Bug 729382 - move the rest of the CallObject into ScopeObject (r=waldo) 2012-02-23 13:58:39 -08:00
Luke Wagner
644e9f3621 Bug 724790 - get rid of the hasOverriddenArgs funny business (r=waldo) 2012-02-07 12:34:29 -08:00
Nicholas Nethercote
afab5f33f9 Bug 729403 (part 2, take 2) - Add js/runtime/gc-marker memory reporter. r=wmccloskey.
--HG--
extra : rebase_source : c48aacddd186be0de3c74153f5e5e4049d09a87b
2012-02-26 20:20:15 -08:00
Nicholas Nethercote
f66bf6865a Bug 729403 (part 1, take 2) - Add Vector::sizeOf{In,Ex}cludingThis(). r=luke.
--HG--
extra : rebase_source : d745c1b1b9ca30c6836c31b03ded4dcab22a2565
2012-02-26 20:18:13 -08:00
David Anderson
dfb799c917 Ensure that iterators are closed when an exception is thrown (bug 729797, r=luke).
--HG--
extra : rebase_source : a500065bf2c96d1b8581fc8ae81af2eac0ee880f
2012-02-27 17:01:52 -08:00
Terrence Cole
7e0032bea8 Bug 727306 - Specialize HeapValue::postWriteBarrier for object slots; r=billm
Because we need to re-alloc the object slots pointers for slots growth and
actively move the slots buffer between objects in TradeGuts, we cannot safely
store pointers to slots in our write buffer.  Instead we want to store a pair of
JSObject* + offset in the write buffer.  This effectively means that we need to
specialize the HeapValue::postWriteBarrier used when storing to slots.  This
patch sub-classes HeapValue and uses this sub-class for object slots.

--HG--
extra : rebase_source : 632ad9fd74f638cf9cadc19d6bc0aac8d6cc1cb1
2012-02-17 18:43:48 -08:00
Jeff Walden
75ad83c0a1 Tix fypo, bug 730810. r=winning 2012-02-27 15:17:38 -08:00
Jeff Walden
7e88cd00ca Bug 730810 - Don't assert doing a compound assignment to a const. r=luke 2012-02-27 14:04:04 -08:00
Christian Holler
2bdd8d6d14 Bug 730697 - Add missing OOM checks in JS type inference code. r=bhackett
--HG--
extra : rebase_source : 00e7f02d87f51a2cc2a4955de30c6f3f6c9b21ca
2012-02-27 13:43:48 -08:00
Christian Holler
af33552a20 Bug 730415 - Fix JS engine OOM condition in makeDenseArraysSlow. r=bhackett 2012-02-27 12:57:53 -08:00
Terrence Cole
7f4d7cccfd Bug 725500 - Eliminate various jstest freezes on Unix; r=dmandelin
This is a rewrite of the jstest loop for Unix to prevent a freeze
that is possible here. See the writeup in the bug for details.

--HG--
extra : rebase_source : 8a7c80cb7ee044d909e29c669648cfc67e096c3b
2012-02-14 11:24:48 -08:00
Bill McCloskey
f3534c4ae9 Bug 729238 - Save and restore weakmap list during marking validation (r=igor) 2012-02-27 09:48:35 -08:00
Mike Hommey
0d8f2ba3a8 Bug 716544 - Define android NDK headers as system headers. r=khuey 2012-02-27 08:22:27 +01:00
Phil Ringnalda
93fdd4cb81 Back out a7255af10a2a and da193f5b526b (bug 729403) for xpcshell assertions in test_TelemetryPing.js 2012-02-26 18:39:06 -08:00
Nicholas Nethercote
252040f7c7 Bug 729403 (part 2) - Add js/runtime/gc-marker memory reporter. r=wmccloskey.
--HG--
extra : rebase_source : 9f078515b971e3de4156bb3edd3f8aea74c9fa8f
2012-02-21 21:43:45 -08:00
Nicholas Nethercote
08c4146a69 Bug 729403 (part 1) - Add Vector::sizeOf{In,Ex}cludingThis(). r=luke.
--HG--
extra : rebase_source : 850abf71178c5a23198561560d00ecd970db0cc1
2012-02-21 20:58:40 -08:00
Nicholas Nethercote
3032e2d28c Bug 730182 - Show location for "[System Principal]" compartments in about:compartments. r=bholley.
--HG--
extra : rebase_source : 084b36938e00058503fba426aeb42ca5cd85698d
2012-02-26 13:23:32 -08:00
ABE Hiroki
9b386c3ab4 Bug 693226 - Fix up paths so that --enable-ui-locale=ab-CD --with-l10n-base=l10n works with pymake on Windows. r=khuey 2012-01-31 10:25:41 -05:00
Bill McCloskey
aeecda2564 Bug 729238 - Don't reset weakmap list during mark validation (r=igor) 2012-02-26 10:04:53 -08:00
Bill McCloskey
55ef2e745e Bug 728962 - Always use a safe JSContext during GC (r=igor) 2012-02-26 10:03:44 -08:00
Philipp Wagner
995ed9d8bc Bug 730081 - Add a way to disable xpccheck for subdirectories; r=khuey 2012-02-23 22:22:00 +01:00
Makoto Kato
2bfc9b451e Bug 730212 - Set _WIN32_IE to 0x0603 (XPSP2). r=jimm 2012-02-26 00:20:36 +09:00
Peter Van der Beken
859c2636bb Fix for bug 691707 (Enumerating new proxy-based DOM bindings should enumerate the prototype too). r=mrbkap.
--HG--
extra : rebase_source : 788c2b3f9666ca654fab67047f6309937360f725
2012-02-07 20:55:37 +01:00
Jeff Walden
ffcde15763 Windows-specific warning patrol. No bug, r=themaid
--HG--
extra : rebase_source : c0f13210632a661bdeb560e397a24476e754816d
2012-02-25 01:59:12 -08:00
L. David Baron
1b2b92f0f9 Add a header file for CSS property aliases (and temporarily resurrect the aliases whose DOM properties we forgot to remove). (Bug 730532, patch 1) r=bzbarsky 2012-02-24 21:23:14 -08:00
Jeff Walden
eb2086f33f Bug 728411 - Move more elements bits over to ObjectImpl. r=bhackett
--HG--
extra : rebase_source : bcc5f0d8fc44643675e4a9efad84c7419545bb95
2012-02-16 19:11:06 -08:00
Jeff Walden
a9826eb806 Bug 728411 - Move write barrier bits to ObjectImpl. r=bhackett
--HG--
extra : rebase_source : b1d72f92b2befd3a1277afe0cc5188fef2ebddf8
2012-02-16 19:11:06 -08:00
Jeff Walden
6b37ab9657 Bug 728411 - Move some elements bits into ObjectImpl. r=bhackett
--HG--
extra : rebase_source : 4d8644e37674795c4b3803d5e4b4ded828df7e63
2012-02-16 15:08:50 -08:00
Jeff Walden
5aaebbd7d0 Bug 728411 - Make ReportReadOnly a static method, not part of the JSObject interface. r=bhackett
--HG--
extra : rebase_source : b2e126907ed126d249830b7ee73e2411af5d32da
2012-02-16 15:06:23 -08:00
Jeff Walden
fbeca51a8c Bug 728411 - Move some size-computation bits into ObjectImpl. r=bhackett
--HG--
extra : rebase_source : 22fe716cc7b76622f8856f5a50905ca5facb2a19
2012-02-16 15:05:44 -08:00
Jeff Walden
ae0ff8a417 Bug 728411 - Begin to move simple functions from JSObject to ObjectImpl. r=bhackett
--HG--
extra : rebase_source : 1a82d604cb32e941a296a63b3047a6c76426d57e
2012-02-16 15:02:15 -08:00
Jeff Walden
66bba64a57 Bug 728411 - Add new files for internal object structural details, as opposed to the external, ES5-like object interface. r=bhackett
--HG--
extra : rebase_source : 55d679f4576d8059deb265ae929b49b26e3c777e
2012-02-09 18:54:28 -08:00
Jeff Walden
141be33651 Bug 720316 - Use uint32_t indexes for JOF_ATOM opcodes. r=jorendorff
--HG--
extra : rebase_source : 44b6fc051eadbb5b38c634c18a454ce6adfaa69f
2012-02-03 18:53:29 -08:00
Jeff Walden
dba1a159a3 Remove a top-level |using namespace js| from jspropertycacheinlines.h. No bug, r=lumpy
--HG--
extra : rebase_source : c9824427df8b35372ff238c4badcf3156cff09c0
2012-02-24 14:25:38 -08:00
Jeff Walden
97206dad24 Warning patrol. No bug, r=themaid
--HG--
extra : rebase_source : 5b0df12cbc8e609d3415f2785f262612cb77516b
2012-02-22 14:48:55 -08:00
David Mandelin
381d879c71 Bug 725550: remove obsolete typedef jsdouble, r=jwalden 2012-02-24 14:19:52 -08:00
Marco Bonardo
22d7a18fa5 Backout 4fc2f49371a8 (bug 725550) for build failures 2012-02-25 00:16:47 +01:00
David Mandelin
045002155a Bug 726230: remove obsolete typedefs JSIntn, JSUIntn, r=luke
--HG--
extra : rebase_source : f7f84755fe86f10109cd7332583212b1aa1e719d
2012-02-10 18:07:35 -08:00
David Mandelin
5be5dda12e Bug 725550: remove obsolete typedef jsdouble, r=jwalden
--HG--
extra : rebase_source : 772c2982184d7b3d1680737323395365e6b218da
2012-02-24 14:19:52 -08:00
Chris Leary
10728d36ba Bug 700822: Followup: add comment about use of static local. (r=bz) 2012-02-24 11:15:32 -08:00
Marco Bonardo
0583b874bd Backout 92c25caf3990 (bug 691707) for m-oth failures 2012-02-24 20:05:44 +01:00
Bill McCloskey
da870eb4d6 Bug 730148 - Handle OOM better in ValidateIncrementalMarking (r=igor) 2012-02-24 10:46:31 -08:00
Bill McCloskey
68830ec345 Bug 673551 - Allow mark stack size to be bounded for debugging (r=igor) 2012-02-24 10:42:42 -08:00
Peter Van der Beken
3e4dff7ac7 Fix for bug 691707 (Enumerating new proxy-based DOM bindings should enumerate the prototype too). r=mrbkap.
--HG--
extra : rebase_source : 2877f225f60750d27005fccc0225e5c0482fb441
2012-02-07 20:55:37 +01:00
Daniel Holbert
0cc7de4816 Bug 730074: Use JSCLASS_NO_OPTIONAL_MEMBERS in JSClass definition within XrayWrapper.cpp, to fix build warning about missing braces. r=mrbkap 2012-02-24 14:31:49 +01:00