Commit Graph

10223 Commits

Author SHA1 Message Date
Andreas Gal
56feb20e14 Merge for backout. 2010-07-12 23:18:54 -07:00
Andreas Gal
7e4c61ce49 Backed out changeset 864b37b4c91c. Missing bug# and review. 2010-07-12 23:18:18 -07:00
taustin@Thomas-Austins-Computer.local
1669cc32d4 merging changes 2010-07-12 22:44:32 -07:00
Robert Sayre
38029f43fa Merge mozilla-central to tracemonkey. 2010-07-12 20:42:21 -07:00
taustin@host-6-61.mv.mozilla.com
2f0222e5ec Remove Narcissus's dependencies on features available only in special builds 2010-07-12 16:58:38 -07:00
Chris Jones
7204a29e23 Compile with -D__STDC_LIMIT_MACROS to avoid having to fight with system headers over which includes stdint.h first. irc-r=jimb,Waldo 2010-07-12 18:06:23 -05:00
Blake Kaplan
585582ee3a Bug 576351 - Make this assertion not fire if the caller has UniversalXPConnect. r=jorendorff 2010-07-12 14:11:14 -07:00
Ben Turner
46309e70df Bug 575517 - 'Optional jsvals that are not specified should be JSVAL_VOID, not JSVAL_NULL'. r=jst 2010-07-12 10:04:59 -04:00
Nicholas Nethercote
e8ffc335c1 Bug 577764 - TM: avoid a dead guard at the end of loop fragments. r=dvander. 2010-07-12 11:01:58 +10:00
Robert Sayre
951426beed Merge mozilla-central to tracemonkey. 2010-07-11 16:23:48 -07:00
Chris Leary
94f23c0a06 Arena pool macros don't want to die. 2010-07-11 00:09:34 -07:00
Chris Leary
48398c7423 Bug 559408: Arena macros to methods. (r=galish) 2010-07-10 23:19:14 -07:00
Eli Friedman
13ea715e27 Bug 576359 - Remove unused function from jstracer.cpp (which breaks building with clang) r=brendan 2010-07-12 11:57:11 +02:00
Raul Porcel
be36109c38 Bug 577319 - Fixed OS_TEST case for ARM r=khuey 2010-07-12 11:56:09 +02:00
Igor Bukanov
fe84ed0d56 bug 572494 - removal of JSObjectOps::defaultValue, r=jorendorff 2010-07-07 09:53:47 +02:00
Robert Sayre
2a902f1084 Merge. 2010-07-08 18:18:36 -07:00
Robert Sayre
34b4182b78 Merge mozilla-central to tracemonkey. 2010-07-08 18:15:52 -07:00
Andreas Gal
9f011207b0 re-seed PRNG when clearing the scope (577512, r=bz). 2010-07-08 16:00:54 -07:00
Jeff Walden
1cb8edcb96 Bug 577375 - Make CPOWs handle all-properties enumeration correctly. r=gal 2010-07-07 15:11:17 -07:00
Andreas Gal
b890c190fb Make sure proxy objects always have a parent (576714, r=jorendorff). 2010-07-07 12:32:36 -07:00
Robert Sayre
1ae649adc3 Merge mozilla-central to tracemonkey. 2010-07-06 11:05:39 -07:00
Jason Orendorff
52ec4ddc8d Bug 576755 - JS_Assert on Windows produces a stack MSVS 2010 debugger can't decipher. r=dmandelin. 2010-07-06 04:29:45 -05:00
Saint Wesonga
e7a357dcaf Bug 562387 - Convert NS_NEWXPCOM/NS_DELETEXPCOM to new/delete. r=bsmedberg 2010-07-05 11:42:18 +02:00
Mark Banner
f83652490d Bustage fix follow up to changeset d92fd4a1ddf5 (part of bug 568691) - remove unnecessary semi-colons that are causing bustage on non-libxul Linux builds 2010-07-05 08:36:36 +01:00
Sean Stangl
2cab35aba7 [JAEGER] Implement double (inline) + int (ool) fast-paths for JSOP_NEG.
The results of this patch are currently dubious:
3d-morph gets significant improvement (1.22x), but most other tests
are slowed. In total, there is a 2ms improvement locally for SunSpider.

However, jsop_neg() is much simpler code than jsop_binary(),
so it is useful to exist during the FrameState tweaking.
Comments have been left to be helpful during this process.
2010-06-26 06:50:21 -07:00
Sean Stangl
be22cf687e [JAEGER] Fix build if debugging is disabled; apply clown shoes. 2010-06-26 04:06:56 -07:00
Sean Stangl
6d9e513d93 [JAEGER] Fix inconsequential off-by-one error in a debugging function. 2010-06-26 03:50:54 -07:00
Sean Stangl
b2fab58494 [JAEGER] Nit: fix previous patch to pretend that a macro is safe. 2010-06-26 03:45:20 -07:00
Sean Stangl
44713aea6d [JAEGER] Print JaegerSpew offsets as hex to match GDB; fix inconsistencies.
JaegerSpew is useful for determining the order in which instructions are generated.
GDB is useful for determining the order in which instructions are executed.
This brings JaegerSpew to have the same readable format as GDB's output.
2010-06-26 03:42:22 -07:00
Sean Stangl
3a756c8153 [JAEGER] Implement JaegerSpew for SSE2 instructions. 2010-06-26 03:10:02 -07:00
Sean Stangl
3eb7920074 [JAEGER] Implement int+double arithmetic fast-paths. 2010-06-25 18:23:35 -07:00
Sean Stangl
5c22a54a9e [JAEGER] Update StubCompiler, FrameState, and Compiler for double arithmetic paths. 2010-06-25 18:21:36 -07: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 Anderson
714f19d3e3 [JAEGER] Peephole optimize stores away for localinc. 2010-06-25 16:45:21 -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
David Anderson
fe3c83d266 [JAEGER] Kill redundant stores of type tags to synced memory on fast-paths. 2010-06-25 11:42:47 -07:00
Sean Stangl
3c47327224 [JAEGER] Hack: manually increase depth for JSOP_PROPINC,DEC; r=dvander. 2010-06-25 01:21:52 -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
David Anderson
d3b42d0841 [JAEGER] Fixed memory bug in call path. 2010-06-24 16:32:15 -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 Anderson
330812bfd3 [JAEGER] Removed debug profiling. 2010-06-24 16:21:45 -07:00
David Anderson
cc3ce07f82 [JAEGER] More fast-paths for NOT. 2010-06-24 15:28:30 -07:00
Jeff Walden
c626757f95 Bug 574474 - Eliminate a gratuitous property-name copy from the implementation of Object.keys. r=gal 2010-06-24 15:03:54 -07:00
Jeff Walden
b13001e602 Bug 509733 - ES5: arguments.toString() === "[object Arguments]". r=brendan 2010-07-13 16:39:03 -05:00
David Anderson
7628f2af0f [JAEGER] Merge. 2010-06-24 14:17:29 -07:00
David Anderson
0a0f76d454 [JAEGER] Update JM2 for fatval merge. 2010-06-24 14:17:08 -07:00
David Mandelin
c6783f6875 Removing failure note from test that passes 2010-06-24 14:04:26 -07:00
David Mandelin
aa5846ef98 MacOS build fix 2010-06-24 11:33:45 -07:00
Luke Wagner
558aa8414b Avoid unnnecessary extra LIR in unbox_value 2010-06-24 11:21:20 -07:00
David Anderson
a3709f170d [JAEGER] Merge from fatval branch. 2010-06-24 11:18:01 -07:00
David Mandelin
b3a7fc6846 Adding volatile qualifiers to try to fix Linux build 2010-06-24 11:08:23 -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
Andrew Drake
73b4caf315 [JAEGER] Facilitate iteration over all JSStackFrames in the current stack. r=dvander 2010-06-23 21:59:23 -07:00
David Anderson
ab63b0c9ce [JAEGER] Use PICs for PROPINC and friends. 2010-06-23 23:40:38 -07:00
David Anderson
038d8d654e [JAEGER] Merge. 2010-06-23 23:21:56 -07:00
David Anderson
76bce82fed Backed out changeset 283566427469 2010-06-23 23:21:46 -07:00
David Anderson
516af02b02 [JAEGER] Merge. 2010-06-23 23:19:21 -07:00
David Anderson
a7b1a1cae4 [JAEGER] Completely inline JSOP_INSTANCEOF. 2010-06-23 23:18:54 -07:00
Andrew Drake
8619e4fd69 [JAEGER] Facilitate iteration over all JSStackFrames in the current stack. r=luke 2010-06-23 21:59:23 -07:00
David Mandelin
0800a12fa5 Windows browser build fixes for js/src 2010-06-23 19:01:50 -07:00
David Mandelin
882030f513 Add extra stack space needed for callprop in methodjit 2010-06-23 18:58:17 -07:00
David Mandelin
33c408ba97 Fix PIC for MSVC. enums are apparently signed in MSVC, which caused 'overflow' in the 2-bit kind field 2010-06-23 18:06:51 -07: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
David Anderson
a17cb9cbbe [JAEGER] CALLPROP PIC for primitive string methods. 2010-06-23 17:10:58 -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 Anderson
82ba121204 [JAEGER] Ported Dave Mandelin's PIC for CALLPROP, objects only (bug 572310). 2010-06-23 16:18:48 -07:00
David Anderson
2669c5fe3a [JAEGER] Turned off accidental debug flag. 2010-06-23 13:51:20 -07:00
David Anderson
992d8e6cde [JAEGER] Fixed build. 2010-06-23 10:50:34 -07:00
David Anderson
ff64349d0b [JAEGER] Use PIC for callprop when compile-and-go and LHS is a primitive string. 2010-06-22 23:22:46 -07:00
David Anderson
b3c8e672cf [JAEGER] Merge. 2010-06-22 23:21:23 -07:00
David Anderson
481fa06044 Backed out changeset 99ce8bcb547c 2010-06-22 23:21:09 -07:00
David Anderson
264aaca0a9 [JAEGER] Infer that an addition with a string will result in a string. 2010-06-22 23:18:53 -07:00
David Anderson
b56e39093f imported patch callpropic_str 2010-06-22 22:55:31 -07:00
Chris Leary
0aca3bfb30 JSOP_ENDINIT fast path, obsoletes stub call. (r=dvander) 2010-06-22 22:40:55 -07:00
Andrew Drake
30a3cc58b6 [JAEGER] Fix build on pedantic compilers, fix win32 shell. r=dvander 2010-06-22 19:11:50 -07:00
David Anderson
79bd5716a1 [JAEGER] Use GETPROP PIC for calls when the LHS is known to be an object. 2010-06-22 17:54:05 -07:00
David Anderson
82f5e8e60e [JAEGER] Fix GETPROP bug with dense arrays. 2010-06-22 16:53:35 -07:00
David Anderson
4e21a7e40e [JAEGER] Use PIC for instanceof's obj.prototype fetch. 2010-06-22 16:21:21 -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
David Anderson
408c243f13 [JAEGER] Fixed nits from branding fix. 2010-06-22 15:09:07 -07:00
David Anderson
f4a612c01c [JAEGER] Cache atom in PIC directly, instead of index, for simplicity. 2010-06-22 15:07:10 -07:00
David Anderson
7965d753a3 [JAEGER] Tighten method barrier test in SETPROP pic. 2010-06-22 14:50:22 -07:00
David Anderson
d31caee286 [JAEGER] Fixed SETPROP PIC not maintaining branding invariants. 2010-06-22 14:45:16 -07:00
David Anderson
56bdd8b4f7 [JAEGER] Allow patching of the inline path after generating stubs. 2010-06-22 13:32:55 -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
Dão Gottwald
9b15b69a1b Backed out changeset 59ace8d80ce8 2010-07-04 22:01:13 +02:00
Saint Wesonga
8dd5da1024 Bug 562387 - Convert NS_NEWXPCOM/NS_DELETEXPCOM to new/delete. r=bsmedberg 2010-07-04 21:39:17 +02:00
Eli Friedman
a01afdd9d5 Bug 576355 - Make configure work with clang. r=ted 2010-07-04 20:27:33 +02:00
David Anderson
a6a668c9d3 [JAEGER] Enabled SETPROP PIC, slow path now takes property cache. 2010-06-21 19:41:29 -07:00
David Anderson
39aff71e4a [JAEGER] Precursor work for Dave Mandelin's SETPROP IC (bug 572310). 2010-06-21 19:34:20 -07:00
David Anderson
e7cd0a7538 [JAEGER] Precursor SETPROP IC work - shimmy top of stack down. 2010-06-21 19:34:18 -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
David Anderson
178ac0c976 [JAEGER] Fixed build. 2010-06-20 16:16:51 -07:00
David Anderson
68eadd08f9 [JAEGER] Re-added Dave Mandelin's GETPROP PIC stubs for string and array length (bug 572310, part 2). 2010-06-20 16:07:21 -07:00
David Anderson
a1983f037c [JAEGER] Use cheaper comparison for GETPROP type checks. 2010-06-20 13:17:45 -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
a879cc1e9e 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
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
d8f50a0f4e 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
David Anderson
884b494c29 [JAEGER] Re-added Dave Mandelin's polymorphic inline caches for GETPROP (bug 572310). 2010-06-19 21:58:55 -07:00
David Anderson
ff9eadf410 [JAEGER] Fast path for EQ,NE when one side is constant null or undefined. 2010-06-18 13:55:08 -07:00
David Anderson
4d054d48ba [JAEGER] Don't optimize escaping variables (bug 566022). 2010-06-18 11:07:15 -07:00
Sean Stangl
1c4a45fe74 [JAEGER] Change JSFrameReg to static const on advice from Luke. 2010-06-18 00:44:17 -07:00
David Anderson
cbe631e38a [JAEGER] Fixed regression in light frames. 2010-06-17 20:33:16 -07:00
David Anderson
d0cfbb0fad [JAEGER] Fixed bug in JSOP_UNBRANDTHIS. 2010-06-17 20:30:19 -07:00
David Anderson
8142533567 [JAEGER] Added JSOP_UNBRAND,UNBRANDTHIS. 2010-06-17 20:27:22 -07:00
David Anderson
fb49319458 [JAEGER] Lower var init and call obj creation into script prologue. 2010-06-17 18:36:30 -07:00
David Anderson
d5d0ad5d93 [JAEGER] Guard that calls have compiled code. 2010-06-17 18:36:28 -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
David Anderson
9c4e1303c3 [JAEGER] Merge from fatval branch. 2010-06-17 13:22:59 -07:00
David Anderson
993e3687a3 [JAEGER] Disabled accidental debug instrumentation. 2010-06-17 01:15:36 -07:00
David Anderson
c1bfa098ce [JAEGER] Added fast-paths for STRICTEQ.NE and boolean literals. 2010-06-17 01:05:50 -07:00
David Anderson
8aba3afc06 [JAEGER] Fast-paths for STRICTEQ,NE when undefined or null are used. 2010-06-17 00:29:28 -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 Anderson
335d797ee4 [JAEGER] Add fast-path for JSOP_THIS. 2010-06-16 18:15:23 -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
David Anderson
7ab3717436 [JAEGER] Added stub call profiling. 2010-06-16 17:53:35 -07:00
Sean Stangl
e38df23094 [JAEGER] Merge. 2010-06-16 15:33:21 -07:00
Sean Stangl
ce760eead5 [JAEGER] Define temporary FPRegisters.
Defines FPRegisters::First and FPRegisters::Second,
temporary FPRegisters that are always synced to memory.

This will hopefully eventually be obsoleted by having
a FPRegister allocator, once FrameState changes are done.
2010-06-16 15:32:30 -07:00
David Anderson
863fc7bfde [JAEGER] Split JSOP_CALL into more decisions, removed primitive-this check on returns. 2010-06-16 15:21:39 -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
Sean Stangl
aafbf3565f [JAEGER] Implement x86/x86_64 xorDouble(); (571743, r=dvander). 2010-06-16 10:47:42 -07:00
David Anderson
9e532246ad [JAEGER] Merge. 2010-06-16 01:16:17 -07:00
David Anderson
bc20a29586 [JAEGER] Inline scripted returns. 2010-06-16 01:16:07 -07:00
Sean Stangl
fb862c18e6 [JAEGER] Rename some functions to make namespace for FPRegisters; (572202, r=dvander). 2010-06-15 18:24:31 -07:00
David Anderson
5285f49ef5 [JAEGER] Fixed memory corruption bug found by Gary Kwong. 2010-06-15 18:23:16 -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
Sean Stangl
a6ef9f95cc [JAEGER] Implement integer fast path for multiplication; (572081, r=dvander).
ARM multiplication always uses the slow path for now.
2010-06-15 10:46:01 -07:00
David Anderson
a552b1c8e7 [JAEGER] Added fast-path for JSOP_GETELEM. 2010-06-15 03:46:44 -07:00
Sean Stangl
3ad293a3f4 [JAEGER] Fast paths for integer addition, subtraction; (572081, r=dvander). 2010-06-15 03:16:30 -07:00
Sean Stangl
9e77669f47 [JAEGER] testDouble() should emit an unsigned comparison. 2010-06-15 02:46:56 -07:00
Sean Stangl
00de27cae9 [JAEGER] Fix BITOR, BITXOR. 2010-06-15 02:42:08 -07:00
David Anderson
003df04dec [JAEGER] Rewrite state reification for side exits. 2010-06-15 01:40:39 -07:00
David Anderson
a0047931d5 [JAEGER] Added fast-path for JSOP_SETELEM. 2010-06-15 01:40:36 -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
Andrew Drake
e0cf7c0a56 Merge. 2010-06-14 14:03:53 -07:00
David Anderson
e260a83f6c [JAEGER] Fixed build. 2010-06-14 13:44:06 -07:00
David Anderson
750be487c8 [JAEGER] Merge. 2010-06-14 13:36:20 -07:00
David Anderson
bc2301898a [JAEGER] Merge. 2010-06-14 13:36:05 -07:00
David Anderson
6ce58480af [JAEGER] Added monomorphic inline caches for SETGNAME. 2010-06-14 13:35:47 -07:00
Andrew Drake
53ecdbb058 [JAEGER] Fix --disable-methodjit build, rs=dmandelin 2010-06-14 13:33:19 -07:00
David Mandelin
e645d90105 Build fixes for opt browser 2010-06-14 13:11:59 -07:00
Sean Stangl
22449ee4d8 [JAEGER] Fix backwards comparison on masm.testDouble(). 2010-06-14 12:56:19 -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
Andreas Gal
b74167790a Resort to default compartment when global object is set to NULL (r=crash on startup). 2010-06-24 20:13:22 -05:00
Andreas Gal
b35f3418d2 Implement new content wrappers (574502, r=mrbkap). 2010-06-24 19:09:46 -05:00
Jason Orendorff
5eed79e767 Bug 574320 - Tweaks to compartments API. r=gal. 2010-06-24 16:44:18 -05:00
Andreas Gal
1efe5e2ec6 Implement runtime-wide wrap hook (574299, r=mrbkap). 2010-06-24 16:45:32 -05:00
Robert Sayre
1d56325898 Merge mozilla-central to tracemonkey. 2010-06-24 13:47:08 -07:00
Saint Wesonga
15c5e882f9 Bug 512447 - JSON.stringify does not correct handle replacer functions. r=sayrer 2010-06-24 13:32:07 -07:00
Andreas Gal
47613b6fab Function.prototype.toString shouldn't crash on function proxies (574294, r=brendan). 2010-06-24 13:25:09 -05:00
Brendan Eich
fc2a83c5ee Assertion failure: scope->canProvideEmptyScope(&js_ObjectOps, clasp) (574280, r=gal). 2010-06-24 10:10:04 -07:00
Igor Bukanov
60e3fb5cff bug 572678 - valgrind integration with conservative GC. r=nnethercote 2010-06-21 14:22:32 +02:00
Igor Bukanov
3ca4aa4529 bug 572428 - followup to fix a bad typo. 2010-06-24 10:55:18 +02:00
Igor Bukanov
6f0b0ed4fa bug 573709 - do not use history for conservative GC. r=gal 2010-06-24 10:30:56 +02:00
Eric Hennigan
a8d4b520e3 Bug 573646: add memory limit for Unix test harness in order to handle OOM crashes more gracefully 2010-06-23 19:05:33 -07:00
Robert Sayre
0a9fd0ff39 Merge mozilla-central to tracemonkey. 2010-06-23 17:04:20 -07:00
Jeff Walden
a255bae3b1 Add cycle-detection assertions to prototype/parent-setting methods, tighten some nearby code stylistically. (let r () (r)) 2010-06-23 16:57:52 -07:00
Jason Orendorff
b891ed049a Fix really dumb C++ error in shell/js.cpp. no bug, r=red.
--HG--
extra : rebase_source : 0e22db3a690a24820c8d02087cb12fde16e6db76
2010-06-23 17:45:36 -05:00
Blake Kaplan
8ad3135e90 Fix bug 572130. r=jst 2010-06-23 17:09:00 -05:00
Blake Kaplan
78d9a8bac6 Bug 572233 - Don't accidentally wrap an object on the prototype chain. r=jst
--HG--
extra : rebase_source : ff4c32ed65dde104f2630d9d435888b12298a29f
2010-06-23 16:56:28 -05:00
Ben Turner
a283994c5f Bug 553413 - 'Implement Asynchronous parts of the Indexed Database API.' p=sdwilsh+bent, r=jst. 2010-06-23 12:46:08 -07:00
David Anderson
56a7c58d38 [JAEGER] Merge. 2010-06-12 19:16:33 -07:00
Sean Stangl
2f941c5f22 [JAEGER] Rename FpReg to JSFrameReg; r=dvander. 2010-06-12 19:11:00 -07:00
David Anderson
297eb1af31 [JAEGER] Added monomorphic inline cache for reads of unbound globals. 2010-06-12 19:00:30 -07:00
David Anderson
82d98ad449 [JAEGER] Predict unbound names as being on the global object (bug 564949). 2010-06-12 19:00:27 -07:00
Sean Stangl
b616a53aee [JAEGER] Define FPRegisters struct; r=dvander. 2010-06-12 18:37:34 -07:00
Sean Stangl
2a5a91c2c0 [JAEGER] Rename alloc() to allocReg(); r=dvander.
This patch is in preparation for making a distinction between
registers and floating-point registers for double fastpaths.
2010-06-12 18:26:36 -07:00
Sean Stangl
8ff57facfa [JAEGER] Use frame.testInt32() instead of masm.testInt32(); r=dvander. 2010-06-11 22:07:10 -07:00
Sean Stangl
1662a83587 [JAEGER] Implement testDouble(); r=dvander. 2010-06-11 21:27:56 -07:00
Sean Stangl
3751e1ceaf [JAEGER] Permit FrameState::copyData() with copied FrameEntries; r=dvander. 2010-06-11 21:27:52 -07:00
Luke Wagner
e01cff89da Change NPAPI not to cast to from NPIdentifier and jsval. Fix silly JSObject::resizeDenseArrayElements bug introduced by earlier commit 2010-06-11 18:09:58 -07:00
Luke Wagner
2a2b97cc3f Merge 2010-06-11 14:19:15 -07:00
Luke Wagner
db5e1acb26 Avoid unnecessary initialization of js::Vector 2010-06-11 14:18:45 -07:00
David Anderson
7b6d3db650 [JAEGER] Merge. 2010-06-11 14:11:04 -07:00
David Anderson
b79115e765 [JAEGER] Optimize how atoms are passed to NAME, CALLNAME, and SETNAME. 2010-06-11 14:10:43 -07:00
David Mandelin
eec97abca4 Make sure dense_grow gets inlined into the tracer functions that call it 2010-06-11 11:29:04 -07:00
Andrew Drake
a25e9507f4 [JAEGER] Fix Win32 build. r=dvander 2010-06-11 11:24:39 -07:00
mozilla@buildmonkey-right.mv.mozilla.com
1da69179fa Write simpler code in JSObject::resizeDenseArrayElements so GCC does not do really really bad register allocation 2010-06-11 10:34:47 -07:00
Chris Jones
d37c23f270 Bug 578262: Clean up style in and remove build warnings from new-ishly merged e10s code. r=bsmedberg
--HG--
rename : dom/ipc/ContentProcessChild.cpp => dom/ipc/ContentChild.cpp
rename : dom/ipc/ContentProcessChild.h => dom/ipc/ContentChild.h
rename : dom/ipc/ContentProcessParent.cpp => dom/ipc/ContentParent.cpp
rename : dom/ipc/ContentProcessParent.h => dom/ipc/ContentParent.h
rename : dom/ipc/ContentProcessProcess.cpp => dom/ipc/ContentProcess.cpp
rename : dom/ipc/ContentProcessProcess.h => dom/ipc/ContentProcess.h
rename : dom/ipc/PIFrameEmbedding.ipdl => dom/ipc/PBrowser.ipdl
rename : dom/ipc/PContentProcess.ipdl => dom/ipc/PContent.ipdl
2010-07-19 13:33:33 -05:00
wfernandom2004@gmail.com,
d36a8cb1ee Bug 577479 - Quickstub nsIWebSocket, r=smaug
--HG--
extra : rebase_source : 7b667e60a07c80ed1ff121a4777bbc274f297718
2010-07-19 15:45:18 +03:00
Olli Pettay
9f4bc1b358 Bug 577472 - Quickstub string handling shouldn't addref/release the string buffer, r=mrbkap
--HG--
extra : rebase_source : 5c343f210f3fb4a0aca5fc5f8b9b2d492248d3f3
2010-07-19 13:34:23 +03:00
Walter Meinl
4183c3cdef Bug 576606 - [OS/2] Fix registration follow-up to bug568691 r=dragtext
--HG--
extra : rebase_source : ff548f598f1e3e7c7b3b70e1f7d683011b238dd2
2010-07-18 11:22:01 +02:00
Eli Friedman
87a30182c7 Bug 579689 - Fix cases of return without expression in a function returning "int". r=khuey 2010-07-18 11:19:48 +02:00
Brad Lassey
9a6159a1f7 reverting change from 0f1fddce41e1 because buildbots have CC set in bash profile 2010-07-16 16:11:31 -04:00
Brad Lassey
e4414742e9 bug 579477 - get android platform's arch from target r=khuey 2010-07-16 16:11:31 -04:00
Brad Lassey
0591ba2021 bug 577635 - android_stub.h broken for android platform version 8 r=khuey 2010-07-16 12:11:09 -04:00
Brad Lassey
720e2a59f7 bug 577636 - add configure option to use ccache r=khuey 2010-07-16 11:50:13 -04:00
Vladimir Vukicevic
aa1924e856 b=576020; type check in typed array slice; r=jorendorff 2010-07-15 13:17:56 -07:00
timeless@mozdev.org
7380639751 Bug 577457 warning: comparison between signed and unsigned integer expressions in ObjectWrapperChild::AnswerNewEnumerateNext
r=cjones

--HG--
extra : rebase_source : ea67589475f27b04f3e038069e62a4581ef001b8
2010-07-08 13:34:40 +03:00
Benjamin Smedberg
1bd930635b Bug 577684 - Jetpack should push the JS context on to the XPConnect stack when running message receivers, r=mrbkap 2010-07-15 10:40:33 -04:00
Boris Zbarsky
f68fc1c61f Bug 577505. Quickstub nsIDOMCSSStyleDeclaration.*. r=peterv 2010-07-15 09:59:24 -04:00
Zack Weinberg
63f91528d4 Bug 558235 part 2: Kill CSS2PropertiesTearoff. r=dbaron 2010-07-14 13:58:56 -07:00
Benjamin Smedberg
813e927120 Bug 577638 - Outdated comments in XPCOMUtils.jsm after bug 568691 2010-07-14 13:09:42 -04:00
Robert Sayre
4ed4f1f76a merge tracemonkey to mozilla-central. 2010-07-14 06:00:32 -07:00
Ted Mielczarek
4d63535946 bug 577589 bustage fix - define DLL_PREFIX and DLL_SUFFIX as strings in the Makefile to handle empty values 2010-07-13 12:03:41 -04:00
Ted Mielczarek
c45d8e580b add a ctypes.libraryName utility function to get shared library names per-platform. r=dwitte
--HG--
extra : rebase_source : f0585aa0332c2146bee375584a69af4eaed7ed77
2010-07-13 08:53:16 -04:00
David Anderson
971e66892c [JAEGER] Statically bind some global functions (bug 562729, r=brendan). 2010-06-10 23:43:14 -07:00
David Anderson
22bcf9d6e7 [JAEGER] Reset JIT properly. 2010-06-10 23:42:44 -07:00
David Anderson
d6ac5397a1 [JAEGER] Don't call into JIT while recording. 2010-06-10 23:42:35 -07:00
David Anderson
3bbb12b82b [JAEGER] Added JSOP_ELEMINC,ELEMDEC,INCELEM,DECELEM. 2010-06-10 23:10:15 -07:00
David Anderson
659861b518 [JAEGER] Enable regex JIT with JSOPTION_METHODJIT. 2010-06-10 22:23:13 -07:00
David Anderson
f6b0dbf8c8 [JAEGER] Fix build. 2010-06-10 22:20:30 -07:00
David Anderson
a2bfe74bbb [JAEGER] Merge from fatval branch. 2010-06-10 21:58:13 -07:00
David Anderson
20b5f6469a [JAEGER] Added JSOP_LOCALINC,LOCALDEC,INCLOCAL,DECLOCAL. 2010-06-10 20:08:17 -07:00
David Anderson
df8cd25dd9 [JAEGER] Implemented re-loads of copies while syncing in slow paths. 2010-06-10 19:17:09 -07:00
David Anderson
ee80a9426c [JAEGER] Added JSOP_SETRVAL, JSOP_RETRVAL. 2010-06-10 17:30:00 -07:00
David Anderson
aa81593c46 [JAEGER] Try to find unsynced registers to perform copies in side exits. 2010-06-10 17:29:58 -07:00
David Anderson
91a1779e5c [JAEGER] Added JSOP_ARGINC,ARGDEC,INCARG,DECARG. 2010-06-10 17:29:57 -07:00
David Mandelin
f242431382 Bug 569766: Make tracing work with fat values 2010-06-10 17:20:26 -07:00
Sean Stangl
77d79f4a31 [JAEGER] Fix handling copied FrameEntries; r=dvander. 2010-06-10 16:56:58 -07:00
Blake Kaplan
68ab0034ba Bug 569022 - XPCNativeWrapper is a proper MakeSOW candidate. r=jst
--HG--
extra : rebase_source : a4de66029f47e1f400eed3822132fd45ff98558a
2010-06-10 15:49:22 -07:00
David Anderson
6889905a29 [JAEGER] Fixed build for realz. 2010-06-10 14:20:05 -07:00
David Anderson
f1bb4ba3cb [JAEGER] Fixed build. 2010-06-10 14:18:33 -07:00
Jason Orendorff
c1a1fb9be1 Bug 563099 - Compartments and wrappers API. r=gal.
--HG--
extra : rebase_source : cb34d0d0fc689fc6401d67e7f719344cd8e27655
2010-06-23 16:35:10 -05:00
Brendan Eich
e672f52623 Eliminate JSClass::reserveSlots and streamline new-object paths (535416, r=gal). 2010-06-18 17:43:02 -07:00
Jason Orendorff
c7000f4f86 Bug 574013 - Change JSObjectOps::call to compute this even later in certain cases. (This will also facilitate implementint ES5 primitive this.) r=gal.
--HG--
extra : rebase_source : 2f588a571cc7970ae2119338e4abfc34bdd6fdc8
2010-06-23 12:08:34 -05:00
Gregor Wagner
80ca0e83eb Bug 519949 - TM: remove LocalRootScopes r=igor 2010-06-23 11:37:35 -05:00
Nicholas Nethercote
1acb98c5ab Bug 551885 - TM: avoid stupid stack loads/stores at the end of fragments. r=dvander. 2010-06-22 20:09:11 -07:00
Brendan Eich
bacdc9d75e Assertion failure: slot < (uint32)dslots[-1] (571744, r=dvander). 2010-06-22 14:31:17 -07:00
Igor Bukanov
0b52b79b4d bug 572428 - fixing detection of live things in GC arena for conservative GC. r=wagnerg 2010-06-22 11:19:04 +02:00
Nicholas Nethercote
6f97ec3b23 Bug 572945 - TM: dense arrays specify the wrong number of reserved slots (2
vs 3).  r=gal.
2010-06-22 00:18:51 -07:00
Robert Sayre
690a859635 Merge mozilla-central to tracemonkey. 2010-06-21 18:01:14 -07:00
Blake Kaplan
c1498e0eab Add test. 2010-06-21 16:51:55 -07:00
David Anderson
858278d975 [JAEGER] Merge from fatval branch. 2010-06-10 14:01:11 -07:00
David Anderson
48bdd8875c [JAEGER] Added JSOP_TABLESWITCH. 2010-06-10 13:37:37 -07:00
David Anderson
f05461c221 [JAEGER] Added JSOP_LOOKUPSWITCH. 2010-06-10 13:24:19 -07:00
Luke Wagner
e6f9490099 Simplify code now that Value is copyable 2010-06-10 10:09:05 -07:00
Luke Wagner
e9442c8c26 Doubles are no longer gc-things, fix testGCChunkAlloc 2010-06-10 09:40:11 -07:00
Luke Wagner
a83311a7c5 Fix build bustage in FF 2010-06-10 00:05:41 -07:00
Luke Wagner
dde2523f3a Remove assumption that getter objects are functions (can be any callable), fix jsproxy aliasing bug 2010-06-09 23:20:37 -07:00
David Anderson
ba5aa9dd19 [JAEGER] Make syncFancy() resume properly. 2010-06-09 22:33:54 -07:00
David Anderson
be3dcd19fc [JAEGER] Improve register allocation when merge-syncing copies. 2010-06-09 22:28:12 -07:00
Luke Wagner
1bb5128ab0 Merge with TraceMonkey 2010-06-09 21:59:18 -07:00
David Anderson
517efa88c1 [JAEGER] Fixed bug in invoking JIT from interpreter. 2010-06-09 14:42:17 -07:00
David Anderson
4e28dc4af8 [JAEGER] Fixed bug in JSOP_BINDNAME. 2010-06-09 13:55:32 -07:00
David Anderson
b62bed481e [JAEGER] New JSOP_CALLPROP. 2010-06-09 12:55:41 -07:00
David Anderson
43b26ccbf8 [JAEGER] Tiny fix-ups. 2010-06-09 01:46:07 -07:00
David Anderson
dfa571f425 [JAEGER] Added JSOP_EXCEPTION, JSOP_SETLOCALPOP. 2010-06-09 01:32:40 -07:00
David Anderson
3080b62639 [JAEGER] Added JSOP_ENTERBLOCK, JSOP_LEAVEBLOCK, and support for |let|. 2010-06-09 01:03:58 -07:00
David Anderson
e1c7b826cf [JAEGER] Added JSOP_TYPEOFEXPR. 2010-06-08 22:58:10 -07:00