Commit Graph

6568 Commits

Author SHA1 Message Date
Jesse Ruderman
6b6f0e013c Add trace-test for bug 465902 2009-09-04 22:50:49 -07:00
Brendan Eich
2b439c7885 Use class statics for the unit and int string tables (513530 followup, r=gwagner). 2009-09-04 18:04:14 -07:00
David Anderson
0650a2788b LIR sanity checker from tamarin-redux (bug 514503, r=gal,edwsmith). 2009-09-04 17:56:22 -07:00
Brendan Eich
b347b52323 Minimal fix for latent js_InferFlags bug where TR::snapshot calls js_InferFlags on arbitrary ops (514790, r=gal). 2009-09-04 17:47:23 -07:00
Luke Wagner
dbc9bb4660 Moved tests in js/src and js/src/correct to trace-tests (r=jorendorff)
--HG--
rename : js/src/call.js => js/src/trace-test/tests/basic/call2.js
rename : js/src/correct/check-3d-morph.js => js/src/trace-test/tests/sunspider/check-3d-morph.js
rename : js/src/correct/check-3d-raytrace.js => js/src/trace-test/tests/sunspider/check-3d-raytrace.js
rename : js/src/correct/check-access-binary-trees.js => js/src/trace-test/tests/sunspider/check-access-binary-trees.js
rename : js/src/correct/check-access-fannkuch.js => js/src/trace-test/tests/sunspider/check-access-fannkuch.js
rename : js/src/correct/check-access-nbody.js => js/src/trace-test/tests/sunspider/check-access-nbody.js
rename : js/src/correct/check-access-nsieve.js => js/src/trace-test/tests/sunspider/check-access-nsieve.js
rename : js/src/correct/check-bitops-3bit-bits-in-byte.js => js/src/trace-test/tests/sunspider/check-bitops-3bit-bits-in-byte.js
rename : js/src/correct/check-bitops-bits-in-byte.js => js/src/trace-test/tests/sunspider/check-bitops-bits-in-byte.js
rename : js/src/correct/check-bitops-bitwise-and.js => js/src/trace-test/tests/sunspider/check-bitops-bitwise-and.js
rename : js/src/correct/check-bitops-nsieve-bits.js => js/src/trace-test/tests/sunspider/check-bitops-nsieve-bits.js
rename : js/src/correct/check-controlflow-recursive.js => js/src/trace-test/tests/sunspider/check-controlflow-recursive.js
rename : js/src/correct/check-date-format-tofte.js => js/src/trace-test/tests/sunspider/check-date-format-tofte.js
rename : js/src/correct/check-date-format-xparb.js => js/src/trace-test/tests/sunspider/check-date-format-xparb.js
rename : js/src/correct/check-mont.js => js/src/trace-test/tests/sunspider/check-mont.js
2009-09-04 16:40:45 -07:00
Andreas Gal
27381a9ab1 Reset nativeVp only after the native call returns (513981, r=mrbkap). 2009-09-04 17:00:08 -07:00
Luke Wagner
28a6837fd4 Build fix for bug 513530, trailing enum comma. 2009-09-04 16:52:20 -07:00
Gregor Wagner
0becd3863d dvander missed part of the patch (bug 513530). 2009-09-04 16:43:28 -07:00
David Anderson
e6a431e6ae Merge. 2009-09-04 16:29:40 -07:00
Gregor Wagner
2e1104b40f Cache result of Number2String (bug 513530, r=brendan). 2009-09-04 16:28:30 -07:00
Brendan Eich
fd61e1b61a Fix imacro vs. script code disassembly/decompilation confusion (510644, r=jorendorff). 2009-09-04 16:27:17 -07:00
Gregor Wagner
cf62469ed2 Fast path for js_StringToInt32 if string length is 1 (bug 514267, r=brendan). 2009-09-04 16:26:08 -07:00
Jeff Walden
bb3a9524fa Bug 514603 - ES5: (function(){}).propertyIsEnumerable("prototype") should be false, not true. r=brendan 2009-09-04 02:16:05 -07:00
David Anderson
6e929c1385 Fixed codeAlloc misuse in x64 backend (bug 513842 followup, r=gal). 2009-09-04 14:50:16 -07:00
Luke Wagner
6bfe9f9329 Bug 460904 - rename/tweak JSTraceableFunction (take 2) 2009-09-04 13:44:31 -07:00
Luke Wagner
3087376a4d Backed out changeset 94da2f68afdb 2009-09-04 11:35:52 -07:00
Luke Wagner
52d822b6d2 Bug 460904 - rename/tweak JSTraceableFunction (r=jorendorff) 2009-09-03 11:57:14 -07:00
Nicholas Nethercote
02a5869681 Bug 512646 - nanojit: remove RegAlloc::{count,checkCount(),countFree()}. r=edwsmith. 2009-09-04 15:58:10 +10:00
David Anderson
19e6272d43 Implemented side exits in the x64 backend, and merged in tamarin-redux changes (bug 514537, r=gal). 2009-09-03 19:12:47 -07:00
Nicholas Nethercote
ea4545c24a Follow-up to bug 513843. r=gal (via IRC). 2009-09-04 11:07:36 +10:00
Andreas Gal
0564bbf1e0 Compilation fix for NativeARM.cpp (LIR_call was renamed to LIR_icall, r=dvander). 2009-09-03 17:54:48 -07:00
Nicholas Nethercote
a27675d43a Bug 513831 - nanojit: some regalloc comments, etc. r=edwsmith. 2009-09-04 09:18:01 +10:00
David Mandelin
39b0d1f96d Bug 510498: try 'python -u' to avoid tinderbox timeouts, r=jorendorff 2009-09-03 16:14:37 -07:00
David Mandelin
a69a6f44b9 Bug 514101: show running trace-test when interrupted by Ctrl+C, r=dvander
--HG--
extra : rebase_source : 3f85a036f9c4e732d247b8210d47845c2b141771
2009-09-03 16:10:15 -07:00
Andreas Gal
6771d193dd Introduce a register fence instruction to force all registers to be spilled (514374, r=edwsmith,rreitmai). 2009-09-03 14:43:30 -07:00
Brendan Eich
cce4dce512 Join lambdas assigned or initialized as methods to the compiler-created function object if we can, with a read barrier to clone on method value extractions other than call expressions (471214, r=jorendorff). 2009-09-03 14:41:19 -07:00
Jason Orendorff
13c0c5eff8 Bug 513115 - EMCA5: test failures in ecma_5/Date/15.9.4.2.js. r=dmandelin.
--HG--
extra : rebase_source : 9aada8547a89f7711780b3b34b45c6b573bdeb82
2009-09-03 15:52:03 -05:00
Jeff Walden
5670ca5621 Bug 514309 - Object.prototype.hasOwnProperty mishandles non-primitive property name. r=brendan
--HG--
extra : rebase_source : 56a59bf5d25f0c7303cac96b90fb4bababdf8e53
2009-09-02 21:13:51 -07:00
Andreas Gal
026f651d69 Incorrect register hint for LIR_param for 386 backend (514344, r=njn). 2009-09-02 21:09:34 -07:00
Nicholas Nethercote
0abd6c54da Bug 511051 - TM/nanojit: use NULL as the condition for unconditional guards, again. r=gal. 2009-09-03 13:06:31 +10:00
Nicholas Nethercote
5adc17c6a5 Bug 514110 - nanojit: avoid getresv() because it has a redundant test. r=gal. 2009-09-03 09:36:51 +10:00
Jason Orendorff
d41212b7a6 Bug 514222 - js_GetMutableScope gives the scope a unique shape. r=brendan. 2009-09-02 17:58:25 -05:00
Luke Wagner
5c14309cd1 Bug 511750 - factor template utilities into js::tl (r=brendan)
--HG--
extra : rebase_source : a5a396811268e71af8e56c66dab491f3081bc20a
2009-09-01 18:46:19 -07:00
Brendan Eich
932d989110 Fix net vs. gross botches from patch for 489899 (514112, r=gal). 2009-09-01 22:54:02 -07:00
Nicholas Nethercote
320a2cfb64 Backed out changeset 48928150aa27 due to Tinderbox breakage. 2009-09-02 12:14:09 +10:00
Nicholas Nethercote
85c5abe0a7 Bug 513865 - nanojit: make LirReader::read() clearer and faster. r=gal. 2009-09-02 10:20:28 +10:00
Luke Wagner
cdd6b54ff9 Fix bustage: switch uintN to size_t 2009-09-01 16:41:32 -07:00
Andreas Gal
f6ce0dc81e Register allocate loop-spanning references (513843, r=rreitmai). 2009-09-01 16:30:51 -07:00
Luke Wagner
17f41ec26d Bug 460904 - refactor jsstr regexp ops (r=waldo) 2009-08-12 13:01:34 -07:00
Andreas Gal
2b1f1a8bf9 JS_ISSPACE has wrong space character check (513701, r=brendan). 2009-09-01 15:45:11 -07:00
Andreas Gal
447939882c Load state after spilling or we might clobber a callee-saved register (513878, r=dvander). 2009-09-01 15:30:19 -07:00
Andreas Gal
fadffac705 Make branchStateMap, patches, and labels fields of the Assembler (513884, r=rreitmai). 2009-09-01 15:27:34 -07:00
David Anderson
f003096144 Fixed trace-test.py -x option (bug 514022, r=dmandelin). 2009-09-01 15:06:02 -07:00
David Anderson
21466cd521 Added LIR_float to distinguish NULL from 0.0 on x64 (bug 513838, r=gal,rreitmai). 2009-09-01 14:26:24 -07:00
Nicholas Nethercote
84f6367d69 Bug 512614 - nanojit: remove FST1..FST7 from Nativei386.cpp. r=edwsmith. 2009-09-01 16:55:15 +10:00
Nicholas Nethercote
7f3df7efb0 Bug 512423 - nanojit: inline small RegAlloc methods. r=edwsmith. 2009-09-01 16:03:01 +10:00
David Anderson
66b35f24b6 Use newer codeAlloc() in x64 backend (bug 513842, r=gal). 2009-08-31 19:57:32 -07:00
Nicholas Nethercote
e409ab2bb3 Bug 512596 - TM: improve TMFLAGS=help message. r=jseward. 2009-09-01 10:08:46 +10:00
Andreas Gal
42daf230a5 Compilation fix for bug 513787. 2009-08-31 17:02:16 -07:00
Andreas Gal
292f7e316d Don't restore FP twice when exiting a fragment (513787, r=rreitmai). 2009-08-31 16:35:50 -07:00
David Anderson
a33078ac37 Merge Assembler::disp() changes from tamarin-redux, always use 4-byte granularity (bug 513796, r=gal). 2009-08-31 16:14:22 -07:00
David Anderson
935ae0427d Fixed all ARGSIZE_LO usages to be ARGSIZE_P or ARGSIZE_I (bug 513790, r=jorendorff). 2009-08-31 16:06:24 -07:00
Andreas Gal
2b192c3c31 Use asm_ret to emit code for LIR_ret and LIR_fret (513771, r=dvander). 2009-08-31 15:01:41 -07:00
David Mandelin
dd195bf785 Bug 513476: update README for trace-tests.py to reflect usage of tree-standard python 2.5, no_r=me 2009-08-31 12:11:00 -07:00
David Mandelin
41b0b5b229 Bug 513131: convenient retest feature for trace-tests.py, r=jorendorff 2009-08-31 12:05:54 -07:00
David Mandelin
8c9d1bb5a7 Bug 513118: improved CLI selection of single tests for trace-test.py, r=jorendorff 2009-08-31 11:57:32 -07:00
Nicholas Nethercote
686dcb25be Bug 512610 - nanojit: some register allocation clean-ups. r=edwsmith. 2009-08-31 15:33:46 +10:00
Nicholas Nethercote
e7fbdc867c Bug 512398 - nanojit: kill RegAlloc::used. r=edwsmith. 2009-08-31 15:02:08 +10:00
Leon Sha
1f7b2525ab Bug 513208 - Tracemonkey build failed on solairs at jsnum.h. r=gal. Remove the space after copysign 2009-08-31 12:05:27 +08:00
Leon Sha<leon.sha@sun.com>
6c708d7ac4 Bug 513211 - [tracemonkey]trace-test testBug504520Harder.js failed on sparc platform. r=gal. 2009-08-31 12:12:38 +08:00
Leon Sha<leon.sha@sun.com>
df159dfdb0 Bug 512433 - tracemonkey build failed at NativeSparc.cpp. r=gal. 2009-08-31 12:04:25 +08:00
Leon Sha
b432f885db Bug 513208 - Tracemonkey build failed on solairs at jsnum.h. r=gal 2009-08-31 11:21:51 +08:00
Nicholas Nethercote
6c0c4d9616 Bug 512652 - TM: refactor Assembler::evict(). r=edwsmith. 2009-08-31 11:48:21 +10:00
Igor Bukanov
932b904a7a bug 511425 - followup to fix bogus assert 2009-08-30 22:07:19 +04:00
Jason Orendorff
235e72bc0c Bug 513429 - Say "int" and "quad" in debug output for those LIR opcodes. r=edwsmith.
--HG--
extra : rebase_source : 0d9b017c0f4dbe7cd7c0f3dad27a3bee80eaa276
2009-08-30 11:36:48 -04:00
Andreas Gal
64b13a5ec6 Remove useless FASTCALL declarations and make hashcode and equals less branchy (513539, r=dvander). 2009-08-30 00:11:12 -07:00
Andreas Gal
84094cb9d0 Remove remainder of now unused LIR_loop support code (513535, r=dvander). 2009-08-29 23:26:54 -07:00
Andreas Gal
4394dfd752 Don't allocate in Queue constructor by default (513497, r=shaver). 2009-08-29 18:57:57 -07:00
Andreas Gal
c85b53a42a Backout bug 512617. 2009-08-29 18:46:27 -07:00
Andreas Gal
25efe9f46a Future proofing nit for bug 513379. 2009-08-29 14:19:44 -07:00
Andreas Gal
13d0507fa2 More fallout from bug 512617 bonus patch. 2009-08-29 13:33:10 -07:00
Andreas Gal
8b20919625 Restore 'CALLEE' tracable native type, quickstubs need it (compilation fix for bug 512617). 2009-08-29 13:05:16 -07:00
Andreas Gal
64328a8e94 Consolidate object creation on trace (512617, r=jorendorff). 2009-08-29 12:36:00 -07:00
Andreas Gal
6424c04026 Inline js_DoubleToInteger (513436, r=sayrer). 2009-08-29 02:36:45 -07:00
Andreas Gal
7a4da2ecd3 Shortcut strncmp in string to number conversion path (513434, r=sayrer). 2009-08-29 02:28:00 -07:00
Andreas Gal
3ffdadab9b Fast path for is/is not space character classification (513379, r=sayrer). 2009-08-29 02:17:10 -07:00
Andreas Gal
7d3f588878 Inline GetUnitString fast path (513373, r=sayrer). 2009-08-28 16:30:41 -07:00
Andreas Gal
60fa2078b6 js_GetExistingStringAtom should check for unit strings (512996, r=jorendorff). 2009-08-28 15:53:55 -07:00
Andreas Gal
706e1e3bd3 Remove unused hasLoop flag (513263, r=graydon). 2009-08-28 14:38:09 -07:00
Andreas Gal
14813a11f4 Remove some TM-only fields from nanojit (513187, r=dvander). 2009-08-28 14:36:37 -07:00
Igor Bukanov
b919139e8d bug 511425 - removal of JSObjectOps.(get|set)RequiredSlot. r=brendan 2009-08-28 09:53:26 +04:00
Nicholas Nethercote
3c773f1b39 Bug 512640 follow-up: remove a stray debugging printf. 2009-08-28 15:23:14 +10:00
Nicholas Nethercote
2bb3987d6f Bug 512640 - nanojit: refactor Assembler::findRegFor(). r=edwsmith. 2009-08-28 14:59:52 +10:00
Andreas Gal
317b5f2e3a Remove explicitSavedRegs and loop hacks from nanojit (513139, r=dvander). 2009-08-27 18:46:45 -07:00
Graydon Hoare
72ae192dab Bug 496816 - Force x87 FPU to 64-bit mode on any x86-gcc platform, r=brendan. 2009-08-27 11:34:13 -07:00
Graydon Hoare
5b06cc0665 Bug 510602 - Massage LIR opcodes to merge state, r=dvander. 2009-08-27 17:52:46 -07:00
Graydon Hoare
fa12dc4a05 Bug 513049 - TM: Add env var to force-disable SSE, r=gal. 2009-08-27 17:16:13 -07:00
Graydon Hoare
a4b6a75ae6 Bug 513063 - Followup to fix windows breakage, r=jorendorff. 2009-08-27 15:54:40 -07:00
David Mandelin
03bdb1b7bf No bug, trace test from bug 511241, no_r=me 2009-08-27 15:52:04 -07:00
David Mandelin
db7fb65c2f Bug 505591 followup: add trace tests, no_r=me 2009-08-27 15:48:56 -07:00
David Mandelin
368b225d78 Bug 505591: trace JSOP_NAME for returned closures, r=dvander
--HG--
extra : rebase_source : 496a99feeb0fee876cd72b24e1e753d9b41ea51f
2009-08-27 15:40:37 -07:00
Andreas Gal
8986edfd26 Build fix for 513063. 2009-08-27 15:34:20 -07:00
David Mandelin
41734fc7d9 No bug, test case filed in bug 513038, no_r=me 2009-08-27 15:17:03 -07:00
David Mandelin
2f814a4418 Bug 512182: run some trace tests with TMFLAGS=full 2009-08-27 15:10:59 -07:00
David Mandelin
a086bb3ab9 Bug 510642: traverse scope chain correctly for traced JSOP_BINDNAME, r=jimb 2009-08-27 15:07:46 -07:00
Robert Sayre
2d246a4cb2 Merge 2009-08-27 14:17:04 -07:00
Andreas Gal
d4c110a6b1 Avoid bit twiddling on double values (513063, r=brendan). 2009-08-27 13:59:19 -07:00
Luke Wagner
99a4b18694 Added #ifdef JS_TRACER. Added JS_REQUIRES_STACK. 2009-08-27 13:52:29 -07:00
David Anderson
67d863503e Merged Assembler.h!nRegisterAllocFromSet changes from tamarin-redux (bug 513083, r=gal). 2009-08-27 13:50:30 -07:00
David Anderson
c04fa74537 Merged Assembler.h!nPatchBranch changes from tamarin-redux (bug 513079, r=gal). 2009-08-27 13:47:39 -07:00