Commit Graph

2812 Commits

Author SHA1 Message Date
Brian Hackett
fe5aeaab19 Merge TM -> JM 2011-04-20 11:37:46 -07:00
Brian Hackett
2f7eb61a86 [INFER] Remove compound JSOP*PROP opcodes, bug 647626. 2011-04-19 15:24:09 -07:00
Brian Hackett
68b35100e1 Merge TM -> JM 2011-04-19 08:23:41 -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
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
3756228559 [INFER] Use both inline and dynamic slots for objects other than dense arrays, bug 648321. 2011-04-08 19:51:40 -07:00
Brian Hackett
012e3b1119 Merge TM -> JM 2011-04-08 19:27:14 -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
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
Jan de Mooij
759437fbc3 [INFER] Refactor RegExp.exec -> RegExp.test optimization, use in both TM and JM. 2011-03-28 17:06:49 -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
Brian Hackett
8e50870411 Transform RegExp.exec to RegExp.test in native call IC, bug 645889. r=dmandelin 2011-03-30 17:43:36 -07:00
Brian Hackett
d737bb3ddb Merge TM -> JM 2011-03-22 18:07:31 -07:00
Luke Wagner
774c050740 Bug 602994 - Preparatory syntactic cleanup (r=waldo) 2011-04-08 10:52:48 -07:00
Nicholas Nethercote
a3cfafaa02 Bug 643700 - Fix an ARM warning on compilation since warnings are now regarded as errors. r=gal 2011-03-28 16:24:20 +08:00
Jeff Walden
a0e982d7d2 Bug 639343 - Slight adjustment to how typed-array properties are handled in the tracer. r=dvander 2011-03-18 17:57:17 -07:00
Nicholas Nethercote
89190c0bb0 Bug 626398 - A decision to abort in the tracer gets lost. r=dmandelin. 2011-03-25 09:02:01 +11:00
Paul Biggar
3e3068a96b [INFER] Bug 642059 - Add -n flag to JITFLAGS, turning on type inference during jit-tests (r=bhackett) 2011-03-16 10:03:02 -07:00
Brian Hackett
9d86c615fc Merge TM -> JM 2011-03-14 22:41:04 -07:00
Jason Orendorff
ec6e3d3332 Backed out changeset 39de74c74b20, which is causing the browser to leak windows. 2011-03-14 17:37:04 -05: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
Jeff Walden
7eafdc943e Fix a couple warnings that are now errors with GCC 4.5.1. r=bustage 2011-03-22 10:52:56 -07:00
Jason Orendorff
efd9982808 Bug 561359 - Change JSOP_LAMBDA to apply the method optimization deterministically. In particular, it no longer depends on whether enclosing Blocks have been reified. This prevents incorrect behavior and assertions when a JSOP_LAMBDA, JSOP_INITMETHOD pair apply the method optimization once, populating the property cache, but later the same JSOP_LAMBDA instruction does not (under the old code) apply the optimization. With this patch, if JSOP_LAMBDA pushes the uncloned function once, it always will. r=brendan. 2011-03-14 15:54:34 -05:00
Bill McCloskey
b58bb18728 Bug 636544 - Fix JavaScript "-m -j" mode (r=dmandelin) 2011-03-11 11:44:57 -08:00
Bill McCloskey
274e0534d2 Bug 639858 - Bias the profiler toward tracing scripted getters (r=dmandelin) 2011-03-11 10:21:33 -08:00
Nicholas Nethercote
4aa7aa5390 Bug 638627 - Properly handle failures to patch guards due to non-32-bit offsets (TM-specific part). r=gal,dvander. 2011-03-10 16:41:50 -08:00
Nicholas Nethercote
585033aa98 Backed out changeset cc7311c09b56 (bug 602397) due to Maemo Talos breakage. 2011-03-10 14:31:34 -08:00
Brian Hackett
eaea79df6e Merge TM -> JM 2011-03-10 09:20:42 -08:00
Nicholas Nethercote
76f4d326e3 Bug 602397 - TM: clean up TraceRecorder::alu(). r=wmccloskey. 2011-03-09 15:21:07 -08:00
Brian Hackett
d639ada378 Merge TM -> JM 2011-03-09 09:58:49 -08:00
Nicholas Nethercote
affdfbad49 Fix more warnings-as-errors breakage for bug 609532. 2011-03-21 22:45:56 -07:00
Luke Wagner
dc3b77b20a s/if/else if/ so that f6281545d2c1 doesn't hit the JS_NOT_REACHED (rs=billm) 2011-03-21 13:02:06 -07:00
Luke Wagner
75f936de54 Init local in jstracer.cpp to silence warning (rs=billm)
--HG--
extra : rebase_source : e5c02598c9239ce4ea24623d103331ddd0c1150e
2011-03-21 11:46:54 -07:00
Nicholas Nethercote
62bb333ede Bug 631106 - JM: simplify allocation of executable memory. r=dvander. 2011-03-07 20:15:56 -08:00
Brian Hackett
0a2cdd3c56 Merge TM -> JM 2011-02-25 18:21:43 +13:00
brendan@mozilla.org
649f67b373 Unqualified function invocation doesn't use the global object the property was gotten from as |this| (bug 634590, r=gal). 2011-02-22 22:25:10 -08:00
Bill McCloskey
ca2b3326cd Bug 635594 - Abort recording if closeLoop() fails (r=lw,a=dvander) 2011-02-22 17:51:07 -08:00
Jason Orendorff
e44513b843 Bug 633890 - Assertion failure: prop == (JSProperty*) shape. r=brendan, a=jst.
--HG--
extra : rebase_source : 8b5f7ad67b3119c56700f3a2d50f84d320fbda11
2011-02-18 10:57:42 -06:00
Jason Orendorff
23844e2a2c Silence MSVC warnings. no_r=me.
--HG--
extra : rebase_source : edff65eb68b63b90603d552855023a63f2073626
2011-02-18 10:57:28 -06:00
Jeff Walden
c5252060f7 Back out af1e10bea0f4 from a CLOSED TREE for being orangetastic on one platform. 2011-02-20 21:40:06 -08:00
Igor Bukanov
10724eed0a Bug 641048 - adding proper constructor/destrictor to JSTHread/ThreadData 641048. r=luke r=mrbkap 2011-03-13 15:45:02 +01:00
Andreas Gal
207266110b Unqualified function invocation doesn't use the global object the property was gotten from as |this| (bug 634590, r=brendan). (relanding in a CLOSED TREE) 2011-02-17 17:52:55 -08: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
46930e9e54 Unqualified function invocation doesn't use the global object the property was gotten from as |this| (bug 634590, r=brendan). 2011-02-17 17:52:55 -08:00
David Anderson
af00f11fce Don't trace arguments in strict mode (bug 632924, r=njn). 2011-02-18 11:19:49 -08:00