Commit Graph

50636 Commits

Author SHA1 Message Date
Till Schneidereit
36af475fe5 Bug 1198193 - Change all functions taking CallArgs to take const CallArgs& instead. r=Waldo
--HG--
extra : rebase_source : b7cd505c80b34d33d98e336490b117792030d9d5
2015-08-27 21:18:37 +02:00
Steve Fink
675ab5a390 Bug 1198826 - Increment (plain) gcNumber on all GCs, r=terrence
--HG--
extra : rebase_source : 9e34a1f5483b60f86daf3d558e4266ac9423052f
extra : source : 36e15aafbec5ecb2fdc3c3e4f62e4840cd77b022
2015-08-26 09:44:24 -07:00
Steve Fink
3bb6400000 Bug 1198826 - Rename obj parameter to buffer to improve readability, r=terrence
--HG--
extra : rebase_source : e9f023d7aee403d326a5c816cb363e038b006a65
2015-08-26 09:42:38 -07:00
Nick Fitzgerald
6c1a43618e Bug 1196634 - Part 4: Remove JS::ubi::Node::getCanonicalTypeName; r=sfink 2015-08-27 16:16:58 -07:00
Nick Fitzgerald
a621358f90 Bug 1196634 - Part 3: Use coarseType() instead of is<T> in census; r=sfink 2015-08-27 16:16:58 -07:00
Nick Fitzgerald
af148bc6a7 Bug 1196634 - Part 2: Serialize and deserialize coarseType; r=sfink 2015-08-27 16:16:58 -07:00
Nick Fitzgerald
ae6af42629 Bug 1196634 - Part 0: Define a JS::ubi::CoarseType enum; r=sfink
This commit defines the JS::ubi::CoarseType enum and a corresponding method
coarseType() on JS::ubi::Node base and concrete classes. It implements the
overrides for all concrete specializations whose referent does not belong to the
default Other type.
2015-08-27 16:16:57 -07:00
Eric Faust
6cf9ba3a66 Bug 1199172 - Only treat non-static constructor methods as the actual class constructor. (r=shu) 2015-08-27 15:27:07 -07:00
Nick Fitzgerald
791bfd6d0c Bug 1198980 - Make JS::ubi::*::identifier be uint64_t instead of uintptr_t. r=sfink 2015-08-27 09:17:00 -04:00
Nick Fitzgerald
2f4cac96c2 Bug 1196631 - Make JS::ubi::Node::size return 1 by default. r=sfink
The old default was zero, but one is a better default in a couple ways: (1)
there are no zero-sized things in C++ so one is closer to the truth, and (2) it
gives us an idea of what magnitude of space is consumed by node specializations
which don't have a JS::ubi::Node::size override yet.
2015-08-27 06:03:00 -04:00
Brian Hackett
4222112c0a Bug 1195545 - Add instruction reordering pass to IonMonkey, r=sunfish. 2015-08-27 10:33:34 -06:00
Brian Hackett
ddca0027ac Bug 1196579, bug 1196587, bug 1196589 - Fix some unboxed array bugs, r=jandem. 2015-08-27 10:28:28 -06:00
Ryan VanderMeulen
4ff4f84ce2 Merge inbound to m-c. a=merge 2015-08-27 11:43:16 -04:00
Nick Fitzgerald
2b64f31c2d Bug 1195866 - Make allocations log report whether an allocation was in the nursery; r=terrence 2015-08-27 04:35:23 -07:00
Hannes Verschore
41d87962b4 Bug 1198245 - IonMonkey: Lock helperthread before finishing ionbuilder, r=jandem 2015-08-26 10:57:35 +02:00
Yoshi Huang
e6070e9062 Bug 1165272 - Part 2: replace getNoAppCodebasePrincipal. r=bholley 2015-08-18 15:01:42 +08:00
Nick Fitzgerald
f64a2b8739 Bug 1197970 - Expose the GC cycle's number through Debugger.Memory's onGarbageCollection hook. r=sfink 2015-08-26 10:13:00 -04:00
Sean Stangl
f637436bfb Bug 1195590 - Fix treating saved frame bit as part of the frame type. r=djvj 2015-08-24 11:50:04 -07:00
Nicolas B. Pierron
ae83cdb0e3 Bug 1190446 - Update Coverage information in Baseline. r=jandem 2015-08-26 20:48:05 +02:00
Nick Fitzgerald
a2b0c4594a Bug 1139476 - Part 0: Add a takeCensus method to HeapSnapshot instances; r=sfink,bholley 2015-08-26 11:38:05 -07:00
Jan de Mooij
55cc983598 Bug 1183153 - Give generator function groups the correct builtin prototype. r=Waldo 2015-08-26 11:02:15 -04:00
Jon Coppeard
ed1d1f93d7 Bug 1198673 - Fix bug in parseModule() error handling r=jandem 2015-08-26 13:07:53 +01:00
Steve Fink
806aad159d Bug 1198549 - Switch from | to $ as the preferred separator token (due to operator|), r=me
--HG--
extra : rebase_source : 1d79d52cca072e8c2011e8a956ca86676e04b7db
2015-08-25 13:48:20 -07:00
Eric Faust
4228187034 Bug 1198453 - Make ES7 Exponentiation operator nightly only. (r=jorendorff) 2015-08-25 16:51:12 -07:00
Eric Faust
84431602a4 Bug 1185961 - Properly install home object on methods in classes in lazy scripts. (r=shu) 2015-08-19 11:19:46 -07:00
Kannan Vijayan
49759dae26 Bug 1167409 - 4/4 - Inititalize ScriptSourceObject even when off-main-thread compilation fails. r=smaug 2015-08-25 17:52:27 -04:00
Hannes Verschore
e85595fc30 Backed out changeset 3a5257ac933d (bug 1198245) for SM failures. 2015-08-25 23:26:55 +02:00
Hannes Verschore
87d0cd5e89 Bug 1198245 - IonMonkey: Lock helperthread before finishing ionbuilder, r=jandem 2015-08-25 22:49:07 +02:00
Bobby Holley
edfe287f26 Backed out 3 changesets (bug 1165272) for b2g sanity blocker. 2015-08-25 11:16:21 -07:00
Jan de Mooij
b38b9f338b Bug 889158 - Fix arrow function lexical arguments binding, allow rest + arguments. r=jorendorff
--HG--
rename : js/src/jit-test/tests/arguments/rest-disallow-arguments.js => js/src/jit-test/tests/arguments/rest-with-arguments.js
2015-08-25 19:37:09 +02:00
Terrence Cole
c44d4ebdcc Bug 1196210 - Fix an incomplete assertion in the nursery; r=jonco
--HG--
extra : rebase_source : f76bdbf091ae70f2da9874fc16deeca1eb800bcf
2015-08-24 11:00:29 -07:00
Jon Coppeard
d55fa6061d Bug 1198090 - Use AutoInitGCManagedObject when creating UnboxedLayout in TryConvertToUnboxedLayout() r=terrence 2015-08-25 17:01:43 +01:00
Nicolas B. Pierron
5c82cef2f8 Bug 1195263 - ARM: Instruction::extractCond asserts that the instruction has a condition flag. r=h4writer 2015-08-25 17:50:55 +02:00
Nicolas B. Pierron
05372316d7 Bug 1103108 part 4 - MIPS32: Remove unused ma_callJitNoPush. r=rankov 2015-08-25 17:50:55 +02:00
Nicolas B. Pierron
5c6fb611bc Bug 1103108 part 3 - ARM: Replace single use ma_callJitNoPush by its implementation. r=h4writer 2015-08-25 17:50:54 +02:00
Nicolas B. Pierron
a9f05902cd Bug 1103108 part 2 - MIPS32: Remove unused ma_callJit. r=rankov 2015-08-25 17:50:53 +02:00
Nicolas B. Pierron
bb647a226c Bug 1103108 part 1 - ARM: Remove unused ma_callJit. r=h4writer 2015-08-25 17:50:52 +02:00
Brian Hackett
995d029037 Bug 1198252 - Watch for objects with mismatched shapes when combining the groups of their properties, r=jandem. 2015-08-25 09:08:41 -06:00
Brian Hackett
fdf2fa7cc0 Bug 1193213 - Remove unnecessary NativeObject casts, r=jorendorff. 2015-08-25 09:02:49 -06:00
Brian Hackett
9c51bf3b2f Bug 1184388 - Don't try to reallocate inline elements buffer of unboxed arrays, r=jandem. 2015-08-25 08:41:50 -06:00
Jan de Mooij
a29424aea3 Bug 1195298 - Fix NewDenseArray intrinsic to work when the first argument is a double. r=till 2015-08-25 13:13:02 +02:00
Till Schneidereit
8614310b85 Bug 1070767 - Enable {Array, %TypedArray%}.prototype.includes in all builds. r=lth 2015-08-25 12:57:21 +02:00
Lars T Hansen
74bddf386f Bug 1198145 - guard calls to getInst(). r=me 2015-08-25 10:43:35 +02:00
Hannes Verschore
c536b7f1e8 Bug 1196648: IonMonkey - Don't run the lazy link stub for asmjs to jit fastpath, r=nbp 2015-08-25 10:38:01 +02:00
Makoto Kato
f3ebef7d41 Bug 1197681 - Remove MOZ_NTDDI_WIN7 from configure.in. r=mshal 2015-08-25 16:52:08 +09:00
Lars T Hansen
4c70040653 Bug 1192786 - add forgotten ifdeffery on CLOSED TREE. r=me 2015-08-25 08:39:10 +02:00
Lars T Hansen
057fb5a15a Bug 1192786 - support an installed printer, for profiling. r=nbp 2015-08-25 08:09:12 +02:00
Lars T Hansen
ed00523f8a Bug 1192786 - Hook ARM disassembler into IONFLAGS=codegen machinery. r=nbp 2015-08-25 08:09:09 +02:00
Kan-Ru Chen
4a1f512a13 Backed out 8 changesets (bug 1123237) CLOSED TREE
Backed out changeset 64692c772052 (bug 1123237)
Backed out changeset ed0f3a0186ad (bug 1123237)
Backed out changeset 2ad3b7f12a66 (bug 1123237)
Backed out changeset d069c69c234b (bug 1123237)
Backed out changeset d2c543173155 (bug 1123237)
Backed out changeset 3b8fb02e68ff (bug 1123237)
Backed out changeset 1c97e19f2f5d (bug 1123237)
Backed out changeset a80502c372f1 (bug 1123237)

--HG--
extra : commitid : L05R6SBqcU9
2015-08-25 12:42:01 +08:00
Kan-Ru Chen
53e50383fe Bug 1123237 - Part 5. Don't emit inline allocation when memory profiler enabled. r=terrence
Based on patch from Ting-Yuan Huang <laszio.bugzilla@gmail.com>
2015-08-25 12:06:41 +08:00
Kan-Ru Chen
95d1a2b19e Bug 1123237 - Part 4. Monitoring allocations and frees for ArrayBuffer. r=terrence,sfink
Based on patch from Ting-Yuan Huang <laszio.bugzilla@gmail.com>
2015-08-25 12:05:53 +08:00
Kan-Ru Chen
3b6ee3a50b Bug 1123237 - Part 3. Monitoring allocation and gc events in nursery and tenured heaps. r=terrence
Based on patch from Ting-Yuan Huang <laszio.bugzilla@gmail.com>
2015-08-25 12:05:52 +08:00
Kan-Ru Chen
f62780fc85 Bug 1123237 - Part 2. MemoryProfiler hooks in js engine. r=terrence
Based on patch from Ting-Yuan Huang <laszio.bugzilla@gmail.com>
2015-08-25 12:05:51 +08:00
Jeff Walden
9bb2991147 Bug 1196497 - Don't assert that the replacer continues to pass IsArray during JSON.stringify. (If the replacer was a revocable proxy to an array, revoking the proxy would make the replacer no longer IsArray.) r=evilpie 2015-08-21 21:09:07 -07:00
Jeff Walden
6796be71b7 Bug 1197097 - Don't use a context-wide cycle-detection mechanism for detecting cycles during JSON.stringify. This prevents nested (yet separate) JSON.stringify, and it causes that algorithm to be affected by specification-unrelated operations like toSource. r=jonco
--HG--
extra : rebase_source : 6a2f7174e79e4a52f77084e2a8d8172484422998
2015-08-21 03:59:28 -07:00
Brian Hackett
f1fc12d77b Bug 1196590 - Don't assume that objects without shapes are unboxed plain objects, r=jandem. 2015-08-24 10:30:51 -06:00
Nick Fitzgerald
de13686cc6 Bug 1194424 - Part 3: Implement a concrete JS::ubi::StackFrame specialization backed by a frame deserialized from a core dump; r=sfink 2015-08-24 09:29:44 -07:00
Jon Coppeard
2da8d82c86 Bug 930414 - Fix base class initialization in ModuleBox constructor r=me on a CLOSED TREE 2015-08-24 17:14:50 +01:00
Jon Coppeard
f6a493a1b1 Bug 930414 - Hook up module environements, alising everything at top level for now r=shu 2015-08-24 15:58:36 +01:00
Jon Coppeard
381c692f63 Bug 930414 - Add module scopes, using ModuleObject as the static scope and ModuleEnvironementObject as the dynamic scope r=shu 2015-08-24 15:58:36 +01:00
Jon Coppeard
a920d4b2e6 Bug 930414 - Add module fields relating to exports r=shu 2015-08-24 15:58:36 +01:00
Jon Coppeard
a62f1f731f Bug 930414 - Add module importEntries field r=shu 2015-08-24 15:58:35 +01:00
Jon Coppeard
5592c607f8 Bug 930414 - Add module requestedModules field r=shu 2015-08-24 15:58:35 +01:00
Jon Coppeard
f6b70ed745 Bug 930414 - Add initial bytecode emitter support for modules r=shu 2015-08-24 15:58:35 +01:00
Jon Coppeard
adf4b1ae87 Bug 930414 - Add ModuleObject and CompileModule() function r=shu 2015-08-24 15:58:35 +01:00
Hannes Verschore
c337c5963d Bug 1195588: IonMonkey - Actually convert number to double during recovering ToDouble, r=nbp
@@ -1093,20 +1097,28 @@ MToDouble::writeRecoverData(CompactBuffe
 }

 RToDouble::RToDouble(CompactBufferReader& reader)
 { }

 bool
 RToDouble::recover(JSContext* cx, SnapshotIterator& iter) const
 {
-    Value v = iter.read();
+    RootedValue v(cx, iter.read());
+    RootedValue result(cx);

     MOZ_ASSERT(!v.isObject());
-    iter.storeInstructionResult(v);
+    MOZ_ASSERT(!v.isSymbol());
+
+    double dbl;
+    if (!ToNumber(cx, v, &dbl))
+        return false;
+
+    result.setDouble(dbl);
+    iter.storeInstructionResult(result);
     return true;
 }

 bool
 MToFloat32::writeRecoverData(CompactBufferWriter& writer) const
 {
     MOZ_ASSERT(canRecoverOnBailout());
     writer.writeUnsigned(uint32_t(RInstruction::Recover_ToFloat32));
2015-08-21 17:40:04 +02:00
Yoshi Huang
de47f4b89f Bug 1165272 - Part 2: Replace getNoAppCodebasePrincipal. r=bholley 2015-08-24 01:18:00 -04:00
Heiher
4f76199fb4 Bug 1197665- IonMonkey: MIPS32: Fix build failure caused by Bug 1169214. r=h4writer 2015-08-23 20:15:00 -04:00
Heiher
60d6f34e82 Bug 1197665 - IonMonkey: MIPS32: Fix build failure caused by Bug 1171945. r=h4writer 2015-08-24 00:58:00 -04:00
Ted Clancy
4ea6153280 Bug 1172609 - Part 5: Add js::ResetTimeZone() function. r=waldo, r=ted 2015-06-15 00:33:02 -07:00
Jon Coppeard
94185c580b Bug 1195452 - Make UnboxedLayout::makeNativeGroup() handle OOM when propagating property types r=bhackett 2015-08-24 13:21:13 +01:00
Steve Fink
f94484fc9a Bug 1196027 - check the actual current marking mode instead of the permanent intention, r=terrence
--HG--
extra : rebase_source : 1a2da1602094596a9b3f6f16c3eb6f511cff29b7
extra : amend_source : c130055fc3110874fef7661019d751a1448cbde3
extra : source : 9ca39133a30af07bb6b27d5742b2c5865caa3b31
2015-08-20 10:10:42 -07:00
Steve Fink
11107cfc02 Bug 1197377 - Read callgraph.txt line by line to avoid string size limits, r=terrence
--HG--
extra : rebase_source : b4871bc26ae32c6f93c0321910b19ff7658408d2
extra : amend_source : a9f287c617a613b53ff551263870b6ed5a003e84
extra : source : 452eaaf88ba8383dbe70b7f48e80ffcf5ebd4c6e
2015-08-21 14:19:04 -07:00
Brian Hackett
4cf7515fca Bug 1184388 - Try to use uniform groups for multidimensional constant arrays and structures, r=jandem. 2015-08-21 16:19:27 -06:00
Steve Fink
e13bcc74b8 Bug 789594 - Implement DataView cloning, r=Waldo
--HG--
extra : commitid : 93XtQtgD0EJ
extra : rebase_source : 0ba61abb5262c30bb9506c392ac530ca79b942bf
2015-07-28 18:14:36 -07:00
Steve Fink
5d9fc0e800 Bug 789589 - Fix the ABO class hierarchy comment to be accurate, r=Waldo
--HG--
extra : commitid : Fcu1U4ww7I5
extra : rebase_source : 99f28cb8527888e47d4cdd37fc04c9aeff92348f
2015-07-28 18:13:16 -07:00
Steve Fink
713936e41b Bug 789589 - Implement JS_NewDataView, r=Waldo
--HG--
extra : commitid : b5iH1lEe6N
extra : rebase_source : 81579a6e32a33acb08850dd7b8d6d3b900e02b3b
2015-07-24 13:05:01 -07:00
Jon Coppeard
8586708ac6 Bug 1191236 - Remove extract() methods used by operation forwarding on rooting types, r=terrence
--HG--
extra : rebase_source : 932019cdc060285425e70e7df7c278d0bbdfba5b
2015-08-05 02:38:00 -07:00
Steve Fink
baac342cae Bug 1191236 - Fix UCS canonicalization, r=jonco
--HG--
extra : rebase_source : 5585e26c0de7c769f9e6a0565ae7e8575960f6d9
2015-08-17 17:05:45 -07:00
Steve Fink
aebf1a29a8 Bug 1196378 - Fix mismatched js_new/js_free in ShellPrincipals, r=fitzgen
--HG--
extra : rebase_source : 25da2c1181e1867ba94da07ac81e5a65a27cd978
2015-08-19 11:29:32 -07:00
Steve Fink
917fa3154c Bug 1196378 - js_delete should accept a const pointer like builtin delete, r=fitzgen
--HG--
extra : rebase_source : 8fc0aa9b48d3fd8a0921fc9a9b920e6fd473226f
2015-08-19 10:59:50 -07:00
Brian Hackett
314bac7460 Bug 1176451 - Optimize Array.concat when used on different types of boxed vs. unboxed arrays, r=jandem. 2015-08-21 11:49:50 -06:00
Brian Hackett
035dacc9eb Bug 1190733 - Test initializedLength() instead of length() during the fast path for reversing unboxed arrays, r=jandem. 2015-08-21 11:40:15 -06:00
Wes Kocher
32312efd4f Backed out changeset 1bf4bafdb70e (bug 1195588) for breaking hazard builds CLOSED TREE 2015-08-21 08:59:36 -07:00
Hannes Verschore
99a4941325 Bug 1195588: IonMonkey - Actually convert number to double during recovering ToDouble, r=nbp 2015-08-21 17:40:04 +02:00
Heiher
9b82aabef6 Bug 1195163 - IonMonkey: MIPS32: Fix boolValueToDouble and boolValueToFloat32. r=rankov
--HG--
extra : rebase_source : 239a9bcf573f231cc0df80302e87f4a302f152e2
2015-08-16 20:13:00 -04:00
Hannes Verschore
a10e2d05b8 Bug 1175976: IonMonkey - Part2: Get the UnaryArith stub working in ionmonkey, r=jandem 2015-08-21 10:14:24 +02:00
Hannes Verschore
a6e8869a63 Bug 1175976: IonMonkey - Part1: Move unaryArith from baseline to shared stub, r=jandem 2015-08-21 10:14:21 +02:00
Hannes Verschore
cb10c36dca Bug 1169214: IonMonkey - Part 3: Add the x64 shared stub helpers, r=jandem 2015-08-21 07:56:44 +02:00
Hannes Verschore
31fb4f7314 Bug 1169214: IonMonkey - Part 2: Add the x86 shared stub helpers, r=jandem 2015-08-21 07:56:43 +02:00
Hannes Verschore
def4bc8c55 Bug 1169214: IonMonkey - Part 1: Create Ion shared stub helpers, r=jandem 2015-08-21 07:56:41 +02:00
Steve Fink
683fec6f81 Bug 1195957 - Implement a Swap for Heap<T> that does not put temporaries on the stack, r=terrence
--HG--
extra : rebase_source : 12a82f83e9c7e6317fb2dc2a6d066ecf81beed05
2015-08-18 12:25:01 -07:00
Terrence Cole
4e2856a22c Bug 1194832 - Use a one element cache in the store buffer; r=jonco
--HG--
extra : rebase_source : 53008889e2d5f52fbe96fcbec49251ce87db5f7e
2015-08-18 09:17:13 -07:00
Jon Coppeard
bbf6845481 Bug 1183195 - Fix assertion at the start of InnerViewTable::sweepAfterMinorGC() r=sfink 2015-08-19 09:50:07 +01:00
Hannes Verschore
e8e1df926c Bug 1171945: IonMonkey - Part 6: Use binarystub in jsop_binary_arith, r=jandem 2015-08-19 15:15:57 +02:00
Hannes Verschore
bcce8e03e1 Bug 1171945: IonMonkey - Part 5: Make it possible to use BaselineDebugMode in ionmonkey context, r=jandem 2015-08-19 15:15:55 +02:00
Hannes Verschore
28cddc291c Bug 1171945: IonMonkey - Part 4: Make changes to BinaryArith to work with ionmonkey, r=jandem 2015-08-19 15:15:52 +02:00
Hannes Verschore
cf1a076929 Bug 1171945: IonMonkey - Part 3: Move BinaryArith from Baseline to Shared stubs, r=jandem 2015-08-19 15:15:49 +02:00
Hannes Verschore
bfb75abb29 Bug 1171945: IonMonkey - Part 2: Add platform in ionmonkey for sharedcaches, r=jandem 2015-08-19 15:15:46 +02:00
Shu-yu Guo
9852d8caa1 Bug 1179063 - Hook up FunctionBox directly to the JSFunction being parsed to avoid allocating extra static scopes. (r=efaust) 2015-08-19 18:42:56 -07:00