Commit Graph

14413 Commits

Author SHA1 Message Date
Luke Wagner
1913b99eb0 Bug 639883 - Use JSString (not JSShortString) for inline really short inline strings (r=njn)
--HG--
extra : rebase_source : 5d18f67f841864064e032836014978cf51b52f5c
2011-03-31 16:07:21 -07:00
Luke Wagner
53aca4319a Bug 639883 - rm js_FinalizeStringRT (r=igor)
--HG--
extra : rebase_source : c7f77ad290112fe7d6c53255dbf5595c94be3422
2011-03-31 16:05:31 -07:00
Brian Hackett
1053f5510c [INFER] Make ReleaseScriptCode specify which JIT to destroy, fix inline code invariant logic, bug 619433. 2011-03-31 07:39:30 -07:00
Brian Hackett
41b3f4b682 [INFER] Fix broken DefineConstructorAndPrototype logic, make jstype unsigned. 2011-03-31 03:26:10 -07:00
William Maddox
87f3288bed Bug 644900 - Generate probes for stack expansion when allocating large frames on Windows (r=edwsmith)
Also extend lirasm with --stkskip option to exercise the fix.

--HG--
extra : convert_revision : 670889ebdbca23505e134a116155a2bb2ca41240
2011-03-30 21:45:21 -07:00
Paul Biggar
7a1dbd7c9f Bug 647482 (followup): Fix jstests for directory structure used by SM builds, by actually searching the current path (r=dmandelin) 2011-04-17 17:45:42 +01:00
Andreas Gal
fd2168c3af Implement Harmony weak maps (bug 547941, r=jorendorff). 2011-04-16 21:23:44 -07:00
Andreas Gal
04ee44b4e6 for-in loop on proxy does not suppress properties deleted during enumeration (bug 600702, r=brendan) 2011-04-16 14:51:18 -07:00
Wes Garland
ed8e6d5fcf Bug 650526 - Follow up to Bug 648102, changes to JS_BufferIsCompilableUnit. r=gal 2011-04-16 15:13:10 -04:00
Wes Garland
256dd8ad05 Bug 586016, update JS_GetImplementationVersion. r=jorendorff 2011-04-16 14:16:50 -04:00
Colin Walters
2a0395d63b Bug 648102 - Make shell REPL/snarf/run always take UTF-8 input; add JS_DecodeUTF8; add UTF-8 flag to JS_BufferIsCompilableUnit. r=gal 2011-04-16 14:11:10 -04:00
Wes Garland
fcc7ecf08b Bug 648102 - Add UTF-8 C strings option for shell. r=gal 2011-04-16 13:44:45 -04:00
Dave Yeo
2f806bf292 Bug 648208 - Fix build break on OS/2. r=igor 2011-04-16 12:55:11 -04:00
Luke Wagner
6fcaf8c63f Bug 649531 - tidy up this-computation logic a bit, add some asserts (r=waldo)
--HG--
extra : rebase_source : f01409526e4582b87ced4b9f9d1170254a55373b
2011-04-12 17:16:12 -07:00
Jason Orendorff
28a0d1622a Bug 614714 - Change JS_ClearScope to use the new enumeration code. r=Waldo. 2011-04-14 16:59:26 -07:00
David Anderson
61cc68f032 Fix clang warnings (bug 647280, r=luke). 2011-04-14 13:45:06 -07:00
Brian Hackett
4b2582d94a [INFER] Move containingSegment to StackSpace, fix uninitialized field, bug 646660. 2011-03-30 17:24:34 -07:00
Brian Hackett
740de451bc [INFER] Update the types of existing copies when updating the backing's type in storeTop, bug 646495. 2011-03-30 15:16:25 -07:00
Brian Hackett
47fe3ec386 [INFER] Always mark overflows for slowpath incops, bug 646594. 2011-03-30 15:01:31 -07:00
Brian Hackett
0efc0215e7 [INFER] Track currently compiled script on the TypeCompartment, 646587. 2011-03-30 14:10:16 -07:00
Brian Hackett
a2bbf13b04 [INFER] Disallow reentrant recompilation, inlining during recompilation from an active call IC, bug 646480. 2011-03-30 13:10:23 -07:00
Brian Hackett
221e7c805b [INFER] Don't use a stub call in PROPINC on known non-objects, bug 646429. 2011-03-30 11:47:02 -07:00
Brian Hackett
2d35b04f7f [INFER] Don't track type sets of values pushed by opcode fusions, bug 646411. 2011-03-30 11:30:23 -07:00
Brian Hackett
70ee8fa7f3 [INFER] Cache standard class objects earlier to avoid reentrant class construction, bug 646393. 2011-03-30 07:08:58 -07:00
Brian Hackett
cb84851874 [INFER] Fix fallout from bug 642307 commit. 2011-03-29 22:26:21 -07:00
Brian Hackett
b9d34d8bb2 [INFER] Allow known integers to be copies of doubles, bug 645657. 2011-03-29 22:17:23 -07:00
Brian Hackett
1a69b03a70 [INFER] Don't try to trigger lazy standard class initialization during inference, bug 642307. 2011-03-29 21:49:38 -07:00
Brian Hackett
5b04fe74cd [INFER] Tolerate scripts whose JIT code has already been destroyed when recompiling, bug 646215. 2011-03-29 21:20:09 -07:00
Brian Hackett
643346988b [INFER] RegisterAllocation::synced should account for parentRegs, bug 646060. 2011-03-29 21:15:51 -07:00
Brian Hackett
7b1f08d78a [INFER] Bail out from IC code on any recompilation/expansion change in the compartment, bug 646006. 2011-03-29 18:51:15 -07:00
Brian Hackett
ed887865ed [INFER] Reserve and check extra space when inlining frames, bug 646004. 2011-03-29 17:45:14 -07:00
Brian Hackett
14684c4e4b [INFER] Evict as necessary when restoring parent registers before branching, bug 646001. 2011-03-29 16:36:06 -07:00
Brian Hackett
d7434b87f6 [INFER] Add object test when statically walking the prototype chain for CALLPROP, bug 645985. 2011-03-29 15:57:38 -07:00
Brian Hackett
1f1a4d216c [INFER] Ensure that inlined scripts always have JIT code for expanding, bug 645666. 2011-03-29 08:30:05 -07:00
Brian Hackett
aa6b5e0e2f [INFER] Check for heavyweight functions when deciding to inline, bug 645645. 2011-03-29 06:39:09 -07:00
Brian Hackett
20901cf7b7 [INFER] Don't notify constraints of new TypeResults on functions with unknown properties, bug 645632. 2011-03-29 06:28:54 -07:00
Brian Hackett
6583f29906 [INFER] Always monitor accesses on __proto__ and similar properties, bug 645044. 2011-03-29 06:18:44 -07:00
Jan de Mooij
e8661b558f [INFER] Load atom pointer for CallProp stub call, bug 645629. r=bhackett 2011-03-29 05:55:49 -07:00
Brian Hackett
a3134a913f [INFER] Fix x64 build break. 2011-03-28 19:16:36 -07:00
Makoto Kato
7a5360fad1 Bug 636296 - Fix forceReturn trampoline on Win64/Solaris (r=dvander)
--HG--
extra : rebase_source : 85846343b38031931adafb7e44bc8983fdd3472c
2011-03-28 17:33:53 -07:00
Phil Ringnalda
8d4385b7fe Back out bd821ea0ad41 (638324) for mochitest-chrome crashes 2011-03-31 19:55:10 -07:00
Andreas Gal
e69500d1bc Maintain a list of IdArrays as we hand them out via JS API (638324, r=brendan). 2011-03-31 14:42:33 -07:00
Jan de Mooij
759437fbc3 [INFER] Refactor RegExp.exec -> RegExp.test optimization, use in both TM and JM. 2011-03-28 17:06:49 -07:00
Jan de Mooij
465c36c7ff [INFER] Handle jsop_binary overflow in inc/dec ops, bug 644970. r=bhackett 2011-03-28 15:44:30 -07:00
Brian Hackett
977162f22a [INFER] More robust handling of pushed singletons in CALLPROP when the lhs could be null/undefined, bug 639099. 2011-03-27 19:21:59 -07:00
Brian Hackett
dc5232e83a [INFER] Inline callees at polymorphic call sites, bug 639099. 2011-03-27 18:25:05 -07:00
Brian Hackett
02df7e9a1d [INFER] Wait for code to get hot before inlining calls, bug 639099. 2011-03-27 07:48:03 -07:00
Brian Hackett
d31340f90f [INFER] Fix Linux build again. 2011-03-26 20:34:56 -07:00
Brian Hackett
1d7bcffc21 [INFER] Fix Linux build. 2011-03-26 20:23:15 -07:00
Brian Hackett
7074cd94d6 [INFER] Don't clone functions with singleton types. 2011-03-26 20:18:58 -07:00
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