Commit Graph

9679 Commits

Author SHA1 Message Date
Nicholas Nethercote
dac3291064 Bug 513514 - nanojit: make hint() faster. r=edwsmith.
--HG--
extra : convert_revision : f95a1857f8fec03f4fa24c84cbb6222c4820c5a7
2010-06-30 18:32:06 -07:00
Luke Wagner
abc0ed6b6d Fix build bustage 2010-06-30 18:23:30 -07:00
Luke Wagner
d1c1fdd62b Fix build bustage on MSVC 2010-06-30 18:05:19 -07:00
Luke Wagner
8c46bea4d0 Forgot to add jsval.h and jsvalue.h 2010-06-30 17:52:02 -07:00
Luke Wagner
68403a872a Get narcissus compiling 2010-06-30 16:32:44 -07:00
Luke Wagner
71da5b9aa9 Split extract*Type functions and add comments explaining usage 2010-06-30 15:45:54 -07:00
Luke Wagner
c2f68a0182 Pull jsval impl details into jsvalimpl.h (included by jspubtd.h) and pull js::Value into jsvalue.h (engine-private) 2010-06-30 15:25:47 -07:00
Luke Wagner
f82e2f8002 Take the "Raw" out of MarkRaw and MarkGCThingRaw. It offends Andreas, and it might be a bad name 2010-06-29 23:02:23 -07:00
Luke Wagner
19f7cefc18 Drop the distinction in js::Value of funobj vs. nonfunobj. Instead, values can just have JSVAL_TYPE_OBJECT. The trace-jit still uses funobj/nonfunobj and translates as necessary. 2010-06-29 22:33:52 -07:00
Luke Wagner
6986d7f53e Change runtime size to 128MB from 64MB. It seems like we are running up to this limit with v8-splay and so we spend a lot more time GC'ing. Need to see if we should do this for the browser as well. 2010-06-29 02:35:39 -07:00
Luke Wagner
b8a731853a Put JSContext argument back at the end of SameValue (apparently that means something) 2010-06-29 02:08:07 -07:00
Luke Wagner
ae0f7e12b6 Change js::DumpX back to js_DumpX 2010-06-29 01:49:55 -07:00
Luke Wagner
86f4b4504b Use the same tag/payload trick in js_UnboxInt32 as js_UnboxDouble 2010-06-29 01:42:28 -07:00
Luke Wagner
313b355d22 Rearrange JSStackFrame... for 2% on both SS and V8 2010-06-29 01:07:12 -07:00
Luke Wagner
10745fb373 Merge 2010-06-28 18:10:50 -07:00
Luke Wagner
ab3a0d3ffa Add 64-bit tracing support 2010-06-28 18:08:28 -07:00
David Anderson
da423a57a7 Fixed Linux 64-bit opt build. 2010-06-28 15:51:50 -07:00
David Mandelin
452e333382 Bug 573578 followup: restore JS_IdToValue API to original functionality 2010-06-28 11:40:33 -07:00
Jacob Bramley
61d3b0e262 Add some soft-float lirasm tests and automate testing of alternate configurations for ARM. [Bug 573998] [r=stejohns]
--HG--
extra : convert_revision : 491cac5771d8051c50ed3a5b304500400d9d8f0b
2010-06-28 09:37:41 +01:00
David Mandelin
67eb767a51 Bug 574874: relax assertion as needed 2010-06-25 17:47:48 -07:00
David Mandelin
113fdd40ed Bug 574518: Better solution: recur until error so that test autotunes for memory usage 2010-06-25 16:47:30 -07:00
David Mandelin
ffa14c0ca4 Check for void jsid returned from JS_NextProperty in ctypes 2010-06-25 16:42:57 -07:00
David Mandelin
08b4c31ff3 Clean up unneeded initializers from previous patch 2010-06-25 14:58:34 -07:00
David Mandelin
53570dcb31 Bug 574745: fix com ptr usage causing leak on fatval buildbots 2010-06-25 14:22:02 -07:00
Luke Wagner
b6ba48936a Merge 2010-06-24 22:09:56 -07:00
Luke Wagner
e80b60a250 Fix bug where vp_ins was being passed uninitialized to SetPropertyByName 2010-06-24 22:09:03 -07:00
David Mandelin
fb83e7796d Fix jsreftest js1_5/Regress/regress-159334.js 2010-06-24 17:39:01 -07:00
David Mandelin
001939737c Bug 574518: adjust test case to account for greater stack memory usage in Interpret
--HG--
extra : rebase_source : d8cee395b898d809020b503b83a402de8cb88eee
2010-06-24 17:14:06 -07:00
Luke Wagner
2365632b1c Merge 2010-06-24 16:29:36 -07:00
Luke Wagner
d59fc36dbf Add back the js_UnboxDouble check in TraceRecorder::box_value, simplify code that skips the js_UnboxDouble 2010-06-24 16:28:08 -07:00
David Mandelin
c6783f6875 Removing failure note from test that passes 2010-06-24 14:04:26 -07:00
Luke Wagner
558aa8414b Avoid unnnecessary extra LIR in unbox_value 2010-06-24 11:21:20 -07:00
Jacob Bramley
3af66d7d8e Trivial tweak to the Vim modeline in LIRopcode.tbl. [No bug] [r=me]
--HG--
extra : convert_revision : 104c02bf846011a7e6e9792ecc5e5cb6e92f09fd
2010-06-24 13:18:04 +01:00
Luke Wagner
561b9386c9 Have box_value callers pass the AccSet to use 2010-06-23 17:50:53 -07:00
Luke Wagner
d474e4bd4a Tweak names/comments to account for JS_NEITHER change 2010-06-23 17:23:57 -07:00
Luke Wagner
42622db476 Merge 2010-06-23 17:13:46 -07:00
David Mandelin
bb7c22a9ba Bug 571623: restore support for traceable natives. With much help from peterv. 2010-06-23 17:11:06 -07:00
Luke Wagner
eba2e1f102 Merge and fix 2010-06-23 17:06:18 -07:00
Luke Wagner
ed28dae403 64-bit builds and passes trace tests on OS X with --disable-tracejit. reftests has failures, but these also show up on tm and should be fixed by a rebase 2010-06-23 16:58:32 -07:00
David Mandelin
5635d6ffb5 Adding a space to push to cedar 2010-06-22 15:46:26 -07:00
David Mandelin
a2628ff847 Windows C build fix 2010-06-22 15:26:36 -07:00
Luke Wagner
50d922350a Fix bustage compiling jsapi.h as Objective-C++ 2010-06-22 11:54:27 -07:00
Luke Wagner
bae4687e65 Reuse existing JS_ValueToId instead of introducing new JSVAL_TO_JSID 2010-06-22 11:51:46 -07:00
Luke Wagner
9cdf8a36e7 Fix bug in TraceRecorder::storeHole introduced earlier 2010-06-22 10:47:54 -07:00
Luke Wagner
c872ea6cb5 Fix bugs introduced by overzealous application of setNumber in cset 5c5bb620d2c8 2010-06-22 10:14:11 -07:00
Luke Wagner
f536e360bf Take advantage of value representation in the tracer when mapping values to and from trace types 2010-06-22 09:43:21 -07:00
Luke Wagner
7db2d34bde Merge 2010-06-21 16:30:17 -07:00
Luke Wagner
ebb2d4890b Be careful when using setDouble that we shouldn't use setNumber instead to fit in an int when possible. Was missing a lot in jsdate.cpp 2010-06-21 16:28:02 -07:00
David Mandelin
4ab1d47307 Bug 573578: intern string before converting to jsid in PropertyOpForwarder 2010-06-21 16:07:31 -07:00
Luke Wagner
6cc55bb8d5 Fix C-only compile errors 2010-06-21 12:49:23 -07:00
Luke Wagner
5ced30e1fc Change 32-bit jsval rep to use dense type index instead of bitmask 2010-06-21 12:28:56 -07:00
Jacob Bramley
05a5c664a9 Fix LIR_std2f implementation on ARM. [Bug 572679] [r=vlad]
--HG--
extra : convert_revision : 6998a52045d0d573bd78e2dd1bfd41c0a86309b0
2010-06-18 11:24:53 +01:00
Jacob Bramley
aad41df407 Add a test for LIR_std2f (and LIR_ldf2d). [Bug 572679] [r=nnethercote]
--HG--
extra : convert_revision : 6fbdd69eee0e6f5531fe46fa21770bc0b5e89226
2010-06-18 11:23:32 +01:00
Luke Wagner
dc916dafc5 Tweak trace-tests/tests/basic/delete-named-names.js checkStats 2010-06-18 01:06:48 -07:00
Luke Wagner
cc9eacee25 Merge 2010-06-18 01:02:26 -07:00
Luke Wagner
bf3afea5b8 Fix bugs; browser is up and running 2010-06-18 00:59:10 -07:00
Luke Wagner
b7955fe7b7 Browser builds 2010-06-17 23:51:54 -07:00
David Mandelin
1ec5c13d2a Remove MAP_32BIT which prevents us from building on many platforms and we aren't going to use any more anyway. 2010-06-17 18:23:47 -07:00
David Mandelin
c046cbd662 Bug 572842: restore deleted test in ~XPCTraceableVariant 2010-06-17 18:06:24 -07:00
Sean Stangl
bdffe4e8ba Redefine JSVAL type constants for one-comparison object, primitive check.
The following types are defined to have the upper mask bits set:
JSVAL_MASK16_NULL is 0x2000;
JSVAL_MASK16_NONFUNOBJ is 0x4000;
JSVAL_MASK16_FUNOBJ is 0x8000.

So each of IS_OBJECT(), IS_OBJECT_OR_NULL(), and IS_PRIMITIVE()
just requires one comparison, saving a bitwise AND.
2010-06-17 16:44:10 -07:00
Sean Stangl
9a415dd80c Redefine JSVAL_MASK16_INT32 to ((uint16)0x0001).
This permits isNumber() to just check <= JSVAL_MASK32_INT32,
since no number can have type JSVAL_MASK32_CLEAR (asserted).
2010-06-17 16:44:06 -07:00
Luke Wagner
40aca2d2fb Merge 2010-06-16 23:57:45 -07:00
Luke Wagner
11556d9a6f Fix bugs introduced by jsid change 2010-06-16 22:58:31 -07:00
Luke Wagner
ab09c2952d Switch jsids back to pointer-sized and fix a bunch of broken assumptions 2010-06-16 18:21:34 -07:00
Rick Reitmaier
4a6eddac30 Bug 571407 - Changes to enable JIT in Symbian build of Flash Player (r+rreitmai)
ICache flush support for symbian

--HG--
extra : convert_revision : d992fed9f916b09916e4fead7ae39022a53d2881
2010-06-16 18:16:08 -07:00
David Mandelin
cded156f8e Bug 569651: add test case that formerly asserted, but is now WFM 2010-06-16 18:14:37 -07:00
William Maddox
fc75018411 Bug 571430 - Allow for NumSavedRegs == 0 on SPARC (r=rreitmai+)
--HG--
extra : convert_revision : fb015a561f6b65104930a723e800c21a2d66e1bd
2010-06-16 14:29:43 -07:00
David Mandelin
cf66245838 Bug 572229: atomize strings passed to js_HasNamedProperty 2010-06-15 16:00:16 -07:00
David Mandelin
d352690926 Bug 572042: get tracing+fat values to build in the browser. As part of this I disabled the quickstub traceable natives. According to Andreas, we don't necessarily need them for good perf now that we can call the standard quickstub from trace. This build works on simple JS, but there are still bugs (e.g., Google Maps asserts). 2010-06-15 15:43:41 -07:00
David Mandelin
f2f3967750 Bug 572029: fully specialize for unboxing most numbers 2010-06-14 17:26:59 -07:00
Luke Wagner
e54fb2ea80 Make UnboxDoubleHelper extern to match friend declaration 2010-06-14 14:46:31 -07:00
David Mandelin
94e6c8a2cc Bug 571625: bring back box-after-unbox optimization for tracing with fatvals 2010-06-14 14:24:30 -07:00
David Mandelin
e645d90105 Build fixes for opt browser 2010-06-14 13:11:59 -07:00
Jacob Bramley
e8fc94e3eb Add LIR_(add|sub|mul)jovi support to the ARM back-end. [Bug 571202] [r=nnethercote]
--HG--
extra : convert_revision : b9c6f319cf9132680e27ffe7af1d783f6d8fa4c9
2010-06-14 15:42:46 +01:00
Jason Orendorff
285e13d2c5 Bug 568885 - Put Cu.Sandbox globals in a separate compartment from non-sandbox objects in the same domain. r=gal, sr=mrbkap. 2010-06-24 18:08:52 -05:00
Jason Orendorff
4119c39520 Bug 568886 - Instead of severing the stack in SJOW, function.caller should refuse to return an object from a different compartment. r=gal, r=mrbkap.
--HG--
extra : rebase_source : 83ee4482377769b8f59c72171acc62edc481fe7a
2010-06-30 18:09:38 -05:00
Robert Sayre
78608039a3 Fix bustage from jetpack including jstl on Windows. 2010-06-30 16:07:53 -07:00
Robert Sayre
b0ccdf3af2 Move includes in JetpackActorCommon.cpp only. 2010-06-30 14:28:08 -07:00
Robert Sayre
efd4bd36c6 Merge backout. 2010-06-30 13:50:52 -07:00
Robert Sayre
67c4011c63 Backed out changeset 562f69adb6b8 2010-06-30 13:50:26 -07:00
Robert Sayre
aed1689a0b Squash warning, rebuild with Windows clobbered. 2010-06-30 13:45:02 -07:00
Robert Sayre
77addc3777 try to fix moz_free macro substitution bustage on Windows by reordering includes 2010-06-30 13:26:15 -07:00
Robert Sayre
27b5a3b6fb Merge mozilla-central to tracemonkey.
--HG--
rename : dom/indexedDB/IDBCursorRequest.cpp => dom/indexedDB/IDBCursor.cpp
rename : dom/indexedDB/IDBCursorRequest.h => dom/indexedDB/IDBCursor.h
2010-06-30 11:54:20 -07:00
Chris Leary
0094115549 Update |dis| docs in the shell. (r=me) 2010-06-30 00:18:38 -07:00
Neil Rashbrook
84258324f3 Bug 572996 Compiler dependencies don't work for debug-only includes r=ted 2010-06-30 12:44:18 +01:00
Blake Kaplan
50cdb5d92b Bug 574990 - cx->globalObject needs to be innerized before it can be used. r=gal
--HG--
extra : rebase_source : 6e31e65d2e265da850b871b78ec9af984350b08c
2010-06-28 16:38:54 -07:00
Rico
b3c8c97bf8 Bug 575575 - Variable name typo in js1_5/Array/regress-465980-02.js. r=jwalden 2010-06-29 09:00:10 -07:00
Jeff Walden
0ee447d3dd Bug 574992 - Make Date.prototype.toGMTString a normal, non-enumerable, non-alias property; also fixes a failure (with Object.getOwnPropertyNames support) in the MS ES5 tests. r=brendan 2010-06-26 14:08:58 -07:00
Wes Garland
18d86f784e Bug 574398 - New macro for JS_EnterLocalRootScope is not C 2010-06-28 17:14:31 -04:00
David Anderson
b4060da2c5 Bug 567577 - new Math.sin is NaN, not an object, in interpreter only. r=Waldo. 2010-06-28 14:49:12 -05:00
Jeff Walden
ac3f40a0c9 Bug 574867 - Make message, fileName, lineNumber own properties of <NativeError>.prototype, rather making them properties only of Error.prototype. r=luke
--HG--
extra : rebase_source : b01196842d33b177061701ceda47ec2a9319601a
2010-06-26 14:08:58 -07:00
Chris Leary
908f8ec587 Back out f8c6a272f2dc. It was working on Try a few minutes ago, I swear! (r=red) 2010-06-26 18:09:07 -07:00
Chris Leary
52608d352b Bug 559408: Turn arena pool macros into methods. (r=gal) 2010-06-26 17:55:00 -07:00
Jason Orendorff
605e647be1 Weaken compartment assertions to be non-fatal. This will allow us to compartmentalize Gecko without keeping the assertions continually happy (which would be impractical). no bug#, r=gal. 2010-06-26 17:42:22 -05:00
Ginn Chen
04688ebf28 Bug 568788 Implement GetNativeStackBaseImpl() on Solaris r=igor 2010-06-27 01:25:00 +08:00
Andreas Gal
38fdbd4e85 Implement new chrome wrappers (574539, r=mrbkap). 2010-06-25 17:58:09 -05:00
Andreas Gal
7c91c2898c Fix warnings (no bug, r=mrbkap). 2010-06-25 17:57:53 -05:00
Jason Orendorff
9ee0592d4e Fix horrible bug in EvalInContext when the result is an object. rs=mrbkap. 2010-06-25 15:49:17 -05:00
Jason Orendorff
0f2e011c39 Fix significant difference between the new caching code in bug 570622 and CallThisObjectHook. r=orange. 2010-06-25 15:06:49 -05:00
Jason Orendorff
88abf40622 Bug 570622 - TM: eagerly call thisObject hook and cache result in global objects. r=mrbkap. 2010-06-25 13:48:35 -05:00