Commit Graph

14413 Commits

Author SHA1 Message Date
Brian Hackett
94473000bc [INFER] Fix x64 build, revert accidental manifest.py changes, bug 639099. 2011-03-26 19:56:49 -07:00
Brian Hackett
74bba0be53 [INFER] Inline scripted calls, bug 639099. 2011-03-26 19:07:13 -07:00
Steve Fink
f24c9d54bb Bug 639943 - Convert IDL formatting to JS engine house style (r=timeless) 2011-03-26 12:05:40 -07:00
Igor Bukanov
d56f220bed bug 643548 - followup to fix js shell builld brekage on Linux 2011-03-31 15:07:48 +02:00
Paul Biggar
43b850291d Bug 643548: Remove mozalloc_undef_macro_wrappers hack from JS engine. (r=luke,rs=brendan)
mozalloc_undef_macro_wrappers are brittle and have side-effects that are hard
to debug and fix. The alternative is the just stick an underscore on the end of
malloc, free, etc, which is a comparatively small burden.
2011-03-31 01:14:12 -07:00
Paul Biggar
72c7701093 Bug 634155: Account for NewCompartment's memory, and change allocation APIs (r=nnethercote)
This changes the allocation API, in the following way:

  js_malloc -> {cx->,rt->,OffTheBooks::}malloc
  js_calloc -> {cx->,rt->,OffTheBooks::}calloc
  js_realloc -> {cx->,rt->,OffTheBooks::}realloc
  js_free -> {cx->,rt->,Foreground::,UnwantedForeground::}free
  js_new -> {cx->,rt->,OffTheBooks::}new_
  js_new_array -> {cx->,rt->,OffTheBooks::}new_array
  js_delete -> {cx->,rt->,Foreground::,UnwantedForeground::}delete_

This is to move as many allocations as possible through a JSContext (so that they may be aken into account by gcMallocBytes) and to move as many deallocations to the background as possible (except on error paths).
2011-03-31 01:13:49 -07:00
Nicholas Nethercote
e2c62437e0 Disable warnings-as-errors, which was introduced by bug 609532. See the bug for justification and follow-up. r=pbiggar. 2011-03-30 17:54:31 -07:00
Gary Kwong
79f0ef8539 Bug 643217 - Replace "ASSERTION FAILED" message with "Assertion failure" in assembler. r=njn
--HG--
extra : rebase_source : b9bd22ee029ebeea7b19327d38305ad1f3aba341
2011-03-31 08:44:57 +08:00
Brian Hackett
8e50870411 Transform RegExp.exec to RegExp.test in native call IC, bug 645889. r=dmandelin 2011-03-30 17:43:36 -07:00
David Mandelin
125dbc8ece Bug 645184: normalize id in addprop IC handler, r=dvander 2011-03-30 16:57:44 -07:00
Gregor Wagner
ee36f9fb20 Fix atomsCompartment assertion. No Bug, r=billm 2011-03-30 14:02:21 -07:00
Jim Blandy
f1e6365c99 Bug 645826: Include standard output and standard error in exception text when testing manifest conditions. r=dmandelin 2011-03-30 12:49:47 -07:00
Jim Blandy
d7f8d15385 Bug 643222: Don't assert that we never cached adds to call objects. r=jorendorff
This assertion should not have been added. Although most adds to call
objects are done by DEFVAR operations, which don't create property cache
entries, the test case shows a situation in which a SETNAME, which is
cached, does the add. Since the object whose property should receive the
value of an assignment's RHS is chosen before the RHS is evaluated, it is
correct to put the value of the 'delete' expression on the call.

It would be nice to ensure that this call object, which we know we are
adding bindings to, had been recognized as extensible at compile time by
the analysis added in bug 554955. However, we only set "extensible parents"
flag on the bindings of calls whose *parents* are extensible, not the
extensible calls themselves. So there isn't anything convenient to check
here.
2011-03-30 12:48:24 -07:00
Jan de Mooij
72e18941b6 [INFER] Don't evict lhs register in jsop_relational_int and jsop_equality, bug 643829. r=bhackett 2011-03-25 13:40:20 -07:00
Jan de Mooij
302719e425 [INFER] Merge JSOP_RSH with jsop_bitop, bug 643109. r=bhackett 2011-03-24 12:37:57 -07:00
Brian Hackett
9849da7614 [INFER] Don't evict existing type register when allocating data register in storeTop, bug 643653. 2011-03-24 12:12:09 -07:00
Paul Biggar
a8948c1eb5 [INFER] Fix typos that were part of the build failure on ARM. (r=redness) 2011-03-23 17:55:51 -07:00
Jeff Walden
f7ed22a8e1 Bug 589664 - Rewrite the JSON parser. r=njn, anticipating more review but getting it in-tree now for simplicity, even if more changes need to be made later 2011-03-23 16:34:53 -07:00
Jeff Walden
54bbd588ec Backed out changeset d2f2cac2e980, some compilers are complainy here and I don't immediately immediately and definitely see the problem -- to debug after backout. r=yunocompile 2011-04-08 09:29:44 -07:00
Jeff Walden
002069bfc8 Bug 589664 - Rewrite the JSON parser. r=njn, anticipating more review but getting it in-tree now for simplicity, even if more changes need to be made later 2011-03-23 16:34:53 -07:00
Paul Biggar
2b96612a07 Fix build redness due to warnings-as-errors from parentheses. 2011-03-23 15:09:08 -07:00
Paul Biggar
9caae16818 Fix warnings-as-errors fallout from TM merge (r=redness) 2011-03-23 13:43:16 -07:00
Brian Hackett
d737bb3ddb Merge TM -> JM 2011-03-22 18:07:31 -07:00
Luke Wagner
6a818f48e3 Silence windows warning from 4290338c3956 (r=me) 2011-03-22 17:21:48 -07:00
Brian Hackett
732fe004fb [INFER] Don't immediately evict data register when storing top frame entry, bug 643653. 2011-03-22 16:54:15 -07:00
Brian Hackett
7933449143 [INFER] Don't store a integer result in a double slot in JSOP_NEG, bug 643913. 2011-03-22 16:06:09 -07:00
Brian Hackett
c834eae239 [INFER] Don't follow scripted caller across compartments, bug 643670. 2011-03-22 15:29:41 -07:00
Brian Hackett
989848101e [INFER] Rejoin during CALLPROP if either compilation did a GETPROP for string accesses, bug 643669. 2011-03-22 14:40:07 -07:00
Brian Hackett
bd9e58285b [INFER] Don't use pic->atom after possibly triggering recompilation in CallProp, bug 643552. 2011-03-22 14:21:56 -07:00
Brian Hackett
0c9d96a072 [INFER] Use type sets instead of known pushed types when looking for static overflows, bug 643376. 2011-03-22 13:41:56 -07:00
Brian Hackett
bad0d7d4a8 [INFER] Fix NULL deref in testSingletonPropertyTypes. 2011-03-22 12:37:01 -07:00
Jan de Mooij
49c9ac30f6 [INFER] Don't push a constant value in JSOP_TYPEOF, bug 643733. r=bhackett 2011-03-22 12:35:05 -07:00
Brian Hackett
bf929fa84d [INFER] Handle recompilations triggered in ICs by obj->lookupProperty, bug 643272. 2011-03-22 12:23:37 -07:00
Brian Hackett
356a520709 [INFER] Disable typed array ICs, bug 643266. 2011-03-22 11:57:15 -07:00
Brian Hackett
c4cfa981d7 [INFER] More robust handling of constant object frame entries. 2011-03-22 05:27:03 -07:00
Jan de Mooij
c633bccba3 [INFER] Inline some native functions, bug 621961. r=bhackett 2011-03-21 22:55:27 -07:00
Jeff Walden
d3676c4409 Bug 649819 - Remove JS_BeginJSONParse/JS_ConsumeJSONText/JS_EndJSONParse now that these APIs are no longer used and the cleaner API is available and works. r=brendan 2011-03-21 11:42:14 -07:00
Jeff Walden
d58565969f I have a feeling we're not landing JS branches in the CVS repository any more, Toto. r=sparky 2011-04-14 12:42:04 -07:00
Neil Rashbrook
e4bc481f39 Bug 626716 - Remove VC7.1 support code, SpiderMonkey version. r=njn
--HG--
extra : rebase_source : f94626be1e932bf12093412903df4a9e4c7334c9
2011-04-13 17:01:39 -07:00
Luke Wagner
01d2bb36b4 Bug 649491 - rm JSFRAME_ASSIGNING (r=dvander) 2011-04-08 15:45:18 -07:00
Phil Ringnalda
ae07f5cdce Bug 647388 - Remove Makefile.ref and the rest of its supporting alternate SpiderMonkey build system, r=jimb 2011-04-13 18:08:53 -07:00
Gregor Wagner
99a0150f57 Bug 627200 - Background Finalization for Strings and Objects r=gal 2011-04-13 13:43:33 -07:00
Igor Bukanov
55e510df64 bug 646044 - ContextAllocPolicy should not account for GC memory pressure. r=luke 2011-03-30 12:10:12 +02:00
Luke Wagner
64207228c7 Bug 602994 - Clean up eval, remove unneeded security checks, assert equivalence of principal lookup (r=waldo,mrbkap) 2011-04-08 10:52:51 -07:00
Luke Wagner
774c050740 Bug 602994 - Preparatory syntactic cleanup (r=waldo) 2011-04-08 10:52:48 -07:00
Chris Leary
2ef1aa6439 Bug 642274: Add loose equality to JSAPI. (r=Waldo)
--HG--
extra : rebase_source : 3001604e6e6bfc9c8e73aafc1498a71ae7ade9cd
2011-03-21 10:04:43 -07:00
Andreas Gal
707f928b25 Expose public APIs for converting doubles to signed/unsigned int per ECMA spec (bug 631132, r=bzbarsky). 2011-03-29 19:19:15 -07:00
Chris Leary
733f538571 Merge mozilla-central and tracemonkey. 2011-03-29 14:52:44 -07:00
Chris Leary
ea513eacf6 Nop to force rebuild. 2011-03-29 10:47:59 -07:00
Chris Leary
d5de78ea4b Merge new tracemonkey head. 2011-03-29 09:06:19 -07:00
Chris Leary
78ceed9ab7 Merge mozilla-central to tracemonkey. 2011-03-29 09:05:25 -07:00
Brian Hackett
191b32603c Check for functions in instanceof fast path, bug 642174. 2011-03-28 20:05:23 -07:00
L. David Baron
f30ccb969b Remove the datastruct_ and member_ fields of the CSS_PROP macro. (Bug 645620, patch 5) r=bzbarsky 2011-03-28 16:07:27 -07:00
Luke Wagner
2fa7292b06 Bug 641436 - Don't call Script{Prologue,Epilogue} when resuming/yielding a generator (r=dvander)
--HG--
extra : rebase_source : 6ae3a6645425ee63162e19388143487df5435a65
2011-03-28 11:57:43 -07:00
Gregor Wagner
f18b7462d5 Bug 644871 - Combine MarkAndSweep/MarkAndSweepCompartment (r=billm) 2011-03-28 13:17:46 -07:00
Andrew McCreight
ff37de748d Bug 641910. Don't add non-grey nodes to the cycle collector model graph. r=gal@uci.edu 2011-03-28 13:05:48 -07:00
Joel Maher
f86f549a50 Bug 644697 - jsreftests shell test runner throws "Failed to test XUL condition 'Android'". r=dmandelin, a=test-only 2011-03-28 14:37:07 -04:00
Luke Wagner
f37c253b7f Bug 636224 - rm cx->interpLevel and TSF_ERROR (r=brendan)
--HG--
extra : rebase_source : 682e496d3fad9454b0279aff9bfd4c1bcf50055c
2011-03-23 14:33:02 -07:00
Nicholas Nethercote
a3cfafaa02 Bug 643700 - Fix an ARM warning on compilation since warnings are now regarded as errors. r=gal 2011-03-28 16:24:20 +08:00
Jeff Walden
9b3c17b455 Fix a compiler warning that occurs when jsgcinlines.h is included before jsobjinlines.h. r=warning-patrol 2011-03-25 17:23:05 -07:00
Jeff Walden
b77f3b09f3 Bug 645121 - Implement js::StringBuffer::finishAtom. r=igor 2011-03-25 12:04:05 -07:00
Brian Hackett
d6a84ff015 [INFER] Ensure that TypeObject->unknownProperties implies hasSpecialEquality, bug 619433. 2011-03-20 11:54:33 -07:00
Brian Hackett
79574bddbd [INFER] Always store script->fun, bug 643299. 2011-03-20 11:22:33 -07:00
Brian Hackett
d136cbd77a [INFER] Mark generic scripted functions as having unknown properties / return type, bug 643285. 2011-03-20 11:01:33 -07:00
Brian Hackett
140d584eed [INFER] Avoid constructing unnecessary FreezeObjectKind constraints, bug 643249. 2011-03-20 10:47:47 -07:00
Brian Hackett
b6044f527e [INFER] Fix type handler for Object.valueOf, add testcase, bug 643244. 2011-03-20 10:43:38 -07:00
Brian Hackett
48a71727f1 [INFER] Don't manage hasSpecialEquality if inference is disabled, bug 643241. 2011-03-20 10:35:58 -07:00
Brian Hackett
e5ca2b828f [INFER] Rejoin after recompiling from a cached GETPROP, bug 643182. 2011-03-20 10:27:02 -07:00
Brian Hackett
de3580deca [INFER] Don't try to fully update the pushed types on uncacheable NAME ops, bug 643113. 2011-03-20 09:48:13 -07:00
Brian Hackett
603efe2fef [INFER] Sweep type objects in the TypeResults attached to JSScripts, bug 643284. 2011-03-20 08:44:31 -07:00
Brian Hackett
c738c5d025 [INFER] Fold FrameState closed vars/args analysis into analyze::Script, bug 642569. 2011-03-20 08:23:27 -07:00
Brian Hackett
99c7da4cca [INFER] Add monitoring for premature returns in JSOP_NAME, bug 642412. 2011-03-19 17:03:18 -07:00
Brian Hackett
f9a4f63af8 [INFER] Fast path for object equality, track equality hooks in type objects, bug 619592. 2011-03-19 16:53:07 -07:00
Brian Hackett
55652ce0ff [INFER] Avoid (unreachable) integer overflow when setting holes in dense arrays, bug 642592. 2011-03-19 10:31:36 -07:00
Brian Hackett
545818365f [INFER] Don't check types with an uninitialized frame on the stack, bug 642985. 2011-03-19 10:07:21 -07:00
Brian Hackett
2f766cc940 [INFER] Avoid INT_TO_JSID overflow when deleting element in array_shift, bug 642979. 2011-03-19 09:45:05 -07:00
Brian Hackett
48bf0fa617 [INFER] Remove bogus assert, bug 642758. 2011-03-19 09:25:15 -07:00
Brian Hackett
70b6822b2f [INFER] Only patch ints->doubles in existing frames for slots the recompiler thinks are doubles, bug 642412. 2011-03-19 09:11:56 -07:00
Brian Hackett
260957aae4 [INFER] Monitor the possible values pushed by each JSOP_NAME/CALLNAME, bug 642412. 2011-03-19 08:20:46 -07:00
Jeff Walden
a0446bf092 Bug 512266 - JSON.stringify for various special characters should produce the corresponding one-character escapes. r=pbiggar
--HG--
extra : rebase_source : a76fb038143bd053ee9e30ae29e99d3c2e91c528
2011-03-18 17:57:18 -07:00
Jeff Walden
faf5216de3 Bug 635389 - Check for overrecursion in functions that might need it. r=jorendorff
--HG--
extra : rebase_source : 72d6f2c915a4aa19e9820ea4f66039f75421c32d
2011-04-18 16:50:46 -04:00
Jeff Walden
573931e488 Bug 650574 - No recursion checks converting a cyclic object to source, if the object's toSource hooks are built-in functions. r=luke
--HG--
extra : rebase_source : 1d94c30c3a7335b1124e19020b8244a1de32aab3
2011-04-26 16:05:58 -04:00
Luke Wagner
8492c1e5ed Fix linker error. I fixed this in the patch I pushed to try but seem to have lost it in the meantime (r=burning-windows) 2011-04-26 14:34:09 -07:00
Luke Wagner
4fec8aa043 Fix --disable-methodjit bustage (r=red) 2011-04-26 13:39:59 -07:00
Luke Wagner
05d2002b66 Bug 644074 - Simplify and consolidate VM stack code into js/src/vm/Stack* 2011-04-13 09:27:37 -07:00
Chris Leary
71c7cfdc1f Merge mozilla-central and tracemonkey. 2011-04-26 10:42:36 -07:00
Tom Schuster
7d405787a7 Fix style nit request in Bug 651973 r=jorendorff via irc 2011-04-26 16:23:01 +02:00
Olli Pettay
46d7b33a70 Bug 648573 - Implement touch event interfaces, r=jst, pref'ed off by default 2011-04-26 15:30:17 +03:00
Jan de Mooij
e7219c101f Bug 646938 - Fix NaN-check in jsop_stricteq. r=dvander 2011-04-26 10:29:00 +02:00
Ryan VanderMuelen
40d8f2f5d2 Bug 646312: Enable methodjit by default for chrome JavaScript, r=dmandelin 2011-04-25 18:17:32 -07:00
Tom Schuster
de983504ce Bug 202019 - Objects with [[Call]] arent automatically constructbale r=jorendorff 2011-04-26 00:28:30 +02:00
Ehsan Akhgari
d2a61eb331 Backout changeset 13f6847dd840 (bug 616684) because it changes code semantics in a bad way, which results in problems like the crash in bug 652580, possibly among others 2011-04-25 17:05:17 -04:00
Michael Wu
b81c4d653e Bug 651973 - Release RegExp on error, r=cdleary 2011-04-25 13:20:14 -07:00
Michael Wu
8fb6fc73ed Bug 605707 - r=igor 2011-04-25 13:20:14 -07:00
Ed Morley
b17a6e7f83 Bug 648865 - Remove WINCE code from js/src/assembler/* ; r=dmandelin 2011-04-25 15:06:47 -04:00
Luke Wagner
c7e18b4a7b Bug 652438 - Add back OOM checks in JSString::getChars (r=waldo) 2011-04-25 11:53:50 -07:00
Paul Biggar
f52bbc7614 Disable jstests on all platforms again (r=orange) 2011-04-23 12:47:23 -07:00
Igor Bukanov
c8e26ae567 bug 652185 - r=luke 2011-04-23 00:12:05 +02:00
Jan de Mooij
035e5c1537 Bug 652060 - Fix double check in JSVAL_SAME_TYPE_IMPL on 64-bit. r=luke 2011-04-23 09:49:59 +02:00
Tom Schuster
13b9f917f0 Bug 649575 - Date.prototype.toISOString must throw a RangeError for non-finite dates. r=jwalden 2011-04-22 22:46:59 -04:00
Jeff Walden
a8a0234d77 Bug 641655 - Add a js::GlobalObject subtype of JSObject. r=njn 2011-04-18 16:50:47 -04:00
Paul Biggar
da590e6e27 Turn off jstests during |make check| on configs which turned tinderbox orange (no bug, r=jimb,orange) CLOSED TREE
The bad configs are:
   - windows with either --disable-tracejit or --disable-methodjit
   - mac with --enable-dtrace
2011-04-22 12:00:35 -07:00
David Anderson
cfba96780a merge backout CLOSED TREE CLOSED TREE CLOSED TREE CLOSED TREE CLOSED TREE 2011-04-22 11:48:57 -07:00
David Anderson
cfa95c8cf3 Backed out changeset d851d44ad77a 2011-04-22 11:40:55 -07:00
Paul Biggar
d4ed94cf34 Minor usage-string typo fix. No bug, no review. 2011-04-22 07:29:59 -07:00
Paul Biggar
6a750a4341 Bug 647482 (followup): Re-enable jstests in |make check| (r=dmandelin) 2011-04-22 07:29:22 -07:00
Rafael Ávila de Espíndola
8f5366a4c0 Bug 631928 - Check for libffi_cv_as_x86_pcrel should not look for just "warning". r=ted 2011-04-22 01:23:35 +02:00
Gregor Wagner
45c6d1befe Bug 651915 - Fix MarkStack size. r=billm 2011-04-21 13:44:29 -07:00
Jeff Walden
77e6fd7646 Backed out changeset c8ba5bd72b0c, we have too many test harnesses and I forgot to run one. r=tree-decorator 2011-04-21 16:29:54 -04:00
David Anderson
43e7e71dd5 Refactor Call ICs (bug 638680, r=luke). 2011-04-21 11:14:49 -07:00
Luke Wagner
5b206e05b6 Loosen test from 905a35f3a76b to account for conservative GC rooting fuzziness (r=orange) 2011-04-20 21:06:01 -07:00
Luke Wagner
b02663aef4 Fix typo in --enable-threadsafe builds (r=burning) 2011-04-20 19:29:11 -07:00
Luke Wagner
6e9ef90124 Bug 651041 - add API to store private data to an external string (r=njn) 2011-04-20 18:34:49 -07:00
Chris Jones
ea1f5e599c Bug 647011: Sprinkle some DebugOnly in js/src. r=luke 2011-04-20 18:27:30 -05:00
Jason Orendorff
b72daf3760 Merge backout. 2011-04-20 16:11:48 -05:00
Jason Orendorff
7c1bcbce33 Backed out changeset e02df4a05968 due to orange. 2011-04-20 16:10:38 -05:00
Tom Schuster
479dc912bc Bug 202019 - Built-in functions should not be constructors. r=jorendorff.
--HG--
extra : rebase_source : 2f845218384004c09a60c59ae03704729f1d91dc
2011-04-20 13:22:57 -05:00
Jeff Walden
f7e9104cd4 Bug 641655 - Add a js::GlobalObject subtype of JSObject. r=njn 2011-04-18 16:50:47 -04:00
Josh Matthews
5bac8b067d Bug 600677 - Add fix hook to proxies. r=gal 2011-04-16 17:14:10 -04:00
Gregor Wagner
6c6726d922 Bug 651546 - Remove stackLimit from GCMarker. r=billm 2011-04-20 12:22:04 -07:00
Ms2ger
295bf7256b Bug 616684 - Remove support for DOM Views; r=sicking 2011-04-24 08:54:25 +02:00
Mike Hommey
2076517e87 Backout changeset d29e1e37e7c2 from bug 640494 because of jsreftest orange on Win opt builds 2011-04-23 13:06:48 +02:00
Jason Orendorff
c0c1b22466 Bug 640494 part 2 - Use bit masking instead of signbit() to avoid problems when including some STL headers. r=luke 2011-04-23 08:48:50 +02:00
Jason Orendorff
cef5bccdba Bug 640494 part 1 - Get rid of STL algorithm use in jsworker.cpp. r=jimb 2011-04-23 08:48:50 +02:00
Brian Hackett
6e99d2c8df Fix bug 643839. r=brendan, a=clegnitto 2011-04-22 12:32:44 -07:00
Mike Hommey
e4a0852976 Bug 638056 - Avoid "The cacheFlush support is missing on this platform" error on exotic platforms. r=cdleary 2011-04-22 10:33:08 +02:00
Bill McCloskey
4a9bde3182 Bug 648647 - Eliminate JSObjectMap (r=jorendorff) 2011-04-08 14:21:08 -07:00
Jeff Walden
a0e982d7d2 Bug 639343 - Slight adjustment to how typed-array properties are handled in the tracer. r=dvander 2011-03-18 17:57:17 -07:00
Luke Wagner
be794a0b5b Bug 633690 - add HashMap::lookupWithDefault and putNew helper functions (r=billm)
--HG--
extra : rebase_source : 109b7974dac40749562c3b3ad4615029f1699b97
2011-03-23 17:40:11 -07:00
Jeff Walden
c9809f07b4 class RegExp, not struct RegExp. r=windows-bustage
--HG--
extra : rebase_source : 5c31a9b6a5309548db45d2756f03abeec23ed2f9
2011-03-24 15:04:54 -07:00
Nicholas Nethercote
89190c0bb0 Bug 626398 - A decision to abort in the tracer gets lost. r=dmandelin. 2011-03-25 09:02:01 +11:00
Michael Wu
acf7779c21 Another followup to bug 643927 - use the guard-object macro magic to ensure an Auto* class is never temporarily created. r=jwalden 2011-03-24 14:42:23 -07:00
Brian Hackett
3ac25e55a7 [INFER] OOL path for truncating doubles slightly outside the int32 range, bug 643037. 2011-03-18 16:42:00 -07:00
Brian Hackett
d88b1fda69 [INFER] Speculate that all ELEM accesses are on integers, use monitoring for strings, bug 642412. 2011-03-18 10:30:21 -07:00
Brian Hackett
707a3eae96 [INFER] Improve type handler precision for Array.{slic,pop,shift}, bug 642412. 2011-03-18 08:17:22 -07:00
Brian Hackett
537b627fc2 [INFER] Use the 'this' array type as the result in Array.concat, bug 642412. 2011-03-18 07:56:50 -07:00
Brian Hackett
7241be7304 [INFER] Monitor calls to non-functions dynamically, bug 642412. 2011-03-17 23:52:10 -07:00
Jan de Mooij
b9ae9ee15b [INFER] Optimize JSOP_NEG on known integers, bug 640293. r=bhackett 2011-03-17 21:40:40 -07:00
Brian Hackett
f5cc631abf [INFER] Infer arithmetic on objects as producing ints, bug 642412. 2011-03-17 21:34:36 -07:00
Brian Hackett
97e8452de3 [INFER] Fix corruption-inducing typo, bug 642159. 2011-03-17 18:43:09 -07:00
Brian Hackett
02c52e04ab [INFER] Don't set script->isCachedEval until it is on the compartment's scriptsToGC, bug 642422. 2011-03-17 12:22:57 -07:00
Brian Hackett
665681fe59 [INFER] Add recompilation rejoin points for GETELEM/CALLELEM, bug 642405. 2011-03-17 12:07:48 -07:00
Brian Hackett
a8df70f4be [INFER] Avoid unnecessary cast, bug 642319. 2011-03-17 11:57:32 -07:00
Brian Hackett
e28643fdf7 [INFER] Fix bogus assert when restoring analysis types, bug 642254. 2011-03-17 11:54:06 -07:00
Brian Hackett
be6137ab0f [INFER] Don't infer array-ness of types from prototype JSObject, bug 642248. 2011-03-17 11:43:46 -07:00
Brian Hackett
40f76095d8 [INFER] Don't bootstrap the __proto__ of the global or Function.prototype if their __proto__ has mutated, bug 642206. 2011-03-17 10:48:02 -07:00
Brian Hackett
bbc5f75d52 [INFER] Use different shapes for functions with different scripts/types, share types better for cloned functions, bug 641525. 2011-03-17 09:42:56 -07:00
Brian Hackett
ffb4c8d567 [INFER] Remove cruft for handling overflowing INCNAME/etc. ops, bug 642164. 2011-03-16 22:25:32 -07:00
Brian Hackett
6d84d0e761 [INFER] Add recompilation rejoin points for SETELEM, bug 641535. 2011-03-16 22:08:14 -07:00
Brian Hackett
32ed3e9e97 [INFER] Mark unexpected undefined result for JSON.stringify, bug 642161. 2011-03-16 19:26:49 -07:00
Brian Hackett
0fe6bffa50 [INFER] Always ensure obj->numSlots() >= obj->slotSpan() after its scope has been initialized, bug 642326. 2011-03-16 18:59:20 -07:00
Brian Hackett
b124474b65 [INFER] Use unique shapes when cloning objects, bug 619433. 2011-03-16 18:33:46 -07:00
Brian Hackett
6e8d1fb68d [INFER] Spot fix for shapes not being marked when a child is held by AutoShapeRooter, bug 642209. 2011-03-16 18:24:20 -07:00
Brian Hackett
d3770c1fb6 [INFER] Sweep cloned type sets in call ICs before destroying the objects they reference, bug 641491. 2011-03-16 16:17:29 -07:00
Jan de Mooij
2fa09b6cfe [INFER] Fix type handler for timeout function, bug 642247. r=bhackett 2011-03-16 15:57:41 -07:00
Brian Hackett
08bb521026 [INFER] Compute PC for interpreted frames which failed to compile, bug 641225. 2011-03-16 15:56:43 -07:00
Jan de Mooij
7402e9d136 [INFER] Don't call syncData for known doubles, bug 642198. r=bhackett 2011-03-16 15:29:04 -07:00
Brian Hackett
5db6d556af [INFER] Clear native return address for interpreter frames, bug 641225. 2011-03-16 15:22:51 -07:00
Jan de Mooij
14e4e340a9 [INFER] Add overflow check for Math.pow(1, x), bug 642154. r=bhackett 2011-03-16 12:17:06 -07:00
Brian Hackett
16c589a815 Merge. 2011-03-16 12:09:30 -07:00
Brian Hackett
d321e040a2 [INFER] Fix broken jstests, bug 620599. 2011-03-16 12:03:47 -07:00
Brian Hackett
ba45077705 [INFER] Fix jsop_instanceof on known object, bug 642174. 2011-03-16 10:41:44 -07:00
Paul Biggar
3e3068a96b [INFER] Bug 642059 - Add -n flag to JITFLAGS, turning on type inference during jit-tests (r=bhackett) 2011-03-16 10:03:02 -07:00
Paul Biggar
4378de9fe1 [INFER] Bug 642062 - Add type annotations for jitstats object (r=bhackett) 2011-03-16 10:03:00 -07:00
Brian Hackett
7469fa7a3a [INFER] Don't share shapes between objects with different types, bug 620599. 2011-03-16 10:02:19 -07:00
Brian Hackett
dde269529f [INFER] Handle undefined values added by String.split, bug 620599. 2011-03-16 07:40:58 -07:00
Brian Hackett
d10d0da404 [INFER] Track multiple types when monitoring SETPROP/SETNAME and calls, bug 641714. 2011-03-15 23:50:44 -07:00
Brian Hackett
57802e99bd [INFER] Add MIC for type checking this/arguments at JITScript invokeEntry, bug 641714. 2011-03-15 18:22:23 -07:00
Brian Hackett
8e6af618c3 [INFER] Factor TypeSet* out of FrameEntry, bug 641714. 2011-03-15 15:35:01 -07:00
Brian Hackett
f1d2dcfc3d [INFER] Make inference spew digestible by scripts, bug 641943. 2011-03-15 13:42:24 -07:00
Brian Hackett
0f8152b6ef [INFER] Use new type objects when the result of 'new' is assigned to a .prototype, bug 641714. 2011-03-15 00:17:07 -07:00
Brian Hackett
9d86c615fc Merge TM -> JM 2011-03-14 22:41:04 -07:00
Brian Hackett
7bc4de5d27 [INFER] Mark values pushed by overflowing object inc opcodes as doubles, bug 641741. 2011-03-14 22:26:25 -07:00
Jason Orendorff
ec6e3d3332 Backed out changeset 39de74c74b20, which is causing the browser to leak windows. 2011-03-14 17:37:04 -05:00
Luke Wagner
7c96945e3c Bug 613457 - clean up string interfaces (r=njn)
--HG--
extra : rebase_source : 3e77b67fa9fe2cc31312ad99951cf92258a98e64
2011-03-14 13:59:53 -07:00
Luke Wagner
7b695c0de6 Bug 613457 - slightly simplify string-equality ic (r=dvander)
--HG--
extra : rebase_source : f79bb59589c4d1a39db846f42da82809a73097a2
2011-03-14 13:55:51 -07:00
Luke Wagner
fee4a41733 Bug 616562 - speed up JSString::isStatic (r=njn)
--HG--
extra : rebase_source : 9f0b553b8ab54bfbbd5290ba936581bda8bb40ec
2011-03-14 13:55:55 -07:00
Andreas Gal
11a52c11b6 Bug 637010. Add some null checks to js_IteratorNext and js_IteratorMore. r=dvander 2011-03-22 17:19:10 -04:00
Landry Breuil
e531be2d49 Bug 634609. Fix GetNativeStackBaseImpl() on OpenBSD. r=gal 2011-03-22 17:19:10 -04:00
Andew Paprocki
9937121645 Bug 621027. Fix AIX compiler warnings due to not explicitly saying what kind of inheritance we're doing. r=mrbkap 2011-03-22 17:19:10 -04:00
Andew Paprocki
30910b12ed Bug 621026. Define JS_64BIT for some more compilers. r=mrbkap 2011-03-22 17:19:10 -04:00
Andew Paprocki
d06635f865 Bug 621021. Silence some compiler warnings on AIX. r=mrbkap 2011-03-22 17:19:10 -04:00
Andew Paprocki
82f470cc68 Bug 621004. Make jsval_layout look nicer on AIX. r=mrbkap 2011-03-22 17:19:10 -04:00
Andew Paprocki
d7d8ef01bc Bug 621000. Implement GetNativeStackBaseImpl for AIX. r=mrbkap 2011-03-22 17:19:10 -04:00
Andew Paprocki
d610f1ab70 Bug 587103. Properly scope external calls in templated functions to fix compilation with some compilers. r=mrbkap 2011-03-22 17:19:09 -04:00
Jeff Walden
102c6d9d07 Revert loop limit back to 10k, as stack overflow in JS_DeepFreezeObject is still a concern even if GC stack overflow isn't. r=orange 2011-03-22 12:00:32 -07:00
Jeff Walden
7eafdc943e Fix a couple warnings that are now errors with GCC 4.5.1. r=bustage 2011-03-22 10:52:56 -07:00
Jeff Walden
b8218fdd99 Bug 642199 - jsapi-tests should set a stack quota to avoid blowing out the native stack. r=billm 2011-03-18 17:56:28 -07:00
Jason Orendorff
efd9982808 Bug 561359 - Change JSOP_LAMBDA to apply the method optimization deterministically. In particular, it no longer depends on whether enclosing Blocks have been reified. This prevents incorrect behavior and assertions when a JSOP_LAMBDA, JSOP_INITMETHOD pair apply the method optimization once, populating the property cache, but later the same JSOP_LAMBDA instruction does not (under the old code) apply the optimization. With this patch, if JSOP_LAMBDA pushes the uncloned function once, it always will. r=brendan. 2011-03-14 15:54:34 -05:00
Brian Hackett
25336e741f [INFER] Don't try to infer 'new' objects for non-compileAndGo scripts, bug 641231. 2011-03-13 22:35:51 -07:00
Brian Hackett
4e909bc147 [INFER] Handle DEFAULTX and CASEX during inference, bug 641235. 2011-03-13 22:05:24 -07:00
Brian Hackett
bcdddfd208 [INFER] Only add result for markTypeCallerUnexpected when the caller is at a callsite, bug 641229. 2011-03-13 21:59:03 -07:00
Brian Hackett
0d6e549246 [INFER] Mark all cross-compartment iterations as producing unknown values, bug 641224. 2011-03-13 21:40:55 -07:00
Brian Hackett
22ba7f2973 [INFER] Watch out computing 'new' value for functions given a non-function type via setting __proto__, bug 640993. 2011-03-13 21:29:30 -07:00
Brian Hackett
4750d53d19 [INFER] Mark result of 'new Function.prototype' as unknown, bug 619338. 2011-03-13 21:04:43 -07:00
Brian Hackett
4c77f186e9 [INFER] Add recompilation rejoin calls in JSOP_GETELEM/JSOP_CALLELEM, bug 641269. 2011-03-13 20:46:30 -07:00
Brian Hackett
95aba8f452 [INFER] Fix jit-test -mna failures, also call site rejoining at GETPROP, bug 639508. 2011-03-13 20:35:49 -07:00
Brian Hackett
25bc5395d9 [INFER] Fix call IC monitoring for speculated Function.prototype.call, bug 621942. 2011-03-12 22:33:11 -08:00
Brian Hackett
ee5b69e7a2 [INFER] Use ICs on monitored calls, reenable APPLY optimizations, bug 621942. 2011-03-12 21:59:46 -08:00
Brian Hackett
300a849c3e [INFER] Use PICs on monitored SETNAME and SETPROP, bug 621937. 2011-03-11 16:29:38 -08:00
Bill McCloskey
4f00dab2ab Bug 639954 - *Really* set cx->compartment to NULL during GC (r=luke) 2011-03-14 10:37:05 -07:00
Jeff Walden
1b4892e303 Bug 637643 - Tests. r=async.processingjs@yahoo.com
--HG--
extra : rebase_source : 190f79659ffb1305726347310d6c7bb4f4f7d2b1
2011-03-14 10:17:40 -07:00
async.processingjs@yahoo.com
c5822baf18 Bug 637643 - A subarray of a typed array subarray not at offset zero doesn't contain the right data. r=jwalden
--HG--
extra : rebase_source : f6fe88592e66101dc065bd82f35e4d2f3fd1cb1a
2011-03-14 10:17:36 -07:00
Andreas Gal
0dc25a462f Follow-up fix for bug 639729. 2011-03-13 19:20:06 -07:00
Andreas Gal
0dec3716f6 Inline GC mark path (bug 639729, r=billm). 2011-03-13 18:13:52 -07:00
Bill McCloskey
7d23f82de0 Bug 596338 - Fix --disable-methodjit --disable-tracejit builds (r=ginn.chen) 2011-03-11 15:40:05 -08:00
Brian Hackett
257e8d9e66 Trace Parser::emptyCallShape, bug 641103. r=gal 2011-03-11 14:49:11 -08:00
Jeff Walden
ea8b05778f Correct a URL in tests for bug 614608. r=sparky but DONTBUILD because it's such a small and unimportant change 2011-03-11 13:15:58 -08:00
Bill McCloskey
b58bb18728 Bug 636544 - Fix JavaScript "-m -j" mode (r=dmandelin) 2011-03-11 11:44:57 -08:00
Bill McCloskey
274e0534d2 Bug 639858 - Bias the profiler toward tracing scripted getters (r=dmandelin) 2011-03-11 10:21:33 -08:00
Brian Hackett
58c0e1b4c9 [INFER] Update property types when defining properties through wrappers, bug 639529. 2011-03-11 07:20:47 -08:00
Brian Hackett
e13c945067 [INFER] Fully sync stack when making stub and inline calls, bug 639882. 2011-03-10 23:51:45 -08:00
Brian Hackett
6811ee3e16 [INFER] Don't check marked bit for static strings, bug 639263. 2011-03-10 20:44:04 -08:00
Brian Hackett
2406358b4d [INFER] Fix build breaks, bug 639263. 2011-03-10 19:25:49 -08:00
Nicholas Nethercote
4aa7aa5390 Bug 638627 - Properly handle failures to patch guards due to non-32-bit offsets (TM-specific part). r=gal,dvander. 2011-03-10 16:41:50 -08:00
Nicholas Nethercote
5632ad613f Update nanojit-import-rev stamp. 2011-03-10 16:27:55 -08:00
Brian Hackett
5d55f075a3 [INFER] Compute types for singleton/JSON arrays and objects, bug 639263. 2011-03-10 16:17:39 -08:00
Nicholas Nethercote
ec0be2faaa Bug 638627 - Properly handle failures to patch guards due to non-32-bit offsets (NJ-specific part). r=dvander.
--HG--
extra : convert_revision : b3948560bcbc91ed1e7416d2f9ad495e1c8daca1
2011-03-10 16:16:42 -08:00
Gregor Wagner
a372a8f059 Bug 638199 - Shrink ArenaHeader (r=wmccloskey) 2011-03-10 15:27:21 -08:00
Nicholas Nethercote
352a80e463 merge 2011-03-10 14:32:03 -08:00
Nicholas Nethercote
585033aa98 Backed out changeset cc7311c09b56 (bug 602397) due to Maemo Talos breakage. 2011-03-10 14:31:34 -08:00
Brian Hackett
4b2542238f [INFER] Fix uses of FrameEntrys from tracker >= sp, bug 640614. 2011-03-10 12:17:19 -08:00
Brian Hackett
a3042809bc [INFER] Overhaul inference handling of new object computation, bug 619433. 2011-03-10 12:01:11 -08:00
Brian Hackett
6279a0e820 [INFER] Fix incorrect uses of getDenseArrayCapacity, bug 640203. 2011-03-10 09:56:51 -08:00
Brian Hackett
eaea79df6e Merge TM -> JM 2011-03-10 09:20:42 -08:00
Brian Hackett
359e7cab19 [INFER] Fix use of uninitialized VMFrame field, bug 640608. 2011-03-10 08:40:10 -08:00
Brian Hackett
18571341e5 [INFER] FrameState::isEntryCopied shouldn't look at entries not on the stack, bug 640102. 2011-03-10 08:25:22 -08:00
Jacek Caban
183c92c817 Bug 633924 - MethodGIT broken on mingw-w64 win64 build r=dvander 2011-03-10 11:32:23 +00:00
Nicholas Nethercote
76f4d326e3 Bug 602397 - TM: clean up TraceRecorder::alu(). r=wmccloskey. 2011-03-09 15:21:07 -08:00
Brian Hackett
fefd549185 [INFER] Always allow rejoins from the interpreter to JM code at loop heads, bug 636598. 2011-03-09 14:07:51 -08:00
Brian Hackett
28bea9e2f5 [INFER] Fix merge botch. 2011-03-09 13:05:21 -08:00
Brian Hackett
796650b7b7 [INFER] Introduce cutoff for total contribution of type objects to type sets, bug 619433. 2011-03-09 11:04:36 -08:00
Brian Hackett
d639ada378 Merge TM -> JM 2011-03-09 09:58:49 -08:00
Brian Hackett
05cb3c6e46 [INFER] Remove constant-double info from AnalyzeStateStack, bug 640098. 2011-03-09 07:08:43 -08:00
Jan de Mooij
77a48952fa [INFER] Monitor property type for JSOP_INITELEM in methodjit, bug 640098, r=bhackett 2011-03-09 07:02:05 -08:00
Andreas Gal
436b7e7f79 Don't shrink object slots during GC (bug 639727, r=bhackett). 2011-03-09 00:53:56 -08:00
Brendan Eich
ca4763311f Fix assertion botched by function using a previously mentioned name and therefore claiming its placeholder or declared definition; the function must have sane end vs. begin source coordinates for error reporting purposes (640075, r=njn). 2011-03-08 23:51:27 -08:00
Brian Hackett
2580fc4b31 [INFER] Handle DEFAULT_NAMESPACE_ID in MakeTypeId, bug 640079. 2011-03-08 23:00:28 -08:00
Brian Hackett
6b031eadab [INFER] Fix bogus assert, bug 640078. 2011-03-08 22:36:31 -08:00
Andreas Gal
e787b97701 Sweep compartments when no objects live in them (bug 639270, r=gregor). 2011-03-08 20:58:38 -08:00
Brian Hackett
a49752d076 [INFER] Sync copied entries instead of preserving in fixDoubleTypes, bug 639808. 2011-03-08 20:03:20 -08:00
Phil Ringnalda
d21d12b55b Back out 80d8431f209e (bug 639270) for failing to actually compile 2011-03-08 19:59:30 -08:00
Brian Hackett
f59900ed51 [INFER] Don't convert int32 entries to doubles during storeTop, bug 639808. 2011-03-08 19:36:59 -08:00
Andreas Gal
033fce6c39 Sweep compartments when no objects live in them (bug 639270, r=gregor). 2011-03-08 18:10:47 -08:00
Blake Kaplan
cfa571b106 Fix some stuff brendan pointed out. 2011-03-08 18:08:59 -08:00
Nicholas Nethercote
155ec564ef Bug 638034 - Make scanning safer. r=brendan. 2011-03-08 16:10:51 -08:00
Blake Kaplan
0ba7e969d0 Bug 639501 - Setters can cause the handler to change. r=gal
--HG--
extra : rebase_source : 5cef14e53e2f9032218c725538ba2afbf467191c
2011-03-08 15:05:11 -08:00
Blake Kaplan
5d28072106 Bug 638026 - Make sure we hold onto the right JS object here. r=jst
--HG--
extra : rebase_source : 5ebebc39f689d0b76e51b2ca79fa432871b1404e
2011-03-08 15:04:59 -08:00
Blake Kaplan
c54ec6b730 Bug 639737 - JS_THIS_OBJECT can fail and we need to catch when it does. r=jst
--HG--
extra : rebase_source : 0ecd6f2666c506bbf5837ef14092fcb47c8e5b3b
2011-03-08 15:04:37 -08:00
Brian Hackett
c9c24e30df [INFER] Analyze JSOP_ENUMCONSTELEM, bug 639807. 2011-03-08 13:34:47 -08:00