Commit Graph

5864 Commits

Author SHA1 Message Date
Graydon Hoare
25425ac136 Bug 473989 - Enable trace-test on 'make check', r=ted. 2009-06-25 12:47:00 -07:00
Benjamin Smedberg
3323246776 GetAtomFromBytecode is actually JS_REQUIRES_STACK, just marking it so. 2009-06-25 15:19:37 -04:00
Benjamin Smedberg
bc75ed217a Bug 499971 - js_GetCallVar and several others which are used as JSNatives must not be JS_REQURIES_STACK, r=jorendorff 2009-06-25 15:12:20 -04:00
Benjamin Smedberg
c7cc8fde73 Bug 498398 - fast natives such as array_sort and many others must not be JS_REQUIRES_STACK, r=jorendorff 2009-06-25 15:12:19 -04:00
Benjamin Smedberg
65670172bd Bug 491988 - do JS_REQUIRES_STACK analysis on function pointers, r=jorendorff+dmandelin 2009-06-25 15:12:19 -04:00
Benjamin Smedberg
3d4a869324 Bug 491988 - Annotation fixes required for analyzing JS_REQUIRES_STACK for function pointers, r=jorendorff 2009-06-25 15:12:19 -04:00
Brendan Eich
579d4f6d24 Seed new empty scope shape from prototype to handle foreshadowing, enable deep propcache hits keyed by shapes, simplify code (497789, r=igor). 2009-06-25 12:05:09 -07:00
Julian Seward
b96eed42da Bug 494864 - Make nanojit debug output easier to follow, r=graydon. 2009-06-24 20:32:00 -07:00
Brendan Eich
ee292894fd Nit followup to 496674 (r=graydon). 2009-06-24 16:33:20 -07:00
Robert Sayre
00931a5d0f Merge mozilla-central to tracemonkey. 2009-06-24 13:16:16 -07:00
Graydon Hoare
0f04cb5c35 Bug 496674 - Replace FORALL macros with template functions and visitors, take 2, r=gal. 2009-06-19 18:48:05 -07:00
Jacob Bramley
47c7c77223 Remove the BL method from the ARM nanojit back-end as it is no longer used. (487607, r=vladimir) 2009-06-24 15:57:17 +01:00
Jacob Bramley
e91a29b36f Use BLX to provide ARM/Thumb interworking support on ARM. (486639, r=vladimir) 2009-06-24 15:54:35 +01:00
Jacob Bramley
f960ac522c Correct some corner cases in the branch patching code for ARM. (486325, r=vladimir) 2009-06-24 15:26:07 +01:00
Jacob Bramley
e5b587147f Improve exit code efficiency on ARM. (491678, r=vladimir) 2009-06-24 08:17:44 +01:00
Boris Zbarsky
e3f52528d3 Bug 499865. Log blacklists as part of our jitstats. r=jorendorff 2009-06-23 23:44:38 -04:00
Andreas Gal
96aa2917f7 Added a FIXME, reminding us to remove the proto chain walking code once bug 497789 has been fixed (comment change only, no bug). 2009-06-23 19:35:17 -07:00
Andreas Gal
6e96f166d2 Check for end of proto chain when walking it (499169, r=mrbkap). 2009-06-23 19:22:54 -07:00
Jeff Walden
a85dcc897c Bug 499772 - TM: TraceRecorder::test_property_cache needs JSClass.getProperty checks when a property isn't found on an object. r=jorendorff, r=brendan 2009-06-22 14:35:57 -07:00
Graydon Hoare
859a94d6ec Backed out changeset 5e1b444c803c, broke static analysis tinderbox. 2009-06-23 16:58:30 -07:00
Graydon Hoare
c8b2433196 Bug 496674 - Replace FORALL macros with template functions and visitors, r=gal. 2009-06-19 18:48:05 -07:00
Andreas Gal
791b4c9a77 Backed out changeset 55a8910d8436 (no consensus whether patch should be applied, bug 499664). 2009-06-23 15:50:23 -07:00
Andreas Gal
5786928320 Eliminate 64-bit LIR_callh hack (499664, r=dvander). 2009-06-23 15:11:49 -07:00
Andreas Gal
f3194e9335 Move details of LIns format into LIns class itself (500053, r=dvander). 2009-06-23 14:51:15 -07:00
David Mandelin
b3ab033855 Bug 499019: don't report errors for code that is 'not reached', even as an intermediate result, r=jorendorff 2009-06-23 10:52:52 -07:00
Igor Bukanov
795af78c24 bug 499570 - fixing shutdown leak of not-yet-closed JSNativeEnumerator instances. r=brendan 2009-06-23 18:52:03 +02:00
Jacob Bramley
a0fdb46274 Don't use ARM's MOVW and MOVT instructions to write to the PC. (487595, r=vladimir) 2009-06-23 11:13:54 +01:00
Jacob Bramley
92fa4891a8 Clean up ARM's SET macro and correct a few condition codes. (488845, r=vladimir) 2009-06-23 11:12:22 +01:00
Jacob Bramley
4bc4cb2c09 Clean up asm_branch and correct the use of condition flags on VFP conditions. (489583, r=vladimir) 2009-06-23 10:36:36 +01:00
Jacob Bramley
257161448b Fix crash on ARM caused by spilling registers in asm_mmq. (495239, r=vladimir) Follow-up: Reveals (or creates) some failures documented in bug 499889. 2009-06-23 09:36:53 +01:00
Nicholas Nethercote
7595f38896 Remove unused field 'parent' from class LabelMap (bug 499400, r=gal). 2009-06-23 14:11:09 +10:00
Graydon Hoare
8c9251f069 Bug 499603 - Stop leaking VMFragments on script-purge, r=jorendorff.
--HG--
extra : rebase_source : 110af19d876b552fbedffe4366ef4e1f5172bbfa
2009-06-22 15:48:37 -07:00
Paritosh Aggarwal
8736463f25 Bug 499016 - Provide testing support for lirasm. r=graydon. 2009-06-22 17:22:09 -05:00
Paritosh Aggarwal
f5d7c03678 Bug 497991 - Fix function calls in lirasm. r=graydon,r=jorendorff. 2009-06-22 17:16:21 -05:00
Nicholas Nethercote
ae3ac6a734 Remove unused isCse() and LirBuffer() args (bug 499260, r=edwsmith). 2009-06-22 14:48:16 +10:00
Nicholas Nethercote
a5db26a0e2 Fix assertion failure in trace-test.js with TRACEMONKEY=verbose (bug 499154, r=graydon). 2009-06-22 10:48:36 +10:00
nnethercote@mozilla.com
015cf5504c remove LIR_calli and LIR_fcalli (492478, r=edwsmith,jorendorff). 2009-06-19 10:20:26 +01:00
Andreas Gal
887e6a5f47 Remove NativeThumb.cpp (bug 486535, hg totally sucks). 2009-06-19 09:47:16 +01:00
Jacob.Bramley@arm.com
4b490c9a33 Remove remaining obsolete ARM Thumb code (486535, r=gal). 2009-06-19 09:45:52 +01:00
Andreas Gal
ac13e56ffd Backed out changeset 1b5584a4eba4. Accidentally committed some unreviewed changes. 2009-06-19 09:42:34 +01:00
Jacob.Bramley@arm.com
7ecc26f135 Remove remaining obsolete ARM Thumb code (486535, r=gal). 2009-06-19 09:37:38 +01:00
Graydon Hoare
2ad590f536 Bug 497060 - Disable JIT on non-global initial scope chain, r=brendan.
--HG--
extra : rebase_source : f8052e5687bfa5fe5f9879622375c06dac647f95
2009-06-18 14:47:57 -07:00
Blake Kaplan
3cd1e79160 Bug 498993 - Don't mistake initialization for assignment when the assignment is hidden by a secon var declaration. r=brendan/jorendorff 2009-06-18 14:52:06 -07:00
Igor Bukanov
3193020246 bug 498899 - avoiding excessive JS_(LOCK|UNLOCK)_OBJ while quering property cache. r=brendan 2009-06-18 15:24:06 +02:00
Igor Bukanov
e90c3cd0d5 Backed out changeset 7ab1be136cfa - that patch for bug 498899 has a bug. 2009-06-18 15:00:55 +02:00
Igor Bukanov
7d5d5e6b13 bug 498899 - avoiding excessive JS_(LOCK|UNLOCK)_OBJ while quering property cache. r=brendan 2009-06-18 14:26:16 +02:00
Paritosh Aggarwal
8270114427 Bug 498926 - lirasm - Support --execute with LIR_fret. r=jorendorff. 2009-06-17 11:52:20 -05:00
Igor Bukanov
dfb15bdf9a bug 498874 - fixing GCC warnings about unsigned < 0 comparisons. r=gal 2009-06-17 13:57:03 +02:00
Jonathan Steele
822c633451 Bug 477170. Remove Windows95/98 support from configure.in. r=ted
--HG--
extra : rebase_source : cf9d5aa2347053266a63f92a27d1f23d0186a7d3
2009-06-24 21:10:47 +12:00
Andreas Gal
c175b9122e Check for end of proto chain when walking it (499169, r=mrbkap). 2009-06-23 19:22:54 -07:00
Andreas Gal
468f664495 If the result of a demoted multiplication is 0, must undemote or we lose -0 (498549, r=dvander). 2009-06-17 08:06:21 +01:00
Nicholas Nethercote
c4b939cd8f Bug 494639 - NJ: fix numerous LIR memory management problems, r=graydon 2009-06-16 14:01:31 -07:00
Graydon Hoare
8e41e3adb1 Bug 496448 - Followup to fix build, r=jorendorff.
--HG--
extra : rebase_source : b9e08e853fcd183ef88b7cfac1e70ca199feb214
2009-06-16 12:19:29 -07:00
Jason Orendorff
aae770b100 Bug 498504 - lirasm - constant jumps produce assertions. intermediates treated as labels. p=paritosh,r=me. 2009-06-16 13:05:59 -05:00
Andreas Gal
0ce2e91c33 Right hand operand must be a 32-bit signed integer if we want to demote the operation (498236, r=dvander). 2009-06-16 09:35:59 +01:00
Nicholas Nethercote
e2a97e3f4c Bug 496448: TraceVis TraceMonkey performance visualization, r=brendan 2009-06-16 09:30:01 +01:00
David Mandelin
20478b6b72 Bug 497779: try to extend tree on inner-tree CASE_EXIT, r=gal 2009-06-16 09:10:28 +01:00
Phil Ringnalda
9c53680785 Bug 499632 - Remove run_viewer target, r=ted 2009-06-26 22:31:32 -07:00
Walter Meinl
42781281d7 Bug 494490 - make install on linux installs the system_wrappers{_js} in includedir; r=benjamin 2009-06-24 23:31:27 +02:00
Peter Van der Beken
876abb32f0 Fix for bug 499787 (Remove one AddRef/Release pair from GatherProtoScriptableCreateInfo). r/sr=mrbkap.
--HG--
extra : rebase_source : 2db51a8d57cf6bdb8c42e677a819e1d3687e3593
2009-06-23 12:09:13 +02:00
Olli Pettay
2e0f78e968 Bug 486990 - Context Menu can be disabled by stopping propagation, r=enn, sr=neil 2009-06-23 13:07:39 +03:00
Vladimir Vukicevic
b7cdc8d0ff b=403345; dtrace probes get wrong function name, filename, and line number info when native methods are involved; r=brendan 2009-06-17 13:50:03 -07:00
Jason Orendorff
52fe5a97ba Bug 497618 - Change JSString macros to methods. r=Waldo. 2009-06-10 20:29:44 -05:00
Jason Orendorff
45de8e01db Bug 498395 - "Assertion failure: !(pn->pn_dflags & flag), at ../jsparse.h". r=mrbkap, r=brendan.
--HG--
extra : rebase_source : c3d0ecfcbbbce0c7494ffd53dc240c2b69e6eb8f
2009-06-15 15:42:00 -05:00
Nicholas Nethercote
de28e96de9 NJ: fix load opcode checking, r=graydon. 2009-06-15 12:04:06 -07:00
Andreas Gal
ec254bec6f Support tracing instanceof operator (498351, r=jorendorff). 2009-06-15 16:44:30 +01:00
Andreas Gal
213c5e12a5 Remove obsolete ARM/Thumb code (no bug). 2009-06-13 20:05:28 -05:00
Brendan Eich
1bd5c5dc73 Over-parenthesize per house style and to avoid GCC warning (r=nnethercote, private communication). 2009-06-14 19:37:43 -07:00
Andreas Gal
e53b949cbf Cleanup expression filter in LIR.cpp (497935, r=edwsmith). 2009-06-13 18:04:08 -05:00
Andreas Gal
cc54d17364 Don't trace attempted setting of a constant in an active frame (495962, r=brendan). 2009-06-13 17:31:19 -05:00
Andreas Gal
848b955635 adjustCallerTypes does not aggressively undemote globals anymore (bug 496482, r=dvander). relanding 2009-06-12 17:26:56 -07:00
Andreas Gal
b43077c19f Optimize ECMA double to int32 conversion path (patch by mohammad.r.haghighat@intel.com, r=dvander). 2009-06-12 15:18:10 -07:00
Blake Kaplan
c538fe444e Bug 497998 - Remove obsolete assertion. r=brendan 2009-06-12 14:53:25 -07:00
Graydon Hoare
6a44d94f4f Bug 484142 - Standalone LIR assembler, r=jorendorff. 2009-06-12 11:33:08 -07:00
Andreas Gal
659a7a9b6c Implement oracle-based speculative fmod/fdiv/fmul demotion (474443, r=graydon,dvander). 2009-06-12 08:33:32 -07:00
Blake Kaplan
dda0e2bd98 Bug 497119 - Don't assume that we have a cx->fp (or that fp is on cx->fp at all). Set up display as it would have been when fp was active, though. r=brendan 2009-06-11 14:12:23 -07:00
Jeff Walden
8b7bef6dd0 Bug 497207 - Define |enum JSTraceType| and stop overloading JSVAL_* for trace-time types. r=jorendorff
--HG--
extra : rebase_source : bb72ca3ad8fab4d0b2affca611630bf5a9559531
2009-06-10 16:58:02 -07:00
Andreas Gal
a0182c819c Correctly disable conditional moves on platforms that do not support them (497455, r=graydon). 2009-06-10 15:21:10 -07:00
Brendan Eich
324ed984a8 Cast to int16 when tagging slot as an int jsval to satisfy an assertion (497146, r=igor from the future). 2009-06-10 12:15:01 -07:00
David Mandelin
3b5dd194d2 Bug 497015: correctly account for tracing/interpreter differences in layout of slots/stack for upvars in top-level frame, r=gal 2009-06-09 17:18:42 -07:00
David Mandelin
3db63853e3 Bug 496922: do upvars correctly when the function defining the upvar was called with extra args, r=brendan,gal 2009-06-09 11:49:53 -07:00
Brendan Eich
51fe52e6f9 Wrapper automation should not apply to flat closures, plus cleanup (496790, r=igor). 2009-06-09 00:51:02 -07:00
Blake Kaplan
ce23324f11 Bug 496870 - Emit JSOP_STARTXMLEXPR before potentially emitting any LC nodes in a list. r=Waldo 2009-06-08 16:48:30 -07:00
ikezoe@clear-code.com
2e4dab02a1 LIns::isOp2() lacks qjoin (496851, r=gal,edwsmith). 2009-06-08 15:04:19 -07:00
Benjamin Smedberg
040c645b55 Followup to bug 496824 - reverse the order of the asserts so that we know accessing cx->fp is safe 2009-06-08 17:07:26 -04:00
Brendan Eich
ad476aa98c Add static analysis incantation, plus assert cx->fp for sanity (496824, r=mrbkap). 2009-06-08 13:35:43 -07:00
David Anderson
7b60d9f172 Fixed sideexit coalescing code not checking global count (bug 496813, r=gal). 2009-06-08 13:20:25 -07:00
Brendan Eich
a08c609235 Fix destructuring binding to follow the cheezy dominance relation rules of the upvar analysis (496134, r=mrbkap; take 2). 2009-06-08 13:03:50 -07:00
Blake Kaplan
d7a368c426 Bug 496245 - Assertion failure: fun->u.i.script->upvarsOffset. r=brendan/dmandelin 2009-06-08 12:13:37 -07:00
David Mandelin
344e868872 Bug 496251: use up-to-date typemap when getting upvar from trace entry native frame, r=gal 2009-06-08 10:48:18 -07:00
Brendan Eich
046d89233e Fix delete upvar (and local var, too) analysis (496422, r=igor). 2009-06-07 13:07:16 -07:00
danderson@mozilla.com
d73e0f0bbf Merge global type maps at the loop nesting anchor site (496743, r=gal). 2009-06-06 14:04:23 -07:00
Nicholas Nethercote
96dd8702a9 Bug 495028. nanojit: add opcode checks to all LIR get/set methods. r=edwsmith 2009-06-06 12:58:11 -04:00
Robert Sayre
f44a576277 Back out bug 496134, destructuring assignment upvar fixes due to reported fuzzer problems 2009-06-06 02:20:06 -04:00
David Mandelin
1e04a40929 Bug 496270: correct use of C++ reference returned from function, r=gal 2009-06-05 16:19:06 -07:00
Brendan Eich
05f8dc2692 Fix destructuring binding to follow the cheezy dominance relation rules of the upvar analysis (496134, r=mrbkap). 2009-06-05 16:14:00 -07:00
Brendan Eich
b95d489795 Skip let binding not in scope (in let head, e.g.) and find any shadowed binding (496532, r=mrbkap). 2009-06-05 13:55:51 -07:00
Brendan Eich
d39f51fdcb Last gasp for 496605 (r=igor). 2009-06-05 12:24:20 -07:00
Brendan Eich
4d75d6bce0 Fast ultimate fighting web-compat followup for 496605 (r=mrbkap). 2009-06-05 12:13:22 -07:00
Brendan Eich
a356c92db2 Bug 496605 - Need to prevent optimized closure escape via foo.caller still (r=igor). 2009-06-05 11:41:32 -07:00