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
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
Brian Hackett
7eb8f472ae
[INFER] Analyze SETCONST on unknown objects, bug 639797.
2011-03-08 12:51:55 -08:00
Jeff Walden
ffe40862e0
Bug 639583 - Don't do a range-check/growStorageBy for the js::Vector::infallibleAppend methods. r=luke
2011-03-08 12:44:42 -08:00
Nicholas Nethercote
affdfbad49
Fix more warnings-as-errors breakage for bug 609532.
2011-03-21 22:45:56 -07:00
Nicholas Nethercote
b5337d6a0b
Fix warnings-as-errors breakage for bug 609523.
2011-03-21 21:52:39 -07:00
Nicholas Nethercote
04b21d42c9
Bug 609532 - Stop checking in code with warnings. r=dwitte.
2011-03-21 20:32:28 -07:00
Chris Leary
7ed86b3a25
Merge mozilla-central to tracemonkey.
2011-03-21 16:36:56 -07:00
Luke Wagner
dc3b77b20a
s/if/else if/ so that f6281545d2c1 doesn't hit the JS_NOT_REACHED (rs=billm)
2011-03-21 13:02:06 -07:00
Luke Wagner
a2e3ccd941
Bug 642896 - Weaken overstrict resetInvokeCallFrame assert (r=waldo)
2011-03-21 11:57:51 -07:00
Luke Wagner
75f936de54
Init local in jstracer.cpp to silence warning (rs=billm)
...
--HG--
extra : rebase_source : e5c02598c9239ce4ea24623d103331ddd0c1150e
2011-03-21 11:46:54 -07:00
Bob Clary
dcf61e4235
Bug 610185 - JavaScript Tests - temporarily mark ecma/Date/15.9.5.34-1.js as random due to DST orange, r=jorendorff, a=NPOTB.
2011-03-17 08:32:37 -07:00
Brian Hackett
2bef1199b9
[INFER] Fix use of cx->compartment in DestroyScript, bug 639759.
2011-03-08 11:23:31 -08:00
Brian Hackett
29b930888d
[INFER] Use js_malloc instead of cx->malloc for inference data made when condensing in GC, bug 619433.
2011-03-08 10:21:54 -08:00
Jan de Mooij
3c67891aec
[INFER] Fix JSOP_MOD recompile bug, bug 639792, r=bhackett
2011-03-08 08:10:46 -08:00
Jan de Mooij
8e712395ed
[INFER] Fix regalloc bug in ensureInteger, bug 639478, r=bhackett
2011-03-08 08:07:31 -08:00
Brian Hackett
e96d548d36
[INFER] Fix JSOP_NEG convert-to-double bug, bug 619433.
2011-03-07 23:46:04 -08:00
Brian Hackett
163ac1839a
[INFER] Fix uses of cx->getTypeEmpty during GC, bug 619433.
2011-03-07 20:10:57 -08:00
Brian Hackett
db3ad72d5f
[INFER] Handle GCs inside eval() statements, bug 639591.
2011-03-07 18:44:21 -08:00
Brian Hackett
5e8a7bd73b
[INFER] Fix copies too in fixDoubleTypes, bug 639567.
2011-03-07 16:47:15 -08:00
Brian Hackett
92a273d256
[INFER] Remove hack for telling apart fastcalls and native calls when recompiling, bug 619433.
2011-03-07 16:26:52 -08:00
Brian Hackett
d1ce88fb19
[INFER] Make new type objects whenever associating functions with scripts, bug 619433.
2011-03-07 08:25:27 -08:00
Jan de Mooij
b03d0fdbfd
[INFER] Allocate temp register for JSOP_DIV integer check, bug 639459, r=bhackett
2011-03-07 06:58:07 -08:00
Brian Hackett
666b5642e8
[INFER] Turn inference on by default, fold JS_DefinePropertyWithType into JS_DefineProperty, bug 619693.
2011-03-06 22:57:13 -08:00
Brian Hackett
4b8152fc78
[INFER] Fix break in opt builds.
2011-03-06 20:21:31 -08:00
Brian Hackett
f73ea4fa48
[INFER] Compile x === x on known doubles, bug 619433.
2011-03-06 20:10:24 -08:00
Brian Hackett
6f2c05af08
[INFER] Stronger type-correctness assertions when setting or getting properties, bug 619693.
2011-03-06 15:35:09 -08:00
Brian Hackett
964d8f04f6
[INFER] Fix use-after-free error while sweeping type objects, bug 639311.
2011-03-06 08:15:44 -08:00
Brian Hackett
040e1d7b11
[INFER] Compute fp->pc() for frames at the end of previous segments, bug 621526.
2011-03-05 22:31:00 -08:00
Brian Hackett
37ffca03a9
[INFER] Don't collect type objects with unknown properties for mutable __proto__, bug 639126.
2011-03-05 21:23:02 -08:00
Brian Hackett
eef5f2fae3
[INFER] Recheck script->types before forcing analysis with -a in typeSetThis, bug 639128.
2011-03-05 17:34:09 -08:00
Brian Hackett
ca1935e670
[INFER] Remove isTypeCallerMonitored and rejoin from native calls triggering recompilation, bug 638977.
2011-03-05 17:13:40 -08:00
Jeff Walden
4dce1d9ffa
Bug 640072 - Convert properties of RegExp objects into true data properties, eliminating a use of shared-permanent properties. r=jorendorff
2011-03-05 15:29:30 -08:00
Jeff Walden
f1b6ce9142
Initialize a member variable in yarr/yarr/RegexParser.h if building with gcc 4.5 or later, because this compiler incorrectly claims the member variable might be used uninitialized. r=cdleary
2011-03-24 13:33:41 -07:00
Jeff Walden
6c7e38b13f
Bug 644015 - js_GetArgsProperty doesn't look up properties of strict mode arguments objects correctly. r=dmandelin
2011-03-23 16:34:19 -07:00
Jan de Mooij
a5cfb6f527
[INFER] Use stderr instead of stdout for inference failures, bug 639176. r=bhackett
2011-03-05 09:10:53 -08:00
Brian Hackett
6581dd4ddb
[INFER] Fix uses of vanilla new/delete.
2011-03-04 19:44:08 -08:00
Brian Hackett
5c1f2d510f
[INFER] Mark properties of XML.prototype as unknown, bug 638982.
2011-03-04 18:04:46 -08:00
Brian Hackett
30270553a5
[INFER] Handle repeated calls to js_InitFunctionAndObjectClasses, bug 638981.
2011-03-04 17:45:11 -08:00
Brian Hackett
95deeefb27
[INFER] Fix behavior of analyze::Script::localEscapes to match FrameState::isClosedVar.
2011-03-04 17:32:38 -08:00
Jeff Walden
6de99f0675
Bug 638997 - Remove the id field from PropDesc: users who needed it should manage the id separately. r=luke
...
--HG--
extra : rebase_source : eb2152a2259a81bca1d7a4f5521787f9385a3c6f
2011-03-04 17:24:15 -08:00
Tom Schuster
7c8c437951
Bug 635010 - new Error(undefined).hasOwnProperty("message") should be false. r=jorendorff.
2011-03-08 16:15:30 -06:00
Tom Schuster
818368b37a
Bug 639915 - Remove some code in fun_getProperty that has been dead for 12 years. r=jorendorff.
2011-03-08 16:02:05 -06:00
Jason Orendorff
4e9c3393c6
Omit a variable used only in an assertion, to silence warnings in non-debug builds. no_r=me.
2011-03-07 11:21:16 -06:00
Paul Biggar
ae4095d507
Bug 639910 - JS_CHECK_RECURSION on !JS_TRACER path skipped |goto error|. (r=dvander)
2011-03-08 12:58:54 -08:00
Michael Wu
1beae988f1
Bug 429649 - Don't serialize the shortid in js_XDRBlockObject, r=igor
2011-03-08 08:59:01 -08:00
Michael Wu
485c7a99b4
Bug 329740 - Remove JSXDR_FREE, r=igor
2011-03-08 08:59:01 -08:00
Nicholas Nethercote
62bb333ede
Bug 631106 - JM: simplify allocation of executable memory. r=dvander.
2011-03-07 20:15:56 -08:00
Andreas Gal
29c7365b34
Make empty shape initialization lazy (bug 639254, r=billm).
2011-03-07 18:42:04 -08:00
Brian Hackett
9a20a2ba1d
Deoptimize name accesses within XML filters, bug 605200. r=brendan
2011-03-07 18:16:54 -08:00
Brendan Eich
c363c2122c
Put #undef where it belongs.
2011-03-07 17:58:03 -08:00
Andreas Gal
0d8a57b2c1
Follow-up fix for bug 639235.
2011-03-07 17:20:12 -08:00
Andreas Gal
751570828f
Mark watch points after the main GC phase (bug 639235, r=jorendorff).
2011-03-07 16:56:17 -08:00
Brian Hackett
779fedb80b
Backout b1f8f4f84662
2011-03-07 16:43:26 -08:00
Nicholas Nethercote
baf03471ed
Update nanojit-import-rev stamp.
2011-03-07 16:06:53 -08:00
Nicholas Nethercote
0ae0d30b3a
Bug 639418 - nanojit: add OPCODE and IMM8 to i386 backend. r=rreitmai.
...
--HG--
extra : convert_revision : b0decf655268cee50660e996efc66e3c16d59cdc
2011-03-07 16:03:09 -08:00
Nicholas Nethercote
eeda08a028
Bug 547063 - nanojit: reinstate NJ_COMPILER_ARM_ARCH static assertion in njconfig.cpp. r=rreitmai.
...
--HG--
extra : convert_revision : 04f1b105cccd234217c8e2c1119a423cd6185e83
2011-03-07 15:54:10 -08:00
Brian Hackett
eb12efe47d
[INFER] Recompile target script in InvokeSession as necessary, bug 621292.
2011-03-04 15:56:37 -08:00
Brian Hackett
e5852f8376
[INFER] Don't use the default emptyTypeObject for functions decoded by XDR.
2011-03-04 12:59:48 -08:00
Brian Hackett
acc0fa2903
[INFER] Restructure tracer disabling to avoid crash in contexts with NULL compartment.
2011-03-04 11:57:53 -08:00
Brian Hackett
13b4f981c6
[INFER] Always analyze executed scripts if -a is used, bug 621654.
2011-03-04 11:28:52 -08:00
Brian Hackett
f868e29684
[INFER] Miscellaneous fixes to get inference passing jstests.
2011-03-04 07:50:32 -08:00
Brian Hackett
801f764f4c
[INFER] Fixes from botched merge.
2011-03-03 21:24:13 -08:00
Brian Hackett
41091b1bb6
[INFER] Fix OOM handling in type inference, convert inference to runtime option, bug 637674.
2011-03-03 14:07:48 -08:00
Cédric VINCENT
0f22a7b53a
Bug 638402 - Improve the performance of the code emitted by NanoJIT/SH4 (r=rreitmai)
...
.
. attachment 516556 - Improve the performance of the code emitted by NanoJIT/SH4
.
User-Agent: Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.7.62 Version/11.01
Build Identifier:
This patch improves the performance of the code emitted by
NanoJIT/SH4, it was validated with the "acceptance"
and "performance" testsuites.
This patch introduces:
* many small tweaks.
* a constant pool manager specific to the SH4, see the following
link for details: http://pastebin.com/D8cuNRMp
* a "static" point in the frame to allow more efficient
addressing on SH4, see the following link for details:
69a6c19699
Reproducible: Always
--HG--
extra : convert_revision : 6d4c33b8124b854f07f733c52bf2c4a5c52e2d8c
2011-03-03 03:54:00 -08:00
Brian Hackett
00777d1240
Deoptimize name accesses within XML filters, bug 605200. r=brendan
2011-03-07 15:31:17 -08:00
Luke Wagner
6aecedc65b
Bug 621526 - JSStackFrame::pc() should not look for 'next' frame for current frame of suspended segment (r=bhackett)
...
--HG--
extra : rebase_source : c88e3dac4abde576cdf30b69f894c69a101f79af
2011-03-07 09:55:41 -08:00
Jan de Mooij
c2a4d22511
Bug 628073 - Compile JSOP_CASE in the methodjit (r=dvander)
...
--HG--
extra : rebase_source : b08711e0550ee1addab6126fd9329a7cc3e894bc
2011-03-07 11:27:43 -08:00
Brian Hackett
70aee16fea
[INFER] Restore code looking up lazily loaded global properties during inference, bug 613221.
2011-03-02 10:52:10 -08:00
Brian Hackett
e5020a35b3
[INFER] Condense type information during GC, bug 613221.
2011-03-01 13:10:05 -08:00
Jeff Walden
3dc342446e
Bug 636175 - Move dom/src/json/test/unit tests into JS suite tests, because that's where they belong. r=pbiggar
...
--HG--
rename : dom/src/json/test/unit/pass3.json => dom/src/json/test/unit/decodeFromStream-01.json
rename : dom/src/json/test/unit/test_decode.js => dom/src/json/test/unit/test_decodeFromStream.js
rename : dom/src/json/test/unit/test_long_input.js => dom/src/json/test/unit/test_decode_long_input.js
extra : rebase_source : 6091ebb40a273c4bdd40d42e331e2c15e58d13f8
2011-02-25 19:01:54 -08:00
Paul Biggar
4c6e65a3b2
[INFER] Fix build (fix AnyRegister API change and remove duplicate function).
2011-02-25 12:43:49 -08:00
Brian Hackett
0a2cdd3c56
Merge TM -> JM
2011-02-25 18:21:43 +13:00
Joel Maher
457e664cbe
Bug 639678 - annotate manifests to see green jsreftest runs on tinderbox. r=blassey, a=tests
2011-03-11 09:15:36 -05:00
mrbkap@gmail.com
f853de3fb7
Fix bug 636097 (r=gal, a=blocker).
2011-02-23 22:13:17 -08:00
Gregor Wagner
f20e96eab6
Bug 636365 - Add separate GCTIMER interval for sweeping Shapes. NPOTB, (r=gal)
2011-02-23 19:58:19 -08:00
kosver
9edd61c77e
Remove bogus assertion at jsdbgapi.cpp:781. Bug 635195, r=jorendorff, a=dmandelin.
...
--HG--
extra : rebase_source : 51b817d95bd254353f136e9cc88d35831f5f5db1
2011-02-23 14:17:00 -06:00
Paul Biggar
8856470313
[INFER] Support multiple filter argument in jsapi-tests.
...
I'm trying to merge tracemonkey without regressing anything; however some early jsapi-tests fail. This allows me to ignore tests which don't already work.
2011-02-22 17:09:08 -08:00
Paul Biggar
78cc4facc5
[INFER] Fix invalid assertion about JSScript size.
...
This was triggered by changing the size of JSScript by adding members. The fix is pulled from tracemonkey, where the same thing happened.
2011-02-22 11:07:36 -08:00