Commit Graph

985 Commits

Author SHA1 Message Date
Chris Leary
a7253cc393 Bug 654301: Better interned string API, take 2. (r=Waldo) 2011-05-17 12:15:12 -07:00
Christian Holler
b0902374f8 Bug 628332 - Avoid double-frees when compartment allocation fails (r=billm). 2011-05-03 04:26:40 -07:00
Brian Hackett
fe5aeaab19 Merge TM -> JM 2011-04-20 11:37:46 -07:00
Brian Hackett
68b35100e1 Merge TM -> JM 2011-04-19 08:23:41 -07:00
Jason Orendorff
5e2c73b316 Add rudimentary support for Debug.prototype.hooks.debuggerHandler. Note: A new constant JSPROP_NATIVE_ACCESSOR is added in jsapi.h, so that js_InitClass can create proper accessor properties. 2011-04-18 17:42:07 -05:00
Jeff Walden
a8a0234d77 Bug 641655 - Add a js::GlobalObject subtype of JSObject. r=njn 2011-04-18 16:50:47 -04:00
Jeff Walden
77e6fd7646 Backed out changeset c8ba5bd72b0c, we have too many test harnesses and I forgot to run one. r=tree-decorator 2011-04-21 16:29:54 -04:00
Jeff Walden
f7e9104cd4 Bug 641655 - Add a js::GlobalObject subtype of JSObject. r=njn 2011-04-18 16:50:47 -04:00
Luke Wagner
b02663aef4 Fix typo in --enable-threadsafe builds (r=burning) 2011-04-20 19:29:11 -07:00
Luke Wagner
6e9ef90124 Bug 651041 - add API to store private data to an external string (r=njn) 2011-04-20 18:34:49 -07:00
Bill McCloskey
3c0cd83aa3 Bug 616666 - Use explicit stack for GC marking (r=gal) 2011-04-15 16:56:08 -07:00
Brian Hackett
fc65b95530 Merge TM -> JM 2011-04-13 06:45:06 -07:00
Blake Kaplan
d7c603eab8 Bug 618176 - Skip multiple wrappers when deciding whether this object is an array. r=gal 2011-04-12 15:56:45 -07:00
Brian Hackett
83e8f1e4ab Merge TM -> JM 2011-04-12 07:04:45 -07:00
Brian Hackett
e4deebb68d Merge TM -> JM 2011-04-11 07:33:47 -07:00
Ed Morley
90a849de12 Bug 647389 - Remove WINCE stuff from Spidermonkey (r=jorendorff) 2011-04-09 20:17:53 +01:00
Brian Hackett
012e3b1119 Merge TM -> JM 2011-04-08 19:27:14 -07:00
Bill McCloskey
4a9bde3182 Bug 648647 - Eliminate JSObjectMap (r=jorendorff) 2011-04-08 14:21:08 -07:00
Brian Hackett
4226ea1e6e [INFER] Array bounds check hoisting, cleanup, bug 618690. 2011-04-05 18:12:03 -07:00
Brian Hackett
8b7888dd66 Merge TM -> JM 2011-04-01 19:57:28 -07:00
Brian Hackett
a1f196a052 [INFER] More fixes for stock JM behavior, bug 647048. 2011-04-01 17:26:34 -07:00
Jeff Walden
9d216339ba Bug 646129 - [[DefaultValue]] on Date objects is wrong when called with no hint. r=luke 2011-04-01 15:24:21 -07:00
Andreas Gal
fd2168c3af Implement Harmony weak maps (bug 547941, r=jorendorff). 2011-04-16 21:23:44 -07:00
Wes Garland
256dd8ad05 Bug 586016, update JS_GetImplementationVersion. r=jorendorff 2011-04-16 14:16:50 -04:00
Colin Walters
2a0395d63b Bug 648102 - Make shell REPL/snarf/run always take UTF-8 input; add JS_DecodeUTF8; add UTF-8 flag to JS_BufferIsCompilableUnit. r=gal 2011-04-16 14:11:10 -04:00
Luke Wagner
6fcaf8c63f Bug 649531 - tidy up this-computation logic a bit, add some asserts (r=waldo)
--HG--
extra : rebase_source : f01409526e4582b87ced4b9f9d1170254a55373b
2011-04-12 17:16:12 -07:00
David Anderson
61cc68f032 Fix clang warnings (bug 647280, r=luke). 2011-04-14 13:45:06 -07:00
Luke Wagner
0d7bf8cc22 Bug 656462, part 4 - Simplify stack code, keep track of native calls, create new iterator over native/scripted callstack, make JS_SaveFrameChain fallible (r=waldo,mrbkap)
--HG--
extra : rebase_source : 756a640568464d11fe6bb00104a2fdb6f6d02d02
2011-05-13 08:56:26 -07:00
Luke Wagner
67af97e094 Bug 656462, part 3 - Syntactic touchups (r=waldo)
--HG--
extra : rebase_source : 7a81c352a96b9e23fc8f7bee5cb1d095c5cdb998
2011-05-24 16:08:40 -07:00
Luke Wagner
fe7b0581ce Bug 656462, part 2 - Merge ContextStack::get* and push* operations (r=waldo)
--HG--
extra : rebase_source : bdc7a7ba9ee21435a20e77bf6cea8c4d34a840c9
2011-05-24 16:04:18 -07:00
Phil Ringnalda
8d4385b7fe Back out bd821ea0ad41 (638324) for mochitest-chrome crashes 2011-03-31 19:55:10 -07:00
Andreas Gal
e69500d1bc Maintain a list of IdArrays as we hand them out via JS API (638324, r=brendan). 2011-03-31 14:42:33 -07:00
Brian Hackett
74bba0be53 [INFER] Inline scripted calls, bug 639099. 2011-03-26 19:07:13 -07:00
Paul Biggar
43b850291d Bug 643548: Remove mozalloc_undef_macro_wrappers hack from JS engine. (r=luke,rs=brendan)
mozalloc_undef_macro_wrappers are brittle and have side-effects that are hard
to debug and fix. The alternative is the just stick an underscore on the end of
malloc, free, etc, which is a comparatively small burden.
2011-03-31 01:14:12 -07:00
Paul Biggar
72c7701093 Bug 634155: Account for NewCompartment's memory, and change allocation APIs (r=nnethercote)
This changes the allocation API, in the following way:

  js_malloc -> {cx->,rt->,OffTheBooks::}malloc
  js_calloc -> {cx->,rt->,OffTheBooks::}calloc
  js_realloc -> {cx->,rt->,OffTheBooks::}realloc
  js_free -> {cx->,rt->,Foreground::,UnwantedForeground::}free
  js_new -> {cx->,rt->,OffTheBooks::}new_
  js_new_array -> {cx->,rt->,OffTheBooks::}new_array
  js_delete -> {cx->,rt->,Foreground::,UnwantedForeground::}delete_

This is to move as many allocations as possible through a JSContext (so that they may be aken into account by gcMallocBytes) and to move as many deallocations to the background as possible (except on error paths).
2011-03-31 01:13:49 -07:00
David Mandelin
04e76bd7d7 Bug 660371: report regexp syntax errors as compiler errors when appropriate, r=cdleary 2011-06-27 18:53:26 -07:00
Jeff Walden
1a51bb7cb1 Bug 645922 - Remove nsIJSON.encode/decode, because their functionality is subsumed by JSON.parse and JSON.stringify, and their idiosyncrasies are hindering code improvements. Also remove js_TryJSON and JS_TryJSON, which are no longer used after these changes and have no clear use cases. r=brendan, r=jst 2011-03-28 19:27:15 -07:00
Jeff Walden
0a61156473 Bug 665835 - Remove JSOPTION_ANONFUNFIX. r=cdleary
--HG--
rename : js/src/tests/js1_5/extensions/regress-376052.js => js/src/tests/ecma_5/misc/unnamed-function.js
2011-06-21 09:53:19 -07:00
Luke Wagner
0319982d42 Bug 665247 - Remove unused metering code (r=igor)
--HG--
extra : rebase_source : 78ec31e4236f63f8a91024f34b1b99a889dc47f5
2011-06-21 10:26:22 -07:00
Nicholas Nethercote
a208fd35a9 Bug 661068 - Create TraceMonitors lazily. r=luke. 2011-06-21 12:47:04 +10:00
Gregor Wagner
08eca5db6e Bug 656120 - Change MaybeGC trigger. r=igor 2011-06-20 14:44:26 -07:00
Luke Wagner
de6d0e2330 Bug 665189 - hoist JSString and family into vm/String{.h, -inl.h, .cpp} (r=njn) 2011-06-20 11:44:20 -07:00
Igor Bukanov
973ee9f2df bug 664677 - initializing number and script state when creating the runtime. r=anygregor
--HG--
extra : rebase_source : 7e16c8649723bb67205343c0c7cf230e7e04a8c0
2011-06-16 11:42:35 +02:00
Brian Hackett
d737bb3ddb Merge TM -> JM 2011-03-22 18:07:31 -07:00
Jeff Walden
d3676c4409 Bug 649819 - Remove JS_BeginJSONParse/JS_ConsumeJSONText/JS_EndJSONParse now that these APIs are no longer used and the cleaner API is available and works. r=brendan 2011-03-21 11:42:14 -07:00
Luke Wagner
774c050740 Bug 602994 - Preparatory syntactic cleanup (r=waldo) 2011-04-08 10:52:48 -07:00
Chris Leary
2ef1aa6439 Bug 642274: Add loose equality to JSAPI. (r=Waldo)
--HG--
extra : rebase_source : 3001604e6e6bfc9c8e73aafc1498a71ae7ade9cd
2011-03-21 10:04:43 -07:00
Andreas Gal
707f928b25 Expose public APIs for converting doubles to signed/unsigned int per ECMA spec (bug 631132, r=bzbarsky). 2011-03-29 19:19:15 -07:00
Brian Hackett
f9a4f63af8 [INFER] Fast path for object equality, track equality hooks in type objects, bug 619592. 2011-03-19 16:53:07 -07:00
Rob Arnold
1fa00902b6 Bug 651510 - "Signature for JS_StructuredClone differs in jsapi.h and jsapi.cpp" [r=jorendorff] 2011-04-20 08:28:00 -07:00
Luke Wagner
05d2002b66 Bug 644074 - Simplify and consolidate VM stack code into js/src/vm/Stack* 2011-04-13 09:27:37 -07:00
Brian Hackett
40f76095d8 [INFER] Don't bootstrap the __proto__ of the global or Function.prototype if their __proto__ has mutated, bug 642206. 2011-03-17 10:48:02 -07:00
Brian Hackett
6e8d1fb68d [INFER] Spot fix for shapes not being marked when a child is held by AutoShapeRooter, bug 642209. 2011-03-16 18:24:20 -07:00
Brian Hackett
7469fa7a3a [INFER] Don't share shapes between objects with different types, bug 620599. 2011-03-16 10:02:19 -07:00
Luke Wagner
7c96945e3c Bug 613457 - clean up string interfaces (r=njn)
--HG--
extra : rebase_source : 3e77b67fa9fe2cc31312ad99951cf92258a98e64
2011-03-14 13:59:53 -07:00
Luke Wagner
fee4a41733 Bug 616562 - speed up JSString::isStatic (r=njn)
--HG--
extra : rebase_source : 9f0b553b8ab54bfbbd5290ba936581bda8bb40ec
2011-03-14 13:55:55 -07:00
Brian Hackett
25bc5395d9 [INFER] Fix call IC monitoring for speculated Function.prototype.call, bug 621942. 2011-03-12 22:33:11 -08:00
Brian Hackett
300a849c3e [INFER] Use PICs on monitored SETNAME and SETPROP, bug 621937. 2011-03-11 16:29:38 -08:00
Brian Hackett
d639ada378 Merge TM -> JM 2011-03-09 09:58:49 -08:00
Andreas Gal
e787b97701 Sweep compartments when no objects live in them (bug 639270, r=gregor). 2011-03-08 20:58:38 -08:00
Phil Ringnalda
d21d12b55b Back out 80d8431f209e (bug 639270) for failing to actually compile 2011-03-08 19:59:30 -08:00
Andreas Gal
033fce6c39 Sweep compartments when no objects live in them (bug 639270, r=gregor). 2011-03-08 18:10:47 -08:00
Nicholas Nethercote
155ec564ef Bug 638034 - Make scanning safer. r=brendan. 2011-03-08 16:10:51 -08:00
Brian Hackett
666b5642e8 [INFER] Turn inference on by default, fold JS_DefinePropertyWithType into JS_DefineProperty, bug 619693. 2011-03-06 22:57:13 -08:00
Brian Hackett
30270553a5 [INFER] Handle repeated calls to js_InitFunctionAndObjectClasses, bug 638981. 2011-03-04 17:45:11 -08:00
Andreas Gal
29c7365b34 Make empty shape initialization lazy (bug 639254, r=billm). 2011-03-07 18:42:04 -08:00
Brian Hackett
41091b1bb6 [INFER] Fix OOM handling in type inference, convert inference to runtime option, bug 637674. 2011-03-03 14:07:48 -08:00
Brian Hackett
e5020a35b3 [INFER] Condense type information during GC, bug 613221. 2011-03-01 13:10:05 -08:00
Brian Hackett
0a2cdd3c56 Merge TM -> JM 2011-02-25 18:21:43 +13:00
Jeff Walden
ff7d62dfcb Bug 637905 - Add (asserted-infallible) append methods to js::Vector, for use when the vector in question has previously had space reserved, and use them a bunch of places. r=luke
--HG--
extra : rebase_source : 89002f1cb5160d89e90a22e54bdca1d57bf9deda
2011-02-18 18:32:29 -08:00
Jeff Walden
fc5075d1f7 Bug 608473 - |var eval = otherWindow.eval; eval(...)| should behave like indirectly calling that eval from a script in that other window. r=jorendorff
--HG--
extra : rebase_source : 9accca7e9a2b8304c2c823852cfd71b13c595afe
2011-03-02 20:56:37 -08:00
Andreas Gal
9a7cc712a8 When idle the GC holds on to unused chunks indefinitely (bug 631733, r=brendan, a=blocker). (relanding in a CLOSED TREE) 2011-02-19 22:59:49 -08:00
Jeff Walden
b80782b484 Bug 643532 - Implement JS_ParseJSON and JS_ParseJSONWithReviver, a first step toward moving away from a begin-consume-finish-based JSON parsing process. r=luke 2011-03-21 11:42:06 -07:00
Jeff Walden
1e41f95c6d #jsapi observed the extent of orange in the TM tree and saw that OS X x86 opt was consistently and totally evil. So jwalden was sorry he had ever pushed changes for bug 631135. It broke his heart. And he said, “I will wipe this tree of every push back to 9105cd721d46. Yes, and I will revert the entire TM CLOSED TREE. I am sorry I ever pushed to it.” But 9105cd721d46 found favor with #jsapi. 2011-02-20 17:46:35 -08:00
Andreas Gal
faec8b99c2 When idle the GC holds on to unused chunks indefinitely (bug 631733, r=brendan, a=blocker). 2011-02-19 22:59:49 -08:00
Jeff Walden
7ce51759aa Backed out changeset 4d86e63ff60d, diagnostic patch; back out 3da12edf735e, followup fix; back out bug 631135 completely, unexplained intermittent orange.
--HG--
extra : rebase_source : e2e56a78bc0eea0d6e005bc976c74b33d8c22281
2011-02-19 19:50:19 -08:00
Andreas Gal
f5b9aeb7d0 Remove obsolete JSMarkOp API (bug 638291, r=jorendorff). 2011-03-05 14:50:11 -08:00
Jeff Walden
e604ceddc7 Bug 631135 - Objects created by or on behalf of fast natives and property ops (getters or setters) are parented to the wrong proto and global. r=lw,jst,mrbkap,bz, a=jst 2011-02-08 17:20:06 -08:00
Jan de Mooij
f1c8050e59 Bug 633741 - Check result of defineProperty in js_InitFunctionAndObjectClasses. r=jwalden, a=dmandelin
--HG--
extra : rebase_source : 25e7e6dce22a5f5eb57a7954bcc39415050b5595
2011-02-17 14:17:24 -08:00
Igor Bukanov
e9f9fd9db6 Backed out changeset 510c42c0d472 - bug 633219 2011-02-17 19:39:05 +01:00
Igor Bukanov
8bc1ca45aa Bug 633219 - replacing per context resolving list with per-thread resolving list. r=lw 2011-02-15 13:57:54 +01:00
Brendan Eich
4906480245 Method read barrier requried when changing attributes but not value (634210, r=jorendorff). 2011-02-15 12:11:04 -08:00
Andreas Gal
5a206a522e Xray wrappers don't cache resolved native properties on the holder object (bug 633382, r=mrbkap/jst, a=blocker). 2011-02-15 19:00:55 -08:00
Andreas Gal
5d4e5b427f js_UnbrandAndClearSlots leaks, use JS_ClearScope and throw if compile-N-go scripts are run after JS_ClearScope (630072, r=brendan). 2011-02-13 20:55:33 -08:00
Luke Wagner
d4edb54e54 Bug 632358 - Only call resetCompartment() when safe to GC (r=waldo)
--HG--
extra : rebase_source : 77127374d754a5a39695bb3c7dac95275616a150
2011-02-11 16:13:08 -08:00
Jim Blandy
de75b9fa19 Bug 537873: Add a 'strict' argument to C++ property setter functions. r=brendan
This changes the type of setters to JSStrictPropertyOp, which is just like
JSPropertyOp except that it takes a 'JSBool strict' argument. Most of the
patch is introducing distinct types and using the appropriate stubs.

The following are left for subsequent patches:

x Similar fixes to the browser outside SpiderMonkey.

x Actually *using* the newly available strictness information. This patch
  should have no user-visible effect. I didn't want the interesting stuff
  to get lost in this noise.
2011-02-09 11:31:40 -08:00
Igor Bukanov
f4c246e790 bug 627016 - remove JSProperty out param from DefineNativeProperty. r=jorendorff
--HG--
extra : rebase_source : 673c7471fc963cb59d11ab667bd9e8523297617a
2011-01-21 14:10:16 +01:00
Mike Hommey
2ec52f1e18 Backed out changeset d4c0875dc41a -- tinderbox build bustage 2011-03-21 18:31:02 +01:00
Chris Leary
1ef870e8d1 Bug 642274: Add loose equality to JSAPI. (r=Waldo) 2011-03-21 10:04:43 -07:00
Igor Bukanov
6990aee491 Bug 633219 - replacing resolve hashtable with a linked list. r=luke 2011-03-07 23:00:00 +01:00
Luke Wagner
0db79e7ad5 Bug 640274 - rm {JS_,js_,}GetExternalStringGCType (r=brendan)
--HG--
extra : rebase_source : 1a2b1df8c7ed9cdbf0455e6e8c117382cb1fb2bb
2011-03-14 13:55:43 -07:00
Jeff Walden
2db290c32a Bug 638312 - Add JS_IsBuiltinEvalFunction and JS_IsBuiltinFunctionConstructor APIs. r=gal 2011-03-02 19:57:44 -08:00
Brian Hackett
b5bb63ceba [INFER] Decouple type sets computed by inference from analysis information, store in new TypeScript struct, bug 621301. 2010-12-28 14:53:50 -05:00
Brian Hackett
5b9156630b [INFER] Inherit shadowed properties correctly after splicePrototype, bug 621126. 2010-12-23 17:54:03 -05:00
Brian Hackett
1024e522d2 [INFER] Handle reparenting of non-compileAndGo scripts, bug 620599. 2010-12-22 14:46:42 -08:00
Brian Hackett
f3bd6ce93f [INFER] Fixes for jstests, bug 620599, part 1. 2010-12-21 07:32:21 -08:00
Brian Hackett
637c0ef693 [INFER] Fixes for botched merge. 2010-12-20 12:10:57 -08:00
Brian Hackett
5c9d6cbdb0 [INFER] Account for 'new' case in non-constructor type handlers, bug 618853. 2010-12-20 10:13:39 -08:00
Brian Hackett
89bb1d08e8 Merge TM -> JM 2010-12-20 09:06:43 -08:00
Brian Hackett
baf09eaede [INFER] Objects with same shape have same type, objects with same type have same prototype, bug 619271. 2010-12-18 20:44:51 -08:00
Jeff Walden
1ae34fd49a Bug 676738 - Change the index argument to JS_SetElement from jsint to uint32. r=dmandelin 2011-08-04 19:39:13 -07:00
Jeff Walden
8f924181c5 Bug 676738 - Change the index argument to JS_GetElement from jsint to uint32. r=dmandelin 2011-08-04 19:39:13 -07:00
Jeff Walden
f53d559cbd Bug 676738 - Change the index argument to JS_DeleteElement and JS_DeleteElement2 from jsint to uint32. r=dmandelin
--HG--
extra : rebase_source : 7ee32857d1bd9d85d34f25d3bba4a3bdee2511e1
2011-08-04 19:39:13 -07:00
Jeff Walden
af610c6a19 Bug 676738 - Change the index argument to JS_LookupElement from jsint to uint32. r=dmandelin
--HG--
extra : rebase_source : d96c6791e9e4c05ea8590f349bee17b34cb5d866
2011-08-04 19:39:13 -07:00
Jeff Walden
471f61bdd4 Bug 676738 - Change the index argument to JS_HasElement from jsint to uint32. r=dmandelin
--HG--
extra : rebase_source : 20e35753ef5af787d1755ab8c1b68d5b7a43cce1
2011-08-04 19:39:13 -07:00
Jeff Walden
893e6045a7 Bug 676738 - Change the index argument to JS_AlreadyHasOwnElement from jsint to uint32. r=dmandelin
--HG--
extra : rebase_source : bcf36100f148d7323034fd3a5ac675561788fb7d
2011-08-04 19:39:13 -07:00
Jeff Walden
49d1d5ab36 Bug 676738 - Change the index argument to JS_DefineElement from jsint to uint32. r=jst, r=dmandelin
--HG--
extra : rebase_source : d0e3be27e3f0cf022eea21805923c2f4736a36ca
2011-08-04 19:39:12 -07:00
Jeff Walden
e296c93cd9 Bug 576034 - Remove aliased property implementation details. r=jorendorff
--HG--
extra : rebase_source : 8d87c5b809937b97643b382d49cfae2eee5581a6
2011-08-04 14:38:26 -07:00
Jeff Walden
257c90c2ca Bug 576034 - Remove aliased properties APIs. r=jorendorff
--HG--
extra : rebase_source : 09c9947953d6ae6d2f359e1cfedde0ea09c338ab
2011-08-04 14:38:00 -07:00
Igor Bukanov
d05c6783df bug 674480 - add memory reporter for the number of empty GC chunks. r=njn 2011-07-30 00:17:41 +02:00
Bill McCloskey
444df49e50 Bug 675802 - Instrument DestroyScript for more crash analysis (r=dmandelin) 2011-08-02 10:13:03 -07:00
Brian Hackett
accdca294b Merge TM -> JM 2010-12-07 17:11:37 -08:00
Nicholas Nethercote
fecf9a1832 Bug 588648 - Don't copy chars when scanning. r=brendan. 2010-12-07 15:22:52 -08:00
Luke Wagner
d8719356c0 Bug 609440, part 4 - make JSString::chars() fallible (r=waldo,dvander,igor,dwitte,njn) 2010-12-06 10:26:58 -08:00
Luke Wagner
2fc61cf52e Bug 609440, part 3 - remove fallible public APIs, update mozilla (r=bent,jst,mrbkap,waldo,sdwilsh) 2010-12-03 00:24:17 -08:00
Jason Orendorff
5ad6740cda Fix warning: no return value in JS_IsInRequest if !JS_THREADSAFE. no bug, rs=bz. 2010-12-07 09:03:05 -06:00
Andrew Drake
d2355b6bb9 Bug 617870, rest of bug 609141 - Cross-compartment calls for JSD, add JSScript* option for JS_EnterCrossCompartmentCall. r=jorendorff
--HG--
extra : rebase_source : bc60e91a6804470e28038cc62e60eca16710776c
2010-12-14 13:24:00 -08:00
Brian Hackett
002fd1a589 Merge TM -> JM 2010-11-30 09:04:25 -08:00
Jason Orendorff
a1b6342402 JS_DeepFreezeObject does not actually do anything. Bug 609024, r=Waldo. 2010-11-29 12:50:07 -06:00
Igor Bukanov
933918e6f4 Bug 614578 - Removal of nsAutoGCRoot. r=mrbkap 2010-11-26 15:11:14 +01:00
Brian Hackett
abc31759f4 [INFER] Overhaul handling of prototypes in type inference, bug 557407. 2010-11-24 20:41:52 -05:00
Igor Bukanov
3717953163 Bug 612150 - Eliminating JS_GetFunctionName. r=mrbkap 2010-11-24 17:56:43 +01:00
Brian Hackett
36efb56b2b Analysis and recompilation tuning for SS, bug 608746. 2010-11-20 15:45:52 -08:00
Jason Orendorff
b4b193de22 Bug 613068 - Add version argument to JS_ReadStructuredClone. r=bent. 2010-11-24 14:14:02 -06:00
Brian Hackett
ee3f068ff9 Merge TM -> JM 2010-11-18 21:09:24 -08:00
Brian Hackett
64024ac826 [INFER] Cleanup inference logging, bug 557407. 2010-11-18 15:18:23 -08:00
Brian Hackett
daeffc60c3 [INFER] Trace IDs and objects which inference depends on, bug 613221. 2010-11-18 11:23:22 -08:00
Blake Kaplan
6deeefba3d bug 601803 - Support adopting a node cross-compartment. r=gal/jst 2010-11-15 17:21:25 -08:00
Blake Kaplan
bd44733edc Backout due to bustage 2010-12-02 17:13:20 -08:00
Blake Kaplan
439ca83a7b bug 601803 - Support adopting a node cross-compartment. r=gal/jst 2010-11-15 17:21:25 -08:00
Brian Hackett
e225da4233 Merge TM -> JM. 2010-11-12 09:02:43 -08:00
Brian Hackett
4fa8fa4840 [INFER] Type inference fixes for generators, typed arrays, monitoring, ... bug 557407. 2010-11-09 14:40:10 -08:00
Brian Hackett
fb8384eed2 [INFER] Introduce packed arrays, bug 604045. 2010-11-05 07:37:09 -07:00
David Anderson
7487c14d37 Backed out changeset 8e119f847f97 (build busted) 2010-11-11 11:19:42 -08:00
Igor Bukanov
e32ba97023 bug 610198 - Replacing JS_GetStringBytes usage with JS_EncodeString. r=gal 2010-11-02 15:36:25 +01:00
Brian Hackett
d0775091ec Merge TM -> JM 2010-11-01 15:37:33 -07:00
Robert Sayre
03513401da Bug 595243 - Expose debugMode to JSD. Relanding test bustage fixed up. r=gal. 2010-10-30 12:13:02 -04:00
Jeff Walden
ff603e73f4 Backed out changeset 85feecf161fe (Career Limiting Move? <http://bonsai.mozilla.org/cvsquery.cgi?who=sspitzer%40netscape.com&whotype=regexp&date=explicit&mindate=2001-01-25+10%3A00&maxdate=2001-01-25+10%3A15>), seems to have turned mochitest-plain-4 orange. 2010-10-29 22:31:12 -07:00
Robert Sayre
19cc79ccf3 Bug 595243 - Expose debugMode to JSD. r=gal 2010-10-29 18:35:07 -04:00
Brian Hackett
4791208c2a [INFER] Fix another Windows build break. 2010-10-29 11:44:30 -07:00
Brian Hackett
696cff5132 [INFER] Javascript type inference, bug 557407. 2010-10-29 08:05:55 -07:00
Chris Leary
8692140272 Bug 607724: Minor scope chain function cleanup. (r=mrbkap) 2010-10-27 16:18:16 -07:00
Andreas Gal
257334300b Backed out changeset 685accd622f0 (bug 606065). 2010-10-24 13:21:33 -07:00
Andreas Gal
61a710e895 Move deflated string cache into compartment (606065, r=jorendorff). 2010-10-24 02:07:42 -07:00
Jason Orendorff
bfaf004fd7 Merge. 2010-10-22 19:11:26 -05:00
Jason Orendorff
42d03e7276 Address review comments in bug 606029, mainly removing JSTitle from jslock.{h,cpp}. 2010-10-22 19:06:26 -05:00
Jason Orendorff
596862d852 Remove JSObject::title. Bug 606029, r=igor. 2010-10-22 19:04:22 -05:00
Andreas Gal
a4b0c37cda Remove obsolete wrappedObject extended class hook (604523, r=mrbkap/vlad/dvander). 2010-10-22 15:40:11 -07:00
Brian Hackett
5d3fb505d0 Reland rev d20abbebe373, interrupt counter for JSRuntime, bug 589193. 2010-10-22 10:48:06 -07:00
timeless@mozdev.org
9520a5b1a4 Bug 615068 obj is only used ifdef DEBUG in JS_NextProperty. r=jorendorff. 2010-11-30 10:16:21 -06:00
Blake Kaplan
258cc12ef4 Bug 599672 - Give the regexp statics a parent. r=cdleary 2010-10-21 13:51:56 -07:00
Andreas Gal
6e672eda05 Backed out changeset 438afef93fd5 (bug 604523) due to suspected orange. 2010-10-20 23:19:05 -07:00
Andreas Gal
e5f45d98a2 Remove obsolete wrappedObject extended class hook (604523, r=mrbkap/vlad/dvander). 2010-10-20 22:41:35 -07:00
Brian Hackett
975f0c84d2 Merge. Test backout for bug 601725. 2010-10-19 20:51:11 -07:00
Brian Hackett
19785d46d5 Backed out changeset d20abbebe373 2010-10-19 20:19:56 -07:00
Dave Herman
7488e1af91 bug 594060, r=cdleary: Reflect.parse(): make source location information optional 2010-10-19 09:00:51 -07:00
Jason Orendorff
fd0c6b2d5c Bug 604087 - Minor tweaks to JS_TransplantWrapper and JSAutoEnterCompartment. r=mrbkap 2010-10-13 17:26:40 -07:00
Blake Kaplan
355a7fed18 Bug 604087 - Deal with GC happening during JS_TransplantWrappers. r=jst/gal 2010-10-13 17:21:00 -07:00
Brian Hackett
f9cf7a5b7d Flexible length JSObject, bug 584917. r=brendan,igor 2010-10-13 11:49:22 -07:00
Jim Blandy
713b25831a Bug 601168: Allow nsHTMLPluginObjElementSH::Call to pass through non-Object |this| values to the plugin. r=bz,gal
This introduces some new JSAPI C++ entry points, one of which allows
arbitrary jsvals to be passed as the |this| value to a call; this means we
avoid a JSVAL_TO_OBJECT call in the caller, and its corresponding
OBJECT_TO_JSVAL call in the callee.
2010-10-12 11:50:03 -07:00
Johnny Stenback
18174c5a4e Bug 580128 - No need to assert about commpartment mismatches in JS_Get/SetPrivate (r=gal). 2010-10-10 15:50:11 -07:00
Paul Biggar
d5a5d3946f Bug 612292 - Rename array allocation functions (r=lw) 2010-12-13 16:22:59 -08:00
Igor Bukanov
034b3c6618 bug 618262 - Removal of JS_NewString. r=brendan 2010-12-10 12:50:50 +01:00
Jeff Walden
f432da735d Bug 614333 - Remove the empty-script singleton optimization: it is effectively disabled with the methodjit, and its use of a single const JSScript for everything (including across compartments) interferes with recording name bindings in scripts, in order to correctly implement strict mode eval. r=brendan
--HG--
extra : rebase_source : 38a7faedb4b090e844cc342c82b273c75ef763bb
2010-11-16 15:30:56 -08:00
Igor Bukanov
a18b8a8142 bug 617215 - eliminating JS_NewString usage in FF while fixing a leak there. r=bz 2010-12-09 11:22:15 +01:00
Andreas Gal
96223bbef4 Make functions per compartment, and deep copy instead of clone them if needed (584789, r=mrbkap). 2010-09-29 23:17:29 -07:00
Blake Kaplan
a44ad43150 bug 580128 - Fix more compartment warnings. Work of multiple people. r=gal/peterv/jst 2010-10-10 15:37:19 -07:00
Blake Kaplan
c563e195ac bug 580128 - Allow API consumers to pass in a new object altogether before trying to wrap in a security wrapper. r=gal/peterv 2010-10-10 15:36:38 -07:00
Blake Kaplan
9b63ed2490 bug 580128 - Fix bugs dealing with transplanting when navigating. r=gal 2010-09-28 17:02:43 -07:00
Jason Orendorff
e71e7e1578 bug 580033 - Make JS_Save/RestoreFrameChain set cx->compartment. r=mrbkap 2010-09-27 18:24:24 -07:00
Andreas Gal
04c3f3cf48 bug 599503 - Return true compartment info from JSObject::getCompartment(). r=jorendorff/gregor/gal 2010-09-27 13:49:09 -07:00
Brian Hackett
0d369b900f Add interruptCounter to JSRuntime for JM, bug 589193. r=igor,dvander 2010-09-20 16:21:49 -07:00
Steve Fink
d85cf45e9c Bug 588537 - Register and unregister the ETW provider (r=gal) 2010-09-20 12:43:53 -07:00
Steve Fink
0897291047 Bug 588537 - Inject probe points all over the JS tree (r=gal) 2010-09-20 12:43:53 -07:00
Igor Bukanov
92b67c9caf bug 607695 - Avoid unnecessary JS_GetStringBytes. r=gal 2010-10-28 17:15:53 +02:00
Blake Kaplan
a4b38abdeb Bug 609141 - Compartments mismatch in jsdScript::GetFunctionSource. r=sayrer 2010-11-03 18:04:22 -07:00
Chris Leary
5e66fb3ca8 Bug 608778: Rename JSString::MUTABLE to JSString::EXTENSIBLE. (r=jorendorff)
--HG--
extra : rebase_source : 411b842e9b23d3e856f32218f559348bd2f4cac3
2010-11-03 15:34:00 -07:00
Chris Leary
9ff0cd58c9 Bug 596580: Fix mozJSSubScriptLoader's version finding. (r=brendan) 2010-11-03 12:09:24 -07:00
Luke Wagner
0a6acc2075 Bug 607243 - JS_New should report error on primitive return; JSProxyHandler::construct should not call JS_New (r=brendan)
--HG--
extra : rebase_source : e81f0f4fbfbfafe40a5827f01a1e6bb92103bb64
2010-11-02 17:39:05 -07:00
Chris Leary
4d3fc89539 Bug 597811: Make mozJSComponentLoader use JSVERSION_LATEST. (r=sayrer) 2010-11-01 17:33:22 -07:00
Brian Hackett
066d48b6b6 Backed out changeset 09ffb30caa47 2010-09-20 12:05:21 -07:00
Brian Hackett
e8819f33fa Make JSObject flexible length, bug 584917. r=brendan 2010-09-20 11:40:32 -07:00
Blake Kaplan
2ce9a1fca4 bug 580128 - Propagate whether we're getting or setting to getPropertyDescriptor. r=gal 2010-09-17 14:54:41 -07:00
Jason Orendorff
38d63ffa56 Back out changeset a8252fe3f211 due to turning everything orange. 2010-09-16 20:58:40 -07:00
Jason Orendorff
31cfa81e35 Bug 580033 - JS_Save/RestoreFrameChain should update cx->compartment. r=mrbkap.
--HG--
extra : rebase_source : 717f7f4d4f3e6e96955cbb1ddb8ca9e1533914f7
2010-09-16 17:29:21 -07:00
Robert Sayre
f2c7dcfca0 Merge. 2010-11-16 11:39:33 -08:00
Robert Sayre
f8d70b12f4 Merge mozilla-central to tracemonkey. 2010-11-16 07:25:10 -08:00
Chris Leary
dc67060b95 Bug 611462: correct option-to-version propagation. (r=lw) 2010-11-15 13:35:20 -08:00
Igor Bukanov
238c877cc8 Bug 607292 - followup to address comments 16 and 20 from the bug 2010-11-15 23:11:07 +01:00
Gregor Wagner
a9ae1a03f4 Bug 612015 - Put all external strings in one arena r=igor 2010-11-15 12:39:00 -08:00
Chris Leary
3cf9a917aa Bug 609942: anonfunfix for eval cache comparisons. (r=brendan) 2010-11-09 09:00:54 -08:00
Igor Bukanov
d34f057e79 bug 607292 - eliminating JS_GetStringBytes and friends. r=gal 2010-11-08 13:17:31 +01:00
Igor Bukanov
52ea348c4c bug 610198 - Replacing JS_GetStringBytes usage with JS_EncodeString. r=gal 2010-11-11 21:40:29 +01:00
David Mandelin
2cec713bd4 Bug 605752: don't crash on OOM inside ExecutablePool, r=dvander, a=beta8+ 2010-11-12 18:17:21 -08:00
Bill McCloskey
5ad697399b Bug 610437 - Add equality flag syncing to JSAPI (r=lw) 2010-11-12 10:40:12 -08:00
Jan de Mooij
59027dc8e7 Bug 604864 - Optimize undefined, NaN and Infinity in methodjit. r=dmandelin 2010-11-01 21:47:45 +01:00
David Mandelin
8f658c24e0 Bug 605752: don't crash on OOM inside ExecutablePool, r=dvander, a=beta8+ 2010-11-12 18:17:21 -08:00
Blake Kaplan
ca33e41f5d Bug 610078 - Return the value when we found it on a proxy. r=brendan a=blocking betaN 2010-11-05 18:25:37 -07:00
Blake Kaplan
3c355b8fa0 bug 580128 - Give API consumers a way to perform "brain transplants" on an object. r=gal 2010-09-17 14:54:40 -07:00
David Anderson
552330f091 ICs for scripted new (bug 589398, r=luke,dmandelin).
--HG--
extra : rebase_source : d7311ce916e8d6c876d1851090806bc7d073bd63
2010-10-04 14:13:33 -07:00