Commit Graph

39038 Commits

Author SHA1 Message Date
Andrew McCreight
f471f5ff55 Bug 1142717, part 2b - Rename obj to qiResult in InitTearOff. r=bholley 2015-03-18 11:36:03 -07:00
Andrew McCreight
c797fd39b0 Bug 1142717, part 2 - Use nsRefPtr for obj in XPCWrappedNative::InitTearOff. r=bholley 2015-03-18 11:36:03 -07:00
Andrew McCreight
2461682a28 Bug 1142717, part 1 - Remove unused forward declaration of xpc_GetJSPrivate. r=bholley 2015-03-18 11:36:03 -07:00
Andrew McCreight
c34850707a Bug 1137536, part 3 - Move the top level DeferredFinalize functions into their own file. r=smaug 2015-03-18 11:36:03 -07:00
Andrew McCreight
fa747a90b0 Bug 1137536, part 2 - Make sure every file that uses an nsCycleCollector_ function includes nsCycleCollector.h. r=smaug
This will let us remove it from headers after we split out DeferredFinalize into its own header.
2015-03-18 11:36:03 -07:00
Andrew McCreight
0f7082e12b Bug 1137536, part 1 - Move DeferredFinalize out of the cyclecollector namespace. r=smaug 2015-03-18 11:36:03 -07:00
Andrew McCreight
46d0306d6d Bug 1143938 - Add listener argument to Components.utils.forceCC. r=smaug 2015-03-18 11:36:03 -07:00
Terrence Cole
04c3af063d Bug 1144794 - Move markBufferedGrayRoots to the GCRuntime; r=sfink, a=RyanVM 2015-03-18 10:56:29 -07:00
Terrence Cole
4858566b27 Bug 1144789 - Strongly type GrayBufferState enum and move to GCRuntime; r=sfink, a=RyanVM 2015-03-18 10:56:03 -07:00
Terrence Cole
626c39c144 Bug 1144369 - Add a GC phase to track time spent buffering gray roots; r=sfink, a=RyanVM 2015-03-18 10:49:02 -07:00
Terrence Cole
9a011f07d3 Bug 1144331 - Assert that gray buffering does not depend on isMarking; r=jonco, a=RyanVM 2015-03-18 10:48:36 -07:00
Brian Hackett
7def18a008 Bug 1143106 - Fix construction of singleton objects during parsing when unboxed objects are in use, r=jandem. 2015-03-18 08:42:30 -07:00
Nicolas B. Pierron
197f662e94 Bug 1137624 - Disable Array.join optimization. r=jandem 2015-03-18 15:12:47 +01:00
Boris Zbarsky
f2ca24a769 Bug 1144452. Print the global in JSObject::dump. r=waldo 2015-03-18 09:24:13 -04:00
Boris Zbarsky
87c391713d Bug 1144097. Fix yet another is<ScopeObject>() assert. r=shu 2015-03-18 09:24:13 -04:00
Boris Zbarsky
0bcff5358d Bug 1135963. Allow JS_InitializePropertiesFromCompatibleNativeObject to deal with objects that have different prototypes. r=bhackett 2015-03-18 09:24:13 -04:00
Jon Coppeard
003c7e8ce6 Bug 1125101 - Check budget in incremental compaction r=terrence 2015-02-26 12:35:59 +00:00
Jon Coppeard
371c95f018 Bug 1125101 - Incrementalise compacting GC by zones r=terrence 2015-02-26 12:35:59 +00:00
Hannes Verschore
3102282bf5 Bug 1139152 - IonMonkey: Fix compiler issues with DebugOnly on CLOSED TREE 2015-03-18 11:06:14 +01:00
Tooru Fujisawa
08010485eb Bug 1079919 - Part 4: Add Xray test for RegExp.prototype.toString. r=bholley 2015-03-18 18:22:05 +09:00
Tooru Fujisawa
c3d83c396c Bug 1079919 - Part 2: Make RegExp.prototype.toString to be a generic function. r=Waldo 2015-03-18 18:22:05 +09:00
Tooru Fujisawa
2cd1c1bfda Bug 1079919 - Part 1: Support RegExp in Xray. r=bholley 2015-03-18 18:22:05 +09:00
Tooru Fujisawa
678e5efa12 Bug 1079919 - Part 0: Add RegExp ClassSpec. r=bholley 2015-03-18 18:22:05 +09:00
Hannes Verschore
fd06aef531 Bug 1139152 - IonMonkey: Add dynamic output type checks for LIRs that use redefine, r=jandem 2015-03-18 10:08:39 +01:00
Hannes Verschore
0f79f391f7 Bug 1140890 - Make sure the first argument cannot bail in between negative zero removal and creating result in substraction, r=nbp 2015-03-18 10:08:37 +01:00
Sean Stangl
cc3302d68f Bug 1038839 - Use type information for alias analysis. r=jandem 2015-03-10 14:56:13 -07:00
Jon Coppeard
ecf5959478 Bug 1144108 - Fix debugger tests that are confused by GC zeal r=terrence 2015-03-17 16:07:40 +00:00
Lars T Hansen
076bd527ae Bug 1077014 - optimize atomics for effect. r=h4writer 2015-03-17 16:30:49 +01:00
Lars T Hansen
9a0ca03206 Bug 1077014 - MacroAssembler API, for MIPS. r=rankov 2015-03-17 16:30:49 +01:00
Lars T Hansen
901d117478 Bug 1077014 - MacroAssembler API. r=h4writer 2015-03-17 16:30:49 +01:00
Lars T Hansen
531a4cb2b6 Bug 1077014 - ARM assembler support for for-effect atomics. r=mjrosenb 2015-03-17 16:30:49 +01:00
Jon Coppeard
1393d74196 Bug 1143706 - Allow BaseShape's global to be null when tracing r=terrence 2015-03-17 10:22:36 +00:00
Tooru Fujisawa
8c67a6b560 Bug 1143512 - Remove unused declaration of regexp_flags. r=jandem 2015-03-17 18:49:46 +09:00
Nicholas Nethercote
bacf179c34 Bug 1142814 (attempt 2) - Optimize String.fromCharCode() when the number of args is small but > 1. r=jandem. 2015-03-12 17:19:48 -07:00
Wes Kocher
1109c5aa2c Backed out changeset 2693283b5d8b (bug 1142814) for bc1 orange 2015-03-16 17:45:45 -07:00
Nicholas Nethercote
1dfaa452f9 Bug 1142814 - Optimize String.fromCharCode() when the number of args is small but > 1. r=jandem.
This avoids an unnecessary malloc.

The patch also adds testing for String.fromCharCode() with 2--20 args.
2015-03-12 17:19:48 -07:00
Tooru Fujisawa
87a612be50 Bug 1143281 - Check argument type in StructType.prototype.addressOfField. r=jorendorff 2015-03-17 07:28:57 +09:00
Steve Fink
7f42402e1f Bug 1095290 - Make unlazified scripts same-compartment with their functions, r=bhackett 2015-03-16 15:13:28 -07:00
Steve Fink
3668d235de Bug 1139456 - Do not let compaction set the alloc threshold to unreasonably small sizes, r=terrence 2015-03-16 15:13:20 -07:00
Ryan VanderMeulen
6ee2b1e654 Backed out changeset df82a0b667bb (bug 1137180) for causing intermittent crashes. 2015-03-16 13:17:19 -04:00
Terrence Cole
24c51d7995 Bug 1141234 - Part 7: Reorder the allocator methods for clarity; r=sfink 2015-03-11 11:11:29 -07:00
Terrence Cole
1bdb13d442 Bug 1141234 - Part 6: Namespace the allocator into GCRuntime; r=sfink 2015-03-11 11:09:31 -07:00
Terrence Cole
e60db81ef1 Bug 1141234 - Part 5: Inline the one user of ShouldNurseryAllocate; r=sfink 2015-03-11 11:07:57 -07:00
Terrence Cole
cab33b9da9 Bug 1141234 - Part 4: Move off-thread object allocation above unimplementable operations; r=sfink 2015-03-11 11:07:38 -07:00
Terrence Cole
3d3cbbac4e Bug 1141234 - Part 3: Share the code to allocate a tenured thing; r=sfink 2015-03-11 11:07:23 -07:00
Terrence Cole
9884e19393 Bug 1141234 - Part 1: Abstract PossiblyFail into the OOM testing machinery; r=sfink 2015-03-11 11:06:20 -07:00
Benjamin Bouvier
edb542374d Bug 1135039: Apply swizzle type policy changes in Ion too; r=sunfish 2015-03-02 19:40:06 +01:00
Benjamin Bouvier
4680781909 Bug 1135039: Throw on non-int32 or out-of-bounds lanes arguments to swizzle/shuffle; r=sunfish 2015-03-05 11:55:10 +01:00
Benjamin Bouvier
23b43a745b Bug 1139473: File some metadata for the js/src/ subdirectory; r=jorendorff 2015-03-04 17:43:27 +01:00
ProgramFOX
2053b58af1 Bug 1141629 - SIMD: Clarify that reciprocal and reciprocalSqrt are approximations. r=bbouvier 2015-03-13 19:13:08 +01:00
ziyunfei
eccc9c947c Bug 1141392 - Disallow a line break between ArrowParameters and the arrow. r=jorendorff 2015-03-15 03:39:00 +01:00
Nick Fitzgerald
74c63f6406 Bug 1137844 - Part 4: Test the Debugger.Memory.prototype.onGarbageCollection hook; r=sfink 2015-03-13 13:03:00 +01:00
Nick Fitzgerald
bb6e8f8a91 Bug 1137844 - Part 3: Fire the Debugger.Memory.prototype.onGarbageCollection hook after GCs; r=sfink 2015-03-13 13:03:00 +01:00
Nick Fitzgerald
41b6a5b520 Bug 1137844 - Part 2: Add a Debugger.Memory.prototype.onGarbageCollection getter/setter pair. r=sfink 2015-03-13 13:03:00 +01:00
Nick Fitzgerald
05bb991f96 Bug 1137844 - Part 1: Make {get,set}HookImpl not rely on a Debugger instance in the 'this' slot; r=sfink 2015-03-13 13:03:00 +01:00
Nick Fitzgerald
8ee7407557 Bug 1137844 - Part 0 - Add docs for Debugger.Memory.prototype.onGarbageCollection; r=jimb 2015-03-13 13:02:00 +01:00
Brian Hackett
e27b4b458b Bug 1137180 - Allow unboxed objects to be extended with new properties, r=jandem. 2015-03-15 14:26:42 -06:00
Brian Hackett
8db502b52e Bug 1142331 - Don't optimize out scope chain slot in resume points for heavyweight functions, r=jandem. 2015-03-14 17:10:01 -06:00
Daniel Holbert
a0708d891d Bug 1143244: return false instead of nullptr, in failure case within js::XDRObjectLiteral(). r=bhackett 2015-03-13 23:00:02 -07:00
Boris Zbarsky
01bd9893ed Bug 805052 part 3. Remove parents from SpiderMonkey. r=waldo,terrence 2015-03-14 01:36:17 -04:00
Boris Zbarsky
242e34ce34 Bug 805052 part 2. Stop using the shape's parent to get the object's global. r=waldo 2015-03-14 01:36:17 -04:00
Boris Zbarsky
baeb003254 Bug 805052 part 1. Remove assertParentIs. r=waldo 2015-03-14 01:36:17 -04:00
Boris Zbarsky
757e459821 Bug 1142864. Remove the parent argument from NewObject. r=waldo 2015-03-14 01:36:17 -04:00
Boris Zbarsky
b4792beec6 Bug 1142865. Remove the parent argument from NewObjectWithGroup. r=waldo 2015-03-14 01:36:17 -04:00
Boris Zbarsky
6f764ffdc8 Bug 1142304. Remove the parent argument from NewObjectWithGivenTaggedProto. r=waldo 2015-03-14 01:36:17 -04:00
Boris Zbarsky
f3a09efea2 Bug 1142309. Remove the parent argument from NewObjectWithClassProto. r=waldo 2015-03-14 01:36:17 -04:00
Boris Zbarsky
920cc69599 Bug 1142859. Don't parent the object created by JS_DefineObject to the object we're defining on. r=waldo 2015-03-14 01:36:17 -04:00
Boris Zbarsky
9a97a106ed Bug 1142310 part 2. Stop parenting scripted functions created via CloneFunctionObject to non-globals. r=waldo 2015-03-14 01:36:17 -04:00
Boris Zbarsky
6b3b610909 Bug 1142310 part 1. Stop parenting scripted functions created via the NewFunction APIs to non-globals. r=waldo 2015-03-14 01:36:17 -04:00
Boris Zbarsky
f8e0ebdf55 Bug 1097987 part 7. Require callers of JS::Evaluate to either use the global as the scope or pass in an explicit scopechain. r=waldo 2015-03-14 01:36:16 -04:00
Boris Zbarsky
9bdcb642ba Bug 1097987 part 6. Require callers of JS_ExecuteScript to either use the global as the scope or pass in an explicit scopechain. r=waldo 2015-03-14 01:36:16 -04:00
Boris Zbarsky
5988272640 Bug 1097987 part 5. Change XPCShellImpl to use the scopechain version of JS_ExecuteScript as needed. r=bholley 2015-03-14 01:36:16 -04:00
Boris Zbarsky
24cd3ff0d2 Bug 1097987 part 4. Change mozJSSubScriptLoader to use the scopechain version of JS_ExecuteScript as needed. r=bholley 2015-03-14 01:36:16 -04:00
Boris Zbarsky
240af5e5cc Bug 1097987 part 2. Change JS shell's Run to always compile/execute the script in global scope instead of using its this object. r=waldo 2015-03-14 01:36:16 -04:00
Boris Zbarsky
bbc00c84e5 Bug 1097987 part 1. Change some JS shell function signatures to make it clearer that they are always working with globals, not arbitrary objects. r=waldo 2015-03-14 01:36:16 -04:00
Boris Zbarsky
30d63653b4 Bug 1142296. Remove the parent argument from NewObjectWithGivenProto. r=waldo 2015-03-14 01:36:16 -04:00
Nick Fitzgerald
90cb8a5687 Bug 1142338 - Debugger.Memory's census shouldn't use JS::ubi::Node::as<T>; r=sfink 2015-03-13 13:19:26 -07:00
Tom Tromey
257f39f5bb Bug 1135731 - fix encoding inconsistency in NS_NewXBLProtoImpl; r=mrbkap 2015-03-13 12:05:57 -07:00
Nicolas B. Pierron
448e2d5e89 Bug 1138391 - LazyLinkStub stops making a call and reuses the parent frame. r=h4writer 2015-03-13 16:48:16 +01:00
Nicolas B. Pierron
4f7d91bf63 Bug 1133389 - Fix FrameIter::matchCallee to consider all inner functions and not only lambdas. r=shu 2015-03-13 16:14:03 +01:00
Emanuel Hoogeveen
0361ec0342 Bug 1139552 - Convert js::gc::AllocKind to an enum class and eliminate non-AllocKind indexing. r=terrence 2015-03-13 02:13:00 +01:00
Dave Herman
04770e5ce3 Bug 913617 - Reflect.parse: rename ArrowExpression to ArrowFunctionExpression. r=jorendorff 2015-03-10 10:50:00 +01:00
Jason Orendorff
3c188fc686 Bug 1133081, part 5 - Remove non-asserting PropertyDescriptor accessors in favor of the new PropDesc-inspired asserting accessors. r=efaust.
value() can't assert hasValue() because too many places have plausible reasons for calling it on a PropertyDescriptor they basically know nothing about. One such place is CompartmentChecker::check(Handle<JSPropertyDescriptor>). Another is DefinePropertyByDescriptor. Maybe this will change with time.

In some cases we do things like `desc.hasWritable() && desc.writable() != existing_desc.writable()`. It is OK to write it this way, even though we have not checked existing_desc.hasWritable(), because in these cases we already know existingDesc is a complete property descriptor.
2015-02-15 06:18:30 -06:00
Jason Orendorff
11a89363d5 Bug 1133081, part 4 - Reimplement the remaining PropDesc methods and delete PropDesc. r=efaust. 2015-02-14 07:37:13 -06:00
Jason Orendorff
b7fa571188 Bug 1133081, part 3 - Switch from js::PropDesc to JSPropertyDescriptor for more odds and ends. r=efaust. 2015-02-13 19:08:21 -06:00
Jason Orendorff
1036fe7cc8 Bug 1133081, part 2 - Switch from js::PropDesc to JSPropertyDescriptor for js::StandardDefineProperty implementation. r=efaust. 2015-02-13 18:52:45 -06:00
Jason Orendorff
1918646051 Bug 1133081, part 1 - Switch from js::PropDesc to JSPropertyDescriptor for all users of js::StandardDefineProperty (mainly Object.defineProperty/Properties and the corresponding Debugger.Object methods). r=efaust. 2015-02-13 14:31:27 -06:00
Lars T Hansen
6aedb09220 Bug 1140084 - delete list of script counts in tail-recursive fashion. r=bhackett 2015-03-13 08:40:33 +01:00
Boris Zbarsky
05d907aac7 Bug 1142731 followup. Check isInterpreted() before we call environment(), because of the asmjs lambdas. r=waldo, I bet. 2015-03-12 22:47:52 -04:00
Boris Zbarsky
79e58e8dc1 Bug 1141905 part 4. Add some assertions about what enclosingScope can return for non-scope objects. r=waldo 2015-03-12 21:46:57 -04:00
Boris Zbarsky
917efd3acf Bug 1141905 part 3. Use CreateScopeObjectsForScopeChain in DebuggerFrame_evalWithBindings. r=shu 2015-03-12 21:46:57 -04:00
Boris Zbarsky
ef4a4809c8 Bug 1141905 part 2. Make the 5-arg version of CreateScopeObjectsForScopeChain non-static so it can be called from multiple files, and move it to a possibly-saner location. r=shu 2015-03-12 21:46:57 -04:00
Boris Zbarsky
e6ff53d1f2 Bug 1141905 part 1. Make it possible to CreateScopeObjectsForScopeChain with a given non-global scope chain terminator. r=shu 2015-03-12 21:46:57 -04:00
Boris Zbarsky
ec826ffca8 Bug 1142731. Make IsInternalFunctionObject work correctly again. r=waldo 2015-03-12 21:46:57 -04:00
Boris Zbarsky
98e16322f9 Bug 1142311 part 2. Rename the parent arg of NewScriptedFunction to enclosingDynamicScope, and make it optional. r=waldo 2015-03-12 21:46:57 -04:00
Boris Zbarsky
7a4012408f Bug 1142311 part 1. Stop parenting self-hosted objects to the intrinsics holder. r=waldo 2015-03-12 21:46:57 -04:00
Brian Hackett
95a7406bac Bug 1135897 - Use unboxed objects for JSON objects and constant literals embedded in scripts, r=jandem. 2015-03-12 17:09:21 -06:00
Jim Blandy
65e06a8238 Bug 1128603: Remove findReferences and the tests that use it. r=terrence 2015-03-12 14:08:49 -07:00
Luke Wagner
474e73cd2b Bug 1136331 - OdinMonkey: allow stdlib calls in heap expressions (r=bbouvier) 2015-02-24 14:11:37 -06:00
Ryan VanderMeulen
728d720894 Backed out changeset 94f1fc3d9ec8 (bug 1135897) for LSAN leaks.
CLOSED TREE
2015-03-12 15:02:08 -04:00