Commit Graph

14544 Commits

Author SHA1 Message Date
Jason Orendorff
7e584f054f Test for bug 650753. no_r=me, passing tests do not need review.
--HG--
extra : rebase_source : e1e577927e2ac24b8ebcde2b31a945d55a096f8f
2011-04-18 18:04:36 -05:00
Leon Sha
4744fa47e3 Backout 91eaf74fff1e. 2011-04-18 20:53:24 -07:00
Leon Sha
c3cb41cc19 Bug 610323 - [TraceMonkey] Implement Jaegermonkey Sparc back-end. Part II. r=dvander. 2011-04-18 20:17:21 -07:00
Leon Sha
4c9b2d1c84 Bug 610323 - [TraceMonkey] Implement Jaegermonkey Sparc back-end. Part I. New Files. r=dvander. 2011-04-18 20:11:46 -07:00
Brian Hackett
499683f447 [INFER] Preserve fixed slot and capacity information when trading object guts, bug 650912. 2011-04-18 16:00:17 -07:00
Gregor Wagner
958cbdcc3a Bug 650753 - Crash [@ js::gc::Cell::compartment] with WeakMap. r=gal 2011-04-18 15:09:21 -07:00
Gregor Wagner
a3215d9380 Bug 650855 - Followup for bug 627200 for real. r=gal 2011-04-18 15:06:48 -07:00
Jan de Mooij
01850cc60b [INFER] Don't call script() on a dummy frame, bug 650864. r=bhackett 2011-04-18 13:12:37 -07:00
Jason Orendorff
6dcd26b06e Bug 646820 - Function in destructuring assignment can't see up to other variables in the assignment. r=brendan.
--HG--
extra : rebase_source : ac60bc50cbb64adc22a42ace696b8e9c0d8f184f
2011-04-18 12:49:57 -05:00
Jason Orendorff
fcc0bf1635 Bug 646807 - Remove extra RHS checking in CheckDestructuring. r=brendan.
--HG--
extra : rebase_source : 5cee26017a887df666bf272bec8cb3308919b97b
2011-04-18 12:47:55 -05:00
Gregor Wagner
d08cc80190 Bug 650855 - Followup for bug 627200. r=gal 2011-04-18 10:55:47 -07:00
Gary Kwong
6ce5a9d22e Bug 650621 - Fix boundary failure in string object length assertion. rs=Waldo 2011-04-18 12:03:12 +08:00
Nicholas Nethercote
66672b2c61 Update nanojit-import-rev stamp. 2011-04-17 17:21:14 -07:00
Bill McCloskey
b0ccb806b6 Fix off-by-one error in Containers.cpp:BitSet::grow(). r=nnethercote.
--HG--
extra : convert_revision : 74e1b2344f722020fb10e11d7b115373c43c37b6
2011-04-17 17:07:51 -07:00
Nicholas Nethercote
3d26d4379e Remove debugging printf left behind by patch for bug 643969 that was causing test failures.
--HG--
extra : convert_revision : 8202c5872474e0e87717082d5167b35c52d55236
2011-04-17 17:02:27 -07:00
Brian Hackett
ec11db0996 [INFER] Fix disabled hoisting on x.length checks. 2011-04-17 07:36:55 -07:00
Brian Hackett
ac435c47ed [INFER] Hoist bounds checks for variables in linear relationships with loop test, bug 650496. 2011-04-17 06:51:10 -07:00
Brian Hackett
06a24a58ed [INFER] LICM and bounds check hoisting for x.length, bug 649693. 2011-04-16 06:54:01 -07:00
Bill McCloskey
3c0cd83aa3 Bug 616666 - Use explicit stack for GC marking (r=gal) 2011-04-15 16:56:08 -07:00
Luke Wagner
48985f251e Bug 650617 - Fix AssertInnerizedScopeChain typo from 602994 (r=mrbkap) 2011-04-18 10:24:21 -07:00
Brian Hackett
bfd23b5265 [INFER] Don't optimize slot accesses for non-global scope objects. 2011-04-15 08:36:03 -07:00
Brian Hackett
eaf164a1c9 [INFER] Retest hoisted bounds checks after stub calls, bug 649693. 2011-04-14 21:59:32 -07:00
Brian Hackett
eddc285117 [INFER] Kludge for recompilation thrashing in sunspider-crypto-md5. 2011-04-14 17:28:04 -07:00
Brian Hackett
ee9af35798 [INFER] Watch for global slots reallocation during compilation, bug 650076, always handle overflowing inclocal/arg/global regardless of pushed type, bug 650148. 2011-04-14 16:33:28 -07:00
Brian Hackett
bdbe8ac1c6 [INFER] Call stubcc.leave() on negative zero in JSOP_MOD, bug 649973. 2011-04-14 15:46:47 -07:00
Brian Hackett
8cd051ac8e [INFER] Avoid IC when fetching the length of a known array. 2011-04-14 13:03:21 -07:00
Brian Hackett
acefe4f0df [INFER] Don't add undefined type to arrays which holes were read from. 2011-04-14 06:56:43 -07:00
Landry Breuil
94441e2879 Bug 633857 - missing #include for OpenBSD (nanojit part). r=dvander
--HG--
extra : convert_revision : 05d5e4afb6e4ed366d2d994785b6b2d326d5aa55
2011-04-14 14:13:26 +09:00
Brian Hackett
0ae73e12fa [INFER] Don't hoist accesses that could underflow the array, bug 649775. 2011-04-13 15:18:15 -07:00
Brian Hackett
42fa6e5949 [INFER] Mark unexpected result when RegExp returns its own argument, bug 649771. 2011-04-13 14:57:12 -07:00
Brian Hackett
d26702c226 [INFER] Don't try to fixup doubles on adjusted frame in call path, bug 649769. 2011-04-13 14:45:25 -07:00
Jan de Mooij
5839315f83 [INFER] Don't clobber address register in FrameState::storeTo, bug 649689. r=bhackett 2011-04-13 12:38:23 -07:00
Brian Hackett
40a0021182 [INFER] Use ebx as a general purpose register on x86, bug 638506. 2011-04-13 12:09:31 -07:00
Brian Hackett
8d6da2ebd6 [INFER] Fix busted jstests. 2011-04-13 10:20:48 -07:00
Brian Hackett
b42d909b23 [INFER] Set standard class slots before updating type info, bug 649439. 2011-04-13 07:09:21 -07:00
Brian Hackett
d8c95f63d9 [INFER] Don't check newly pushed StackSegments in StackSpace::containingSegment, bug 649477. 2011-04-13 06:53:46 -07:00
Brian Hackett
fc65b95530 Merge TM -> JM 2011-04-13 06:45:06 -07:00
Jan de Mooij
601e26f3b1 [INFER] Fix SetName stub call in jsop_setprop, bug 649593. r=bhackett 2011-04-13 06:14:27 -07:00
Brian Hackett
21fd2d8254 [INFER] Direct instance property accesses, bug 649376. 2011-04-12 20:39:16 -07:00
Chris Leary
59f814562b Merge mozilla-central to tracemonkey. 2011-04-12 20:28:42 -07:00
Robert Strong
0c4cae96de followup fix to sync config.mk - Bug 649428 - l10n repacks broken on all platforms on mozilla-central (probably aurora, too). r=bustagefix 2011-04-12 18:16:32 -07:00
Blake Kaplan
d7c603eab8 Bug 618176 - Skip multiple wrappers when deciding whether this object is an array. r=gal 2011-04-12 15:56:45 -07:00
Brian Hackett
793bec3ed6 [INFER] Add dependency on type of pushed value in JSOP_GETGNAME, bug 649261, mark properties redefined with getters/setters as configured, bug 649272. 2011-04-12 08:33:48 -07:00
Brian Hackett
83e8f1e4ab Merge TM -> JM 2011-04-12 07:04:45 -07:00
Brian Hackett
bee0fa2c86 [INFER] Don't propagate type sets for 'new' type objects along prototype chain. 2011-04-11 21:32:46 -07:00
Brian Hackett
2c80c88ba3 [INFER] Direct global name accesses, bug 648994. 2011-04-11 20:10:46 -07:00
Mook
c671b3dec1 bug 651663 - mark TestXPC global class as JSCLASS_GLOBAL_FLAGS (r=jorendorff) 2011-04-20 15:19:43 -07:00
Ms2ger
941e819c63 Bug 616684 - Remove support for DOM Views; r=sicking,ehsan 2011-04-24 08:54:25 +02:00
Chris Jones
ed22df8f64 Bug 556214, parts 1 and 1.1: Rename Monitor to ReentrantMonitor and fix existing Monitor users. r=roc
--HG--
rename : xpcom/glue/Monitor.h => xpcom/glue/ReentrantMonitor.h
2011-04-29 14:21:57 -05:00
Justin Lebar
7af0c522be Bug 590181 part 2 - Switch default gcc optimize options to -O3. r=ted. a=philor CLOSED TREE 2011-04-28 15:49:16 +02:00
Olli Pettay
744a48fa95 Bug 652814 - Rename nsIDOMTouchPoint to nsIDOMTouch (and a *aRetVal = nsnull for bug 648573 comment 19), r=mbrubeck 2011-04-27 14:58:25 +03:00
Brian Hackett
6c6b5d6f3a [INFER] Always ensure XDR'd scripts have a shape, bug 649103. 2011-04-11 16:39:29 -07:00
Brian Hackett
be364cb797 [INFER] Rejoin from FlatLambda, fix broken forgetMismatchedObject, bug 648992, bug 648999. 2011-04-11 08:30:01 -07:00
Brian Hackett
e4deebb68d Merge TM -> JM 2011-04-11 07:33:47 -07:00
Brian Hackett
7fc4e4971f [INFER] Clear initialized length when changing clasp during array slowification, bug 648773. 2011-04-11 06:52:23 -07:00
Brian Hackett
954651b3a0 [INFER] Make stubcall before adjusting stack in singleton CALLPROP, bug 648708. 2011-04-11 06:39:14 -07:00
Brian Hackett
2f716094fe [INFER] Add call site for scripted call made in call rejoin path, bug 648966. 2011-04-11 06:14:58 -07:00
Christian Legnitto
197347cdba Version bump to 6.0a1. Merge to mozilla-aurora. r=bsmedberg, a=LegNeato. 2011-04-12 06:51:00 -07:00
Brian Hackett
3ebc87699f [INFER] Coalesce rejoin sites for call ops, bug 648843. 2011-04-10 21:43:35 -07:00
Andreas Gal
ba0ea508c2 CallJSPropertyOp incorrectly called with obj instead of receiver in Shape::get (bug 648919, r=jorendorff). 2011-04-10 17:49:59 -07:00
Brian Hackett
3ba5f32195 [INFER] Separate call sites from rejoin sites in JITScript, reconstruct doubles on each rejoin, bug 647991. 2011-04-10 16:09:01 -07:00
Phil Ringnalda
20ed667819 Bug 648870 - Stop trying to package the tests in proxies/, since those tests are actually in js1_8_5/extensions/, r=bc
--HG--
extra : rebase_source : d7e63571c7ae91ece3fdc310b1a4264fb0b34d3d
2011-04-10 13:35:38 -07:00
Ed Morley
90a849de12 Bug 647389 - Remove WINCE stuff from Spidermonkey (r=jorendorff) 2011-04-09 20:17:53 +01:00
Gregor Wagner
63e89ff1d0 Bug 648786 - Fix checkArenaListsForThing (r=gal) 2011-04-09 17:26:58 -07:00
Brian Hackett
3756228559 [INFER] Use both inline and dynamic slots for objects other than dense arrays, bug 648321. 2011-04-08 19:51:40 -07:00
Brian Hackett
012e3b1119 Merge TM -> JM 2011-04-08 19:27:14 -07:00
Brian Hackett
4cdca73e55 [INFER] Preserve VMFrame registers while tracer is running, bug 648586. 2011-04-08 18:48:09 -07:00
Brian Hackett
30b794a8a2 [INFER] Patch unsynced local types when expanding inline frames, bug 648567. 2011-04-08 17:57:58 -07:00
Brian Hackett
1411ab0bed [INFER] Fix bogus assert, bug 648499. 2011-04-08 16:04:44 -07:00
Brian Hackett
6105beca85 [INFER] Don't inspect invalidated fe when converting to double, bug 648498. 2011-04-08 15:56:34 -07:00
Jeff Walden
1c76488210 Bug 648355 - Disable a fragile JSAPI test that seems to have been kicked into failure likely by compiler-determined optimizations, or something similarly undefined and maybe now impossible to rely upon -- but we'll see. For now, just return to green and really deal with it later. r=orange 2011-04-08 15:24:00 -07:00
Dave Herman
829e7dc189 added missing JS_HAS_GENERATORS #if/#endif (r=gal) 2011-04-08 13:46:19 -07:00
Dave Herman
98fe02ea81 Function.isGenerator (bug 648355, r=brendan) 2011-04-08 13:31:14 -07:00
Brian Hackett
8186cc1e21 [INFER] Don't evict register from incomplete frame entry, bug 618692. 2011-04-07 17:43:36 -07:00
Brian Hackett
cd69e136e6 Merge. 2011-04-07 17:15:43 -07:00
Brian Hackett
814665de9f [INFER] Fix cases where dense arrays have initialized length < capacity with disabled inference, bug 648357. 2011-04-07 17:14:15 -07:00
Brian Hackett
52950bca44 [INFER] Loop invariant code motion for array slot pointers, bug 618692. 2011-04-07 16:12:37 -07:00
Brian Hackett
db0b3cac1b [INFER] Don't try to inline known-unjittable scripts, use pushed type set instead of type tag when storing double result in JSOP_DIV, bug 648230. 2011-04-07 12:35:01 -07:00
Brian Hackett
c1666a63cd [INFER] Fix Kraken benchmark bustage. 2011-04-06 16:49:22 -07:00
Brian Hackett
ac1a9b0c9c [INFER] Always track active loop in liveness analysis, bug 643829. 2011-04-06 14:04:24 -07:00
Brian Hackett
40cc39a621 [INFER] Don't add stale unsynced entries to inline frame info, bug 647973. 2011-04-06 12:24:17 -07:00
Brian Hackett
32fcec93dd [INFER] Don't optimize calls to Array in non-compileAndGo scripts, bug 647657. 2011-04-06 10:56:38 -07:00
Jan de Mooij
68f8b8cc06 [INFER] Avoid accessing CallProp IC after recompilation, bug 648004. r=bhackett 2011-04-06 10:50:31 -07:00
Brian Hackett
4226ea1e6e [INFER] Array bounds check hoisting, cleanup, bug 618690. 2011-04-05 18:12:03 -07:00
Jan de Mooij
80ef2ee888 [INFER] Don't let known types influence whether jsop_not pushes a constant value, bug 647785. r=bhackett 2011-04-05 13:51:56 -07:00
Brian Hackett
406ea98001 [INFER] Fixes for crashtest and jstestbrowser. 2011-04-04 13:06:38 -07:00
Steven Johnson
474f15c5ca Bug 643969 - LIR_jf can generate jump-to-location-zero code on i386 and x64 (r=rreitmai)
--HG--
extra : convert_revision : 3b0667d8dc545c74a903d2b63e2116b407f035d7
2011-04-04 12:20:54 -07:00
Brian Hackett
dac20a37f4 [INFER] Maybe fix build breaks. 2011-04-03 19:54:19 -07:00
Brian Hackett
7b79426ab3 [INFER] Fix build break. 2011-04-03 17:05:21 -07:00
Brian Hackett
8a8647455c [INFER] Fix build break for uses of C++ constructs in jsarena.h 2011-04-03 16:19:05 -07:00
Brian Hackett
1ddb3c2c55 [INFER] Watch for recompilation triggered by ValueToObject, bug 647183. 2011-04-03 16:11:46 -07:00
Brian Hackett
6e57f07678 [INFER] Revert broken, pointless optimization to EnsureDenseArrayCapacity, bug 647524. 2011-04-03 15:56:37 -07:00
Brian Hackett
c6dc64b0ba [INFER] Check VMFrame return addresses against inlined call sites when expanding frames, bug 647199. 2011-04-03 15:29:01 -07:00
Brian Hackett
55790989cb [INFER] Don't discard JIT code for the topmost frame while recompiling, bug 647424. 2011-04-03 14:37:50 -07:00
Brian Hackett
54470b0628 [INFER] Fix bogus assert, bug 647428. 2011-04-03 13:52:27 -07:00
Brian Hackett
79871712b2 [INFER] Make sure the operands in bitops are not copies of one another, bug 647440. 2011-04-03 13:47:46 -07:00
Brian Hackett
e90a588261 [INFER] Define static functions after defining the class for Number, String, bug 647537. 2011-04-03 13:14:38 -07:00
Brian Hackett
2390894c39 [INFER] Bail from GetProperty IC if js_FindProperty triggered recompilation, bug 647547. 2011-04-03 12:25:16 -07:00
Brian Hackett
90dcf54737 [INFER] Fix (again) use of CALLPROP ic after it may have been destroyed, bug 647559. 2011-04-03 12:14:15 -07:00
Brian Hackett
4d147d073e [INFER] DefineConstructorAndPrototype should update types before adding global property, bug 647464. 2011-04-03 11:34:31 -07:00
Brian Hackett
a583740626 [INFER] Use defineProperty when initializing singleton arrays, bug 647463. 2011-04-03 11:25:54 -07:00
Brian Hackett
1ed19456f6 [INFER] Always emit jsop_getprop stub calls for rejoining in JSOP_INSTANCEOF, bug 647532. 2011-04-03 11:16:44 -07:00
Jeff Walden
af6649155f Bug 647385 - Implement a ToInteger helper that corresponds to the spec method (rather than inlining its contents everywhere it can be trivially used). Also fixes a couple bugs in one place that should have used ToInteger but didn't. r=cdleary 2011-04-02 11:33:20 -07:00
Brian Hackett
8b7888dd66 Merge TM -> JM 2011-04-01 19:57:28 -07:00
Brian Hackett
a1f196a052 [INFER] More fixes for stock JM behavior, bug 647048. 2011-04-01 17:26:34 -07:00
Chris Leary
220936793d Bug 627632: Avoid unnecessary realloc in StringBuffer::finishString(). (r=luke) 2011-04-01 16:33:41 -07:00
Chris Leary
7863ab591f Bug 644753: Turn ILLEGAL_RANGE NS_ASSERTIONs to warnings. (r=mrbkap) 2011-04-01 12:07:39 -07:00
Steven Johnson
d5ee3b9a2c Bug 644473 - lirasm does not support backwards jump (r=njn)
--HG--
extra : convert_revision : 1efd735757e4a32a8d451007400319c4ad2d9238
2011-04-01 08:57:26 -07:00
Paul Biggar
59c1af50d3 Fix minor typo, followup to bug 634155 (no review) 2011-03-31 19:34:14 -07:00
Brian Hackett
b447aaf9bb [INFER] Restore stock JM behavior with inference off, bug 647048. 2011-03-31 18:11:41 -07:00
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