Commit Graph

116 Commits

Author SHA1 Message Date
Blake Kaplan
635d2fd69f Bug 455775 - The eval frame might not be the top frame, but we still must find it. r=brendan 2008-09-26 15:37:07 -07:00
Taras Glek
c7528a9f01 bug 432917: Replace "must flow through label" comments with statically-checkable macro. r=igor 2008-09-08 10:51:10 -07:00
Igor Bukanov
de4e2b19aa bug 453133 - merging JSOP_DEFUN and JSOP_CLOSURE. r=brendan 2008-09-08 13:58:17 +02:00
Jim Blandy
d8cc274426 Bug 97954: Give jsconfig.h a better name, and make room for the new js-config.h. r=bsmedberg
We'd like the SpiderMonkey configure script to generate a header file
named js-config.h to hold #definitions chosen at configure time that
affect the SpiderMonkey API, like JS_THREADSAFE.  However, that name
is very similar to that of an existing header file, jsconfig.h.  This
patch renames the existing header file, and updates all references to
it.
2008-09-05 10:19:17 -07:00
Taras Glek
b6d72f1eaf bug 441362: Avoid an invisible return. r=igor 2008-09-02 13:32:27 -07:00
Igor Bukanov
4be80b5c95 bug 449494 - uniform handling of bytecodes with variable stack uses. r=mrbkap,brendan 2008-09-02 08:25:15 +02:00
Brendan Eich
54893564a6 Fix upvar decompilation for eval-from-fun case (451884, r=mrbkap). 2008-08-27 14:35:41 -07:00
Brendan Eich
3601eb799d Upvar, v0.1 (limited to looking up from eval in a function, to the function's args and vars). 2008-08-21 03:47:33 -07:00
Brendan Eich
e6a2bcc171 Match JSOP_NULLTHIS up to JSOP_NULL special cases in the decompiler. 2008-08-11 13:03:47 -07:00
Brendan Eich
e6aad74aae Merge from mozilla-central. 2008-08-08 18:58:04 -07:00
Graydon Hoare
f6b62ae8ff Bug 447713, remove the import/export functionality from spidermonkey, r=brendan 2008-08-06 17:34:58 -07:00
Igor Bukanov
2c87fa5a62 bug 447762 - merging var and local JS bytecodes. r=brendan 2008-08-06 16:13:22 +02:00
Brendan Eich
5fa2c21375 Misc. cleanup. 2008-08-03 01:34:07 -07:00
Brendan Eich
342e1a24b5 - Export JSSLOT_ITER_* from jsiter.cpp to jsiter.h, for jstracer.cpp to use.
- Fix OBJ_GET_SLOT to be STOBJ_GET_SLOT in jsiter.cpp, no thread safety here (bug on file).
- Move JSNativeEnumerator from jsobj.cpp to jsobj.h for jstracer.cpp as well.
- Rename JOF_2BYTE JOF_UINT8 for consistency, and actually decompile it.
- Trace JSOP_FORVAR (can't do anything in JSOP_ITER, it comes before the loop).
- Shortened some guardMyLongSummerVacationWithinBounds names ;-).
- Removed/refactored to avoid dslots_ins obligation on all callers.
2008-07-30 16:32:33 -07:00
Brendan Eich
d887639d7d Export js_ReconstructStackDepth for use by side-exit code when synthesizing stack frames. 2008-07-28 23:46:27 -07:00
Igor Bukanov
38d473c17a bug 446320 - fixing -Wformat warnings in debug printouts. r=crowder 2008-07-29 16:11:36 +02:00
Igor Bukanov
3e1ff33f1b Backed out changeset 65836af09dac - compilation errors 2008-07-27 23:05:52 +02:00
Igor Bukanov
5b51bc9310 bug 446320 - fixing -Wformat warnings in debug printf code. r=crowder 2008-07-27 22:52:10 +02:00
8c52ce5563 merge (mostly, doesn't build) 2008-07-22 23:58:43 -04:00
Igor Bukanov
e9875f6677 bug 441686 - eliminating JSStackFrame.(nvars|vars). r=brendan 2008-07-20 22:13:17 +02:00
Andreas Gal
094ee2dba1 Sync with mozilla-central. 2008-07-03 21:45:09 -07:00
Brendan Eich
f77560b092 Clean up for-in ops and naming nit (443039, r=igor). 2008-07-01 18:59:18 -07:00
Brendan Eich
9717bc0d6c Eliminate useless genexp for(;;) conditions (442342, r=jorendorff). 2008-07-01 13:05:11 -07:00
7c9b88ecd0 Merge with mozilla-central as of c5dc9d84d476, and restore obj-to-boolean fixes
from 2b107c27dedf (accidentally backed out during an earlier merge).  22 test
suite failures for -L lc2 lc3 spidermonkey-n slow-n, probably needs some guard
work in TRY_BRANCH_AFTER_COND.
2008-06-29 10:01:59 -04:00
Brendan Eich
eba68c02ab Fix for(;;) loops to use one branch per iter (after initial iter; 441477, r=jorendorff). 2008-06-26 17:49:01 -07:00
Igor Bukanov
b998d7da52 [Bug 433382] More efficient interpreter switch when computed goto is not available. r=brendan 2008-06-20 11:55:49 +02:00
Igor Bukanov
ab82078dd6 Backed out changeset 97977f224aff due to build breakage 2008-06-20 11:46:36 +02:00
Igor Bukanov
8b4ddb3ea7 [Bug 433382] More efficient interpreter switch when computed goto
is not available. r=brendan
2008-06-20 10:06:45 +02:00
Igor Bukanov
1025737b61 Backed out changeset 21527193c49b: the patch has used CSRCS, not CPPSRCS. 2008-06-20 09:45:29 +02:00
Igor Bukanov
46a8d347ba [Bug 433382] More efficient interpreter switch when computed goto is not available. r=brendan 2008-06-20 09:36:56 +02:00
Andreas Gal
d48ad704b7 Removed JSOP_HEADER code. Its too costly. This patch restore essentially the same performance as unmodified SM. 2008-06-10 14:44:51 -07:00
Brendan Eich
232f7b59e3 Fix 260106, r=shaver. 2008-06-04 17:00:46 -07:00
Brendan Eich
2ec7407f05 Fix decompiler (hack, really) to cope with misplaced JSOP_HEADER in update part of for(;;) loop. 2008-06-03 23:50:22 -07:00
Brendan Eich
3751ed1b89 JSOP_HEADER takes a byte index of loop header counting from script->loopBase, and related changes. 2008-06-03 14:48:47 -07:00
Brendan Eich
54c9bd721b Fix ReconstructPCStack oplen code, extend js_OpLength to avoid cs recalculation where possible. 2008-06-03 13:51:30 -07:00
Brendan Eich
581542a918 No JS_TRACER ifdefs, keep line len < 80, reparameterize jstracer.cpp functions, js_OpLength helper. 2008-06-02 17:19:41 -07:00
Andreas Gal
4bc37bf703 Add a per-runtime loop attribute table that associates a jsval attribute with every loop in the code. The jsval is used initially as a counter until a certain threshold is reached, at which point the loop is traced and compiled and the resulting native code object is stored in the jsval to be executed for future encounters of the loop. 2008-05-30 10:11:56 -07:00
Brendan Eich
2f4182d585 Instrument loop headers with jsvals above fp->vars and below fp->spbase. 2008-05-28 19:07:32 -07:00
Brendan Eich
ec73d20ccf Igor's patch for bug 433382, r=me. 2008-05-23 23:44:08 -07:00
Benjamin Smedberg
86da87a6f2 Return to building spidermonkey as C++, because we believe we found the cause of the perf regression elsewhere (non-code). 2008-05-27 16:58:12 -04:00
Benjamin Smedberg
e310131a6f Back out revision bd9c9cbf9ec8 (build spidermonkey as C++) for perftesting and profit. 2008-05-27 12:19:17 -04:00
Benjamin Smedberg
0d1b21b9bc Merge cvs-trunk-mirror to mozilla-central. Conflict resolution:
* client.mk: new NSS tag merge to client.py
2008-05-05 13:39:59 -04:00
Benjamin Smedberg
a02b2c278b Merge from cvs-trunk-mirror to mozilla-central. No conflict resolution necessary. 2008-05-01 09:50:06 -04:00
Benjamin Smedberg
01054519cb Merge cvs-trunk-mirror to mozilla-central. No manual conflict resolution was necessary. 2008-04-30 12:35:19 -04:00
Benjamin Smedberg
46806d90d9 Merge cvs-trunk-mirror to mozilla-central. Automated merge, no manual conflict resolution necessary. 2008-04-29 10:20:07 -04:00
f732aac40d Merge from cvs-trunk-mirror to mozilla-central. 2008-04-02 16:35:13 -05:00
be99c2bf49 Merge from cvs-trunk-mirror to mozilla-central. (This doesn't build, thanks to bug 425080, which I'll fix next.) 2008-03-26 11:42:07 -05:00
Benjamin Smedberg
99b5602dff Merge cvs-trunk-mirror -> mozilla-central. There's a C++ bug in js/src/jsinterp.cpp that I am going to file upstream. 2008-03-20 12:42:05 -04:00
9e99a733a6 Merge cvs-trunk-mirror -> mozilla-central to pick up the 421274 backout especially 2008-03-13 15:26:42 -04:00
8396b9fcdd Merge cvs-trunk-mirror -> mozilla-central 2008-03-13 10:32:07 -04:00