Commit Graph

16166 Commits

Author SHA1 Message Date
shaver@mozilla.org
60c7caba17 Unlike software developers, g++ doesn't like variable-sized arrays. Have some alloca! 2008-07-10 16:48:42 -04:00
shaver@mozilla.org
7b7430ef26 merge 2008-07-10 16:47:12 -04:00
David Anderson
8282c44200 Fixed guarding of eq+ifeq/ifne fusions and enabled tracing JSOP_GOTO (no-op) 2008-07-10 13:35:17 -07:00
Andreas Gal
1b8705e646 Root all strings and objects first when unboxing. Then box values that might trigger the GC (doubles/ints). This probably needs some performance tuning over time. 2008-07-10 13:24:49 -07:00
Andreas Gal
222a958b75 Merge. 2008-07-10 09:24:59 -07:00
Andreas Gal
ed0cfa6ce8 Don't concede an inch to ISO C++. Substract the size of array[1] from the overall struct size when allocating. 2008-07-10 09:22:01 -07:00
shaver@mozilla.org
36027eae9d update trace-test.js, now crashes calling lsh() the second time 2008-07-10 10:45:11 -04:00
shaver@mozilla.org
929e6f9e95 MSVC knows about intptr_t, and doesn't like our remix 2008-07-10 10:21:29 -04:00
shaver@mozilla.org
45b694dc35 I'm going to just keep bludgeoning these typedefs until they stick 2008-07-10 10:18:22 -04:00
shaver@mozilla.org
853e2a057b try to find malloc on Linux; this buildbot thing rules the school 2008-07-10 10:03:45 -04:00
shaver@mozilla.org
2e3334d255 use typedefs instead of stdint.h, because someone forgot to tell MSVC it was 2008 2008-07-10 09:52:34 -04:00
shaver@mozilla.org
2a0f9b6245 can't have zero-sized arrays in ISO C++, says gcc 2008-07-10 09:29:42 -04:00
shaver@mozilla.org
5e83315c4d use stdint.h instead of typedefs to help Linux find intptr_t 2008-07-10 09:20:36 -04:00
shaver@mozilla.org
81163c8350 build nanojit 2008-07-10 09:12:53 -04:00
shaver@mozilla.org
47dc7b72e6 Make nanojit arch selection explicit in config/*, though for now only OS X and Linux
on x86.
2008-07-10 09:12:17 -04:00
shaver@mozilla.org
159a5fb1fd rename builtins.tbl *back*, because nanojit expects that name, and whatever
--HG--
rename : js/src/jsbuiltins.tbl => js/src/builtins.tbl
2008-07-10 08:53:03 -04:00
shaver@mozilla.org
864f3dc9db rename builtins.tbl to our usual form
--HG--
rename : js/src/builtins.tbl => js/src/jsbuiltins.tbl
2008-07-10 08:51:44 -04:00
shaver@mozilla.org
bf94c0c6b9 fix include ordering for THREADSAFE build 2008-07-10 08:40:43 -04:00
shaver@mozilla.org
0b4c4a7782 fix compilation, but possibly not logic, of shared-object defense 2008-07-10 08:05:25 -04:00
shaver@mozilla.org
8ae4979fc0 revert ancient shuffling of js_CompareAndSwap decl to fix THREADSAFE build 2008-07-10 07:57:18 -04:00
shaver@mozilla.org
24cf72a522 some build fixes to help in-browser and other-arch build 2008-07-10 07:56:36 -04:00
Andreas Gal
bdeea1b3cb Prime the page cache during VM startup. This makes us eat the page cache allocation overhead there instead of during the first use. This is just a hotfix. We still need a rewrite of the page cache. 2008-07-09 23:47:17 -07:00
Andreas Gal
81a8b26765 Merge. 2008-07-09 23:42:46 -07:00
Andreas Gal
1dbb6a7d41 Backed out changeset 234230320093 (reducing code cache size due to startup issue.) 2008-07-09 23:42:27 -07:00
Andreas Gal
ca130e3cb2 Merge. 2008-07-09 19:12:09 -07:00
Brendan Eich
12d0fb7104 Always allocate gvars for top-level scripts if any global names are used -- may hurt some microbenchmarks but we can fix it via bug 441686. 2008-07-09 19:10:01 -07:00
Andreas Gal
0a93e4dd69 Assert if no gvar is allocated for an undeclared global. 2008-07-09 18:51:08 -07:00
Andreas Gal
40a15bccc7 Merge. 2008-07-09 18:25:36 -07:00
Andreas Gal
ef76c5d316 varobj is not passed through the chain. Make sure to use global->varobj for gvar access. 2008-07-09 18:25:10 -07:00
shaver@mozilla.org
efcff4a09f More tests, working on crashes. 2008-07-09 21:09:11 -04:00
Brendan Eich
31b11b4e90 Merge. 2008-07-09 17:58:19 -07:00
Andreas Gal
76abd00d44 Reduce code cache size until we fix the page allocation code to not touch all the pages at startup (nanojit issues, assigned to gal). 2008-07-09 17:37:41 -07:00
Andreas Gal
4617cc628c Fixed name/setname code to just track the value move instead of touching memory since we have global variables in our native frame now. We have to fix the page cache issues before we can benchmark this. 2008-07-09 17:15:27 -07:00
Brendan Eich
8d88185086 Condition fp->arg*/*vars usage on fp->callee, not fp->down. 2008-07-09 17:10:42 -07:00
Andreas Gal
9a72a1d41d Add verbose native stack frame printing. 2008-07-09 17:09:22 -07:00
Brendan Eich
ab59004c84 Memoize implicit gvars in the interpreter, on assignment (JSOP_BINDNAME/JSOP_SETNAME); fix recoder l/r operand order bug. 2008-07-09 16:37:31 -07:00
Brendan Eich
20a5a9ef31 1. Fix inc to address the right result stack slot; 2. Require via assertions that the interpreter memoize implicit gvars (patch to do that next; bitwise-and will assert until that lands). 2008-07-09 15:15:32 -07:00
Blake Kaplan
bac9a8c577 Add missing #undef, clean up trailing whitespace. 2008-07-09 23:40:06 +02:00
Brendan Eich
2210ed4a21 Remove unnecessary JSOp cast. 2008-07-09 13:46:46 -07:00
Brendan Eich
d8cf234b33 Memoize global name gets and sets as if they refer to a declared gvar. 2008-07-09 11:42:31 -07:00
Andreas Gal
626026b70a Merge. 2008-07-09 10:06:24 -07:00
Andreas Gal
202ec610da Removed assert that compares nativeFrameSlots to nativeFrameOffset since nativeFrameOffset is undefined in case sp is at sp+depth, so the assert sometimes randomly bites. Also fixed typo in cmp(). trace-test.js compiles now. 2008-07-09 10:05:59 -07:00
Brendan Eich
cffa8d2279 Tweak a few interval tests, eliminate casts, space patrol. 2008-07-09 09:59:51 -07:00
shaver@mozilla.org
893dd15071 Update with some additional test coverage (crashes in setgvar test) 2008-07-09 08:11:03 -04:00
Andreas Gal
f4e8e89333 Sync with mozilla-central. 2008-07-09 01:18:56 -07:00
Andreas Gal
05554d05b3 Stricter typing of the tracker code path which now only accepts jsval as suggested by Brendan. 2008-07-09 00:29:23 -07:00
Andreas Gal
19a2dcb6f5 Fixed bug in nativeFrameSlots and use an assert to compare the result with nativeFrameOffset (which is slower, but more precise). 2008-07-09 00:26:01 -07:00
Andreas Gal
1c24e264ad Removed numMapEntries since typeMap is not really part of the SideExit struct yet anyway. 2008-07-09 00:13:35 -07:00
Andreas Gal
d6b834b98a Move builtin[] table in jsbuiltin.cpp 2008-07-08 23:48:06 -07:00
Doug Turner
f1be945414 modifying the usage comment to reflect that we are now a .js file, and
not a .jsm file.
2008-07-08 23:15:05 -07:00