Граф коммитов

61293 Коммитов

Автор SHA1 Сообщение Дата
Nicholas Nethercote 72c884bf74 Bug 1384835 (part 3, attempt 2) - Remove the Preferences::Get*CString() variants that return nsAdoptingCString. r=froydnj.
--HG--
extra : rebase_source : d317b25be2ec21d1a60d25da3689e46cdce0b649
2017-07-31 14:28:48 +10:00
Ting-Yu Chou 54070eee06 Bug 1385181 - Alter HashTable::lookupForAdd() to remove a redundant copy when return. r=luke
MozReview-Commit-ID: 9XnlC0JXETX
2017-07-28 14:05:40 +08:00
André Bargull abbfb48e01 Bug 1383645 - Allow to inline UnsafeGetReservedSlot when the object is typed as MIRType::Value. r=jandem
--HG--
extra : rebase_source : add4c452e0a6c11c79a5667107db1dcdfa07de9a
extra : histedit_source : 4d8eab6953cca1ee91bf78a4a7aadb37aaacc73b
2017-07-28 13:01:01 -07:00
André Bargull c520c1cf95 Bug 1382656 - Don't search for multiple Unicode extension sequences in a single language tag. r=till
--HG--
extra : rebase_source : d87f8c9d284075ce9145e4a82649a808f75e8156
extra : histedit_source : 10a659cfae7fa8367e49aaa965a0fe54b8f686b1
2017-07-28 12:56:53 -07:00
André Bargull 73884d5df9 Bug 1379717 - Throw TypeError when accessing caller/arguments on accessor method. r=shu
--HG--
extra : rebase_source : 28f1ab202f1847dfa6bb761e93286580f9b439e7
extra : histedit_source : cef59956a2b3a392aca68a39d610bd292bb100ca
2017-07-28 12:55:48 -07:00
André Bargull a5ad559786 Bug 1384244 - Remove hasDynamicPrototype check from MaybeHasInterestingSymbolProperty because only proxies can have dynamic prototypes. r=jandem
And proxies are already filtered by the preceding obj->maybeHasInterestingSymbolProperty() call.

--HG--
extra : rebase_source : 4e1f5d1466758dd2f687542df063a50bcd620e61
extra : histedit_source : de9901ccbbe5c53f1690b9f4b1d36578b7b1f34d
2017-07-28 12:55:37 -07:00
André Bargull 1567f91a56 Bug 1382306 - Create async function wrapper when instantiating module functions. r=jonco
--HG--
extra : rebase_source : 7b6d30dbbdf5cdf798d793ed03969c97585860f8
extra : histedit_source : 536aece9fa182d1cf4912a5c9b819207b3ccdffc
2017-07-28 12:55:07 -07:00
Philip Chimento 0f65cb73fa Bug 1339931 - Add major version to make parallel installable. r=sfink
When backporting to esr52, the changes will need to be applied to
js/src/Makefile.in rather than js/src/build/Makefile.in.
2017-07-29 10:59:28 +01:00
Till Schneidereit d2099cf317 Bug 1272697 - Part 4: Add JSAPI functions for working with ReadableStream. r=shu,f=baku
This adds a ton of JSAPI functions for creating and querying the state of ReadableStreams, and support for creating ReadableStream instances whose source is supplied by the embedding.

MozReview-Commit-ID: 9uDWOazPaUI
2017-07-29 16:47:30 +02:00
Till Schneidereit 847290985c Bug 1272697 - Part 3: Implement ReadableStream and associated classes in the JS engine. r=shu
MozReview-Commit-ID: E4uux96ed2m
2017-07-29 16:47:26 +02:00
Till Schneidereit ab76cf2fd7 Bug 1272697 - Part 2: Add runtime pref to enable streams. r=jonco,baku
MozReview-Commit-ID: FJMAxbtD3Uy
2017-07-29 16:47:12 +02:00
Shu-yu Guo 1549296ac9 Bug 1367791 - Constrain Number.prototype.toFixed precision to be 0 <= p <= 100. (r=jorendorff)
Due to normative change in spec.
2017-07-28 17:43:17 -07:00
Marco Castelluccio 5e9eca95f5 Bug 1357517 - Remove Preferences.jsm usage from XPCOMUtils.jsm. r=kmag
--HG--
extra : rebase_source : f69e4b2e5b11d302546e73fa6f16c17b3bb68318
2017-07-28 23:04:47 +02:00
Bill McCloskey 7f587bde20 Bug 1384399 - Change meaning of js::SystemZoneAvailable to return false if the system zone is owned by the current context (r=bhackett)
MozReview-Commit-ID: L8FUk997x4s
2017-07-28 13:11:56 -07:00
Bill McCloskey fdfaf11df6 Bug 1384397 - Add API to request interrupt callback using CanWait mode (r=jandem)
MozReview-Commit-ID: E0S0my7Xdfk
2017-07-28 13:11:54 -07:00
Wes Kocher 5df77c43f9 Merge m-c to autoland, a=merge
MozReview-Commit-ID: IJRYyJu1sWm
2017-08-02 17:42:10 -07:00
Andrew McCreight 2cc510d9c2 Bug 1364566 - Enable lazy parsing for NonSyntactic scopes. r=shu+381259
MozReview-Commit-ID: 2mu1n2POlC7

--HG--
extra : rebase_source : 640c4ac4d110a4056e01bc7f653c21a1fba17074
2017-06-07 13:05:14 -07:00
Daisuke Akatsuka 3815728b9b Bug 1382137 - Part 4: add Gecko_CounterStyle_GetName and Gecko_CounterStyle_GetName which have a writable paramter into whitelist in analyzeHeapWrites.js. r=hiro
Both Gecko_CounterStyle_GetName and Gecko_CounterStyle_GetName in Servo binding
have a out parameter to write string to them.
We need to tell these functions as those have a safe argument, to ignore
analysis of heap write hazards.

MozReview-Commit-ID: AWG609vsXyu
2017-08-08 10:14:13 +09:00
Wes Kocher 623f36f0f8 Merge m-c to autoland, a=merge
MozReview-Commit-ID: CxCNV7W0utC
2017-08-07 15:26:40 -07:00
Masatoshi Kimura 990481538b Bug 1083476 - Add console warnings for JS1.7 legacy generators. r=arai
MozReview-Commit-ID: LnctQK4EEOM

--HG--
extra : rebase_source : a3598ce5a91ffb87e698c88604c32937306baf53
2017-08-06 18:48:39 +09:00
Masatoshi Kimura bcee28f124 Bug 1083470 - Disable E4X for-each in release. r=luke
MozReview-Commit-ID: 8rLq9GzvNrT

--HG--
extra : rebase_source : c8f0cf043d6f94e690c3492d1450b5cd37ffc35c
2017-08-06 17:15:26 +09:00
Sylvestre Ledru 4386202143 Bug 1387388 - Disable -Wimplicit-fallthrough when building jsdtoa.cpp (exists now with gcc 7) r=nbp
MozReview-Commit-ID: 7YuX7SMePOi

--HG--
extra : rebase_source : d35a56f2b453bcd6a2e65738d96606d11cd3028b
2017-08-04 13:12:58 +02:00
Sebastian Hengst 6389867b7c Backed out changeset 1d87b1dc4ce2 (bug 1272697) for failing mochitest test_interfaces.html for 'ByteLengthQueuingStrategy' and wpts, e.g. general.dedicatedworker.html. r=backout on a CLOSED TREE 2017-07-28 20:20:50 +02:00
Sebastian Hengst 2a076b4002 Backed out changeset 862ba8683d19 (bug 1272697) 2017-07-28 20:18:28 +02:00
Sebastian Hengst 08625237bc Backed out changeset 2693a863dabd (bug 1272697) 2017-07-28 20:18:21 +02:00
Till Schneidereit acef1159b4 Bug 1272697 - Part 4: Add JSAPI functions for working with ReadableStream. r=shu
This adds a ton of JSAPI functions for creating and querying the state of ReadableStreams, and support for creating ReadableStream instances whose source is supplied by the embedding.

MozReview-Commit-ID: 9uDWOazPaUI
2017-07-28 17:48:14 +02:00
Till Schneidereit 8b46f09d1c Bug 1272697 - Part 3: Implement ReadableStream and associated classes in the JS engine. r=shu
MozReview-Commit-ID: E4uux96ed2m
2017-07-28 17:48:14 +02:00
Till Schneidereit dec687b07c Bug 1272697 - Part 2: Add runtime pref to enable streams. r=baku,jonco
MozReview-Commit-ID: 5OSxbcd3jQB
2017-07-28 17:48:12 +02:00
Carsten "Tomcat" Book 139661e8e4 Merge mozilla-central to mozilla-inbound 2017-07-28 15:25:58 +02:00
Carsten "Tomcat" Book 892bedca2e merge mozilla-inbound to mozilla-central a=merge 2017-07-28 15:24:39 +02:00
Sylvestre Ledru d48480a951 Bug 1384848 - Remove dead code in XPCConvert.cpp r=mrbkap
MozReview-Commit-ID: EncsNyW5Qxx
2017-07-28 14:05:27 +02:00
Jan de Mooij ea5d324e74 Backed out changeset 1455629cb663 (bug 1384042) for regressing AngularJS perf.
--HG--
extra : rebase_source : e165fd16182dcf5a72133f7afb86069a60bfbec9
2017-07-27 16:36:57 +02:00
Sebastian Hengst 744a0a216b Backed out changeset ef5feef07bed (bug 1384835) 2017-07-28 10:29:24 +02:00
Sebastian Hengst 9077ac8886 Backed out changeset a57d8f30d1bf (bug 1383982) for build bustage at nsGlobalWindow.cpp:13826: 'class nsWindowSizes' has no member named 'mMallocSizeOf'. r=backout 2017-07-28 09:50:48 +02:00
Nicholas Nethercote 5c3abe8aab Bug 1383982 - Introduce a general mechanism for measuring memory usage of graph-like structures. r=erahm.
All the SizeOf{In,Ex}cludingThis() functions take a MallocSizeOf function
which measures memory blocks. This patch introduces a new type, SizeOfState,
which includes a MallocSizeOf function *and* a table of already-measured
pointers, called SeenPtrs. This gives us a general mechanism to measure
graph-like data structures, by recording which nodes have already been
measured. (This approach is used in a number of existing reporters, but not in
a uniform fashion.)

The patch also converts the window memory reporting to use SizeOfState in a lot
of places, all the way through to the measurement of Elements. This is a
precursor for bug 1383977 which will measure Stylo elements, which involve
Arcs.

The patch also converts the existing mAlreadyMeasuredOrphanTrees table in the
OrphanReporter to use the new mechanism.

--HG--
extra : rebase_source : 2c23285f8b6c3b667560a9d14014efc4633aed51
2017-07-28 15:03:44 +10:00
Tooru Fujisawa 9d87992821 Bug 1384299 - Provide better error message when errornous syntax possibly match "yield SOMETHING" outside generators. r=till 2017-07-27 23:17:09 +09:00
Nicholas Nethercote 200d8ec18b Bug 1384835 (part 3) - Remove the Preferences::Get*CString() variants that return nsAdoptingCString. r=froydnj.
This is similar like the previous patch, but for the 8-bit string variants.
Also, it changes assignment to Adopt() in GetCString() and GetDefaultCString()
to avoid an extra copy.

--HG--
extra : rebase_source : eba805c3a7b809d5ccd6e853b1c9010db9477667
2017-07-27 16:45:10 +10:00
Wes Kocher 7a65251f71 Merge m-c to autoland, a=merge
MozReview-Commit-ID: KvG6hKUwF8c
2017-07-27 16:33:25 -07:00
Mike Hommey eafa227d8d Bug 1359912 - Add -z relro linker flags. r=gps
--HG--
extra : rebase_source : ae42e299d59cc139503c411e663cc81b18ff4177
2017-07-26 07:12:59 +09:00
Nicholas Nethercote 49eb219ff5 Bug 1383982 (attempt 2) - Introduce a general mechanism for measuring memory usage of graph-like structures. r=erahm.
--HG--
extra : rebase_source : 7075f9570a4262158351ce9ac3ca8360ea4d5394
2017-07-28 20:10:04 +10:00
Jon Coppeard 3075bc5440 Bug 1384885 - Do gray unmarking of cross zone edges as soon as they are found r=sfink 2017-07-28 11:06:40 +01:00
Tom Schuster b1db7228f4 Bug 1383646 - Optimize x.indexOf(x) for AngularJS. r=anba 2017-07-28 11:25:38 +02:00
Sylvestre Ledru a4376d5dd4 Bug 1384848 - Remove dead code in XPCConvert.cpp r=mrbkap
MozReview-Commit-ID: D6kCUtqfIwo

--HG--
extra : rebase_source : 539ce1a925fa42b74007189708287ee74324261a
2017-07-27 09:43:06 +02:00
André Bargull dab06faa1f Bug 1368978 - Skip non-initialized elements when deleting a property range in Array.prototype.splice. r=jandem 2017-07-27 04:37:43 -07:00
Jim Blandy 520ce8912f Bug 1380498 - Add isGeneratorFunction and isAsyncFunction to Debugger.Script and Debugger.Object. r=tromey 2017-07-18 17:51:44 -07:00
Julian Seward 408d24da56 Bug 1382563 - Remove ns*String::AssignWithConversion. r=erahm.
This patch replaces four functions of the name AssignWithConversion which
are essentially wrappers around CopyASCIItoUTF16 and LossyCopyUTF16toASCII
with direct calls to the latter two functions.  The replaced functions are:

  void nsCString::AssignWithConversion( const nsAString& aData )
  void nsString::AssignWithConversion( const nsACString& aData )

  void nsTString_CharT::AssignWithConversion(
                            const incompatible_char_type* aData,
                            int32_t aLength = -1);

The last of the three exists inside the double-included nsTString* world and
so describes two functions, giving four in total.

This has two advantages:

* it removes code

* at the call points, it makes clear (from the replacement name) which
  conversion is being carried out.  The generic name "AssignWithConversion"
  doesn't make that obvious -- one had to infer it from the types.

The patch also removes two commented out lines from
editor/composer/nsComposerCommands.cpp, that appear to be related.  They are
at top level, where they would never have compiled.  They look like
leftovers from some previous change.

--HG--
extra : rebase_source : fb47bf450771c3c9ee3341dd14520f5da69ec4f5
2017-07-24 19:23:52 +02:00
Jon Coppeard afbbfaffc3 Bug 1384550 - Skip atoms collection if it's no longer possible r=sfink 2017-07-27 18:31:07 +01:00
Ted Campbell fb86f05093 Bug 1383972 - [Ion] Fix allocation error with too many MPhis. r=nbp
MozReview-Commit-ID: GtzUQuUvpam

--HG--
extra : rebase_source : dd67a8ef6cc2df5e166be1eb3ea01840402164b3
2017-07-26 17:08:28 -04:00
Carsten "Tomcat" Book d360d49d2a merge mozilla-inbound to mozilla-central a=merge 2017-07-27 10:57:25 +02:00
Jim Blandy 7944af2cd7 Bug 1382258 - Handle async functions properly in Debugger API. r=tromey
An async function or generator is represented by a native function wrapped
around a scripted function. In order to avoid treating async functions as if
they were opaque native functions, Debugger must explicitly look through these
wrappers to find the scripted function inside.
2017-07-25 10:48:28 -07:00
Wes Kocher 512f32055e Backed out changeset adb09e2d7a30 (bug 1359912) for breaking linux noopt debug builds a=backout
MozReview-Commit-ID: E1treEAWecM
2017-07-26 15:30:17 -07:00
Mike Hommey 0f1ddd55b2 Bug 1384418 - Remove gcc entries from tooltool manifests. r=gps
--HG--
extra : rebase_source : 815c57f65ee9a9954d11ac890fb6e0ba56f1842c
2017-07-26 15:28:29 +09:00
Mike Hommey b9fc5a46aa Bug 1359912 - Add -z relro linker flags. r=gps
--HG--
extra : rebase_source : ae42e299d59cc139503c411e663cc81b18ff4177
2017-07-26 07:12:59 +09:00
Bevis Tseng a7505864a8 Bug 1378930 - Part 2: Remove the aName parameter from SchedulerGroup/DocGroup/DispatcherTrait. r=billm
--HG--
extra : rebase_source : 11319e568a51d16754a6a9990f76c35c86c2bda7
2017-07-26 16:13:35 +08:00
Sean Stangl 43fc02b967 Bug 1384318 - Inline native check for emitMegamorphicLoadSlot variants. r=jandem 2017-07-25 15:17:00 -04:00
Emanuel Hoogeveen c879c5938d Bug 1342023 - Part 2: Stop using PageProtectingVector in AssemblerBuffer. r=jandem 2017-07-26 08:54:00 -04:00
Emanuel Hoogeveen 9f2123853d Bug 1342023 - Part 1: Remove ProtectedReallocPolicy from PageProtectingVector. r=jandem 2017-07-26 08:53:00 -04:00
Luke Wagner 898bdba0b5 Bug 1351488 - Baldr: change JS::WasmModule interface to separate bytecode from compiled code (r=lth)
MozReview-Commit-ID: 9PboJiP8BMM

--HG--
extra : rebase_source : dfcfb59c645b4c4877c99fe4ed68678449c1603a
2017-07-26 11:00:39 -05:00
Jon Coppeard ef3ea340a5 Bug 1384047 - Relax assertion that zones are empty when they are deleted r=jandem 2017-07-27 11:09:53 +01:00
Kartikaya Gupta ba4b3b9101 Bug 1384233 - Remove SizePrintfMacros.h. r=froydnj
We have a minimum requirement of VS 2015 for Windows builds, which supports
the z length modifier for format specifiers. So we don't need SizePrintfMacros.h
any more, and can just use %zu and friends directly everywhere.

MozReview-Commit-ID: 6s78RvPFMzv

--HG--
extra : rebase_source : 009ea39eb4dac1c927aa03e4f97d8ab673de8a0e
2017-07-26 16:03:57 -04:00
Carsten "Tomcat" Book 198430bca2 merge mozilla-inbound to mozilla-central a=merge 2017-07-26 11:11:40 +02:00
Nicolas B. Pierron 13c6c8058f Bug 1375435 - Clear the GetPropertyCache prior resume-point at the end of IonBuilder build functions. r=jandem
--HG--
extra : source : a3a834899c7335e179ad77d0b48b9ed6df0a231a
2017-07-25 14:49:59 -04:00
Ryan VanderMeulen 6cc7f170de Backed out changeset a3a834899c73 (bug 1375435) for making too-long-array-splice.js permatimeout on SM asan builds. 2017-07-25 23:27:04 -04:00
Wes Kocher f19f28adfd Merge m-c to autoland, a=merge
MozReview-Commit-ID: F1X8wKqbkg
2017-07-25 19:16:09 -07:00
Wes Kocher 65bbd0525a Merge inbound to central, a=merge
MozReview-Commit-ID: E4oXfAM1mtd
2017-07-25 19:04:37 -07:00
Andrew McCreight 35f516cba7 Bug 1383303 - Support void returns from VM functions. r=jandem
MozReview-Commit-ID: JBPQ9aTqHAH

--HG--
extra : rebase_source : 985a61492b29cd2701bbeff9a081c2034cd66dd7
2017-07-21 13:20:44 -07:00
Andrew McCreight 88d9fadf79 Bug 1383174 - Make GetNonSyntacticGlobalThis return void. r=jandem
This method always returns true.

Also, get rid of the unused return statement at the end of the
method. The loop is a while(true) and it has no break statements.

MozReview-Commit-ID: 5hxfSkq6ZUD

--HG--
extra : rebase_source : 9caa8e84d487a44aa10dd73a9266845bd5cda98f
2017-07-21 12:36:40 -07:00
Kannan Vijayan c3b765ee0b Bug 1366375 - Add CacheIR stub for optimizing calls to array_push. r=jandem 2017-07-25 11:28:38 -04:00
Jan de Mooij 0fd607ec1b Bug 1383591 - Don't use |current| block in OutOfLineStoreElementHole code. r=nbp 2017-07-25 17:09:08 +02:00
Sebastian Hengst 8afce0c191 Backed out changeset 75d0af6c7c49 (bug 1368454) for failing named-yield-spread-obj.js after asserting !type.isSingleton() at ObjectGroup.cpp:792. r=backout 2017-07-25 16:30:17 +02:00
Till Schneidereit 7f4b13656d Bug 1368454 - Optimize js::CreateIterResultObject by using ObjectGroup::newPlainObject instead of manually creating the object and defining its properties. r=jandem
This should improve performance of creating the object and TI for code using iteration result objects.

MozReview-Commit-ID: 2QGqFs7V3uH
2017-07-25 16:01:41 +02:00
Jan de Mooij deb7d25aa4 Bug 1383343 part 2 - Add a cache for Function.prototype.toString. r=anba 2017-07-25 14:58:17 +02:00
Jan de Mooij 09e17362ed Bug 1383343 part 1 - Avoid StringBuffer overhead in FunctionToString in the common case. r=anba 2017-07-25 14:55:06 +02:00
Jan de Mooij 7e5724db61 Bug 1383775 - Clean up function toString/toSource code, remove remnants of source decompiler. r=anba 2017-07-25 13:22:11 +02:00
Jon Coppeard 27b31261f4 Bug 1374797 - Fix logic around triggering atoms GCs r=sfink 2017-07-25 11:28:41 +01:00
Tom Tromey adb3d74ff5 Bug 1383157 - change pn_type to a ParseNodeKind; r=jimb
MozReview-Commit-ID: 3woMGwYs3wY

--HG--
extra : rebase_source : 5bd7fc25a4cbfbc288ce19650831b484757689ed
2017-07-21 11:07:54 -06:00
Paul Bone 70b304d94b Bug 1380768 (part 2) - Add a pref for nursery size, r=sfink. 2017-07-21 14:34:46 +10:00
Paul Bone 07ea7264d8 Bug 1380768 (part 1) - Update comments to reflect API changes and a changed, r=sfink. 2017-07-21 15:56:11 +10:00
Kris Maglione cd5c5d6f7f Bug 1383215: Part 5 - Update tests that relied on loading the same JSM from multiple URLs.
MozReview-Commit-ID: KEXGiMrauH7

--HG--
extra : rebase_source : c1b5a1e22c00bdc42cc7cdfae2f4718248c7965d
extra : histedit_source : 968e9daffc7505853aac4b892178f27c3386aec1
2017-07-21 18:01:42 -07:00
Kris Maglione 0fefc0e8c0 Bug 1383215: Part 4 - Use location string as key in modules map. r=mccr8
Using the unmolested module location string as the cache key removes a huge
chunk of overhead when loading cached modules.

This also ensures that multiple URLs are not used to load the same module,
which would result in it being loaded more than once in the new regime

MozReview-Commit-ID: BAWoOJQSTc1

--HG--
extra : rebase_source : e5b295a498caf76e60efec4d174e558e9e55d77b
extra : histedit_source : dd683966b30090b5702264c2903e6050be0e4137
2017-07-24 20:32:42 -07:00
Kris Maglione 5e494303a2 Bug 1383215: Part 3 - Use scache::ResolveURI to resolve module URIs. r=mccr8
Since we now usually load modules from one of the startup caches, we usually
have no need to ever actually create a channel in order to load them.
Resolving the URIs directly is much cheaper in the normal case.

MozReview-Commit-ID: 8W8RMHRnyBa

--HG--
extra : rebase_source : 073ae92c3dc53e86084c1daa1ccfe720ade634c6
extra : histedit_source : cf6cc2b025a839e39aa48bf412ee3a273b549bbe
2017-07-21 15:42:38 -07:00
Kris Maglione 8f6455242f Bug 1383215: Part 1 - Don't resolve module URIs to files when already cached. r=mccr8
MozReview-Commit-ID: KBhXhcJkRjp

--HG--
extra : rebase_source : f5d9852dfa0bbda11d7ceee080bcde7e779c6312
extra : histedit_source : 151752f049ff9e6b2b73de51cbcef0d1d4f31906
2017-07-21 15:11:02 -07:00
Yoshi Huang 7036b3761f Bug 1382531 - Part 1: rewrite crashtest for data: URI is unique opaque origin. r=smaug 2017-07-25 09:56:02 +08:00
Wes Kocher fd09155f06 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 418vKEKrk3n
2017-07-24 18:10:56 -07:00
Wes Kocher 2673406be5 Merge inbound to central, a=merge
MozReview-Commit-ID: 1oTeP8uycV2
2017-07-24 18:06:39 -07:00
Brian Hackett 5914f8b520 Bug 1349924 - Try to specialize property loads to specific function objects, r=jandem.
--HG--
extra : rebase_source : 1bc1d41304bdc5083e4546995c0e7d4fcd52f977
2017-07-24 14:01:49 -06:00
Steve Fink 78befcf04b Bug 1376842 - Update gdb support code to new wasm SIGSEGV handler, and some other updates, r=tromey
DONTBUILD; this changes no compiled code and is only used when debugging.

--HG--
extra : rebase_source : 4942c1d0c19e4ba6bfdfa3b5d5ff263a64e01822
2017-07-24 17:04:22 -07:00
Jan de Mooij f33379a262 Bug 1368362 - Use setSlotWithType instead of setSlot in InitGlobalLexicalOperation. r=shu
--HG--
extra : amend_source : 7dc591f4c43ebc5ff5fe9d3c4f216a2ac9b2dd6e
2017-07-24 18:41:12 -04:00
Tom Tromey 1ac9609130 Bug 1383155 - remove redundant casts of SN_TYPE; r=jimb
MozReview-Commit-ID: 8hwj36YwAxz

--HG--
extra : rebase_source : f6c1537f6566b3e1aa732718103b21863f15c480
2017-07-21 08:13:19 -06:00
Georg Fritzsche 09d533dae9 Bug 1366294 - Part 1 - Remove base::StatisticsRecorder. r=chutten
The Chromium IPC histogram code used the StatisticsRecorder object for storage.
This is keyed by histogram name, which doesn't match our storage reality anymore.
Instead we use a name to refer to a set of histogram instances that record data from different processes, as well as separating session and subsession data.
Consequently we need to rewrite this storage, which means StatisticsRecorder is not used anymore.

MozReview-Commit-ID: 1LC7YubpKaD
2017-07-24 09:52:26 -04:00
Brian Hackett 36410ccf0f Bug 1370349 - Allow relinquishing access to zone groups when yielding (r=jandem)
MozReview-Commit-ID: F3Yu689WnlL
2017-07-25 19:50:16 -07:00
Brian Hackett e67cd26710 Bug 1373755 - Support profiling of cooperative threads (r=jandem)
MozReview-Commit-ID: E8thu8SuCYv
2017-07-25 19:48:33 -07:00
Wes Kocher 1c6b33b69a Merge m-c to inbound, a=merge
MozReview-Commit-ID: AwACQvl2e5g

--HG--
extra : rebase_source : e70812f9a96acf1d0747cb7ea57afa1e2152283b
2017-07-25 19:09:39 -07:00
Kris Maglione 09fd6d1778 Bug 1382329: Part 4 - Hold mMonitor while accessing scripts in the write thread. r=erahm
MozReview-Commit-ID: 66se8G27sqQ

--HG--
extra : rebase_source : 4fc09a04b4ebee937f614f9f271404ca20ab2c01
2017-07-19 14:16:56 -07:00
Kris Maglione f4d43b3b71 Bug 1382329: Part 3 - Wait for pending parse tasks to finish before freeing scripts. r=erahm,nbp
Off-thread parse tasks depend on the memory allocated by the main-thread
script preloader, so that memory needs to be kept alive until they finish. In
normal use cases, this is guaranteed, but when the browser shuts down very
quickly (as sometimes happens in tests), or we invalidate the startup caches
in the middle of the startup process, they can sometimes be freed too early.

MozReview-Commit-ID: GQmkVbWgTH9

--HG--
extra : rebase_source : 523fb559f3d71f16be11ae275ab1f6ea3900eff8
2017-07-25 15:23:12 -07:00
Kris Maglione d3ebec307a Bug 1382329: Part 2 - Eagerly encode scripts for the startup cache. r=erahm,nbp
MozReview-Commit-ID: JqCqQZ2rO2z

--HG--
extra : rebase_source : 14874cae551f10f091461c9e9b1d9a48c99afc2b
2017-07-19 12:44:17 -07:00
Kris Maglione 4c48c5dab8 Bug 1382329: Part 1 - Enable lazy source whenever compiling for the preloader. r=mccr8,nbp
In general, we always want to compile with lazy source whenever we intend to
store code in the startup bytecode cache. Currently, we only do so when the
main StartupCache is available (which is only in the parent process), even if
we'll be storing code in the ScriptPreloader cache.

The main side-effect of this is that scripts which are used in a content
process do not use lazy source, but *do* use lazy parsing. And since we need
to clone pre-loaded scripts into their target compartment before executing, we
end up eagerly compiling those lazy functions on the main thread as soon as we
execute the script, in order to clone them. And this causes two side-effects
of its own:

1) It's terrible for startup performance.

2) It creates new scope chains which didn't exist when the clone began, and
which are likely responsible for bug 1367896.

MozReview-Commit-ID: 6lZLb68zitp

--HG--
extra : rebase_source : 2f2bc11d0123fd7e14c2a5e716a764e7ab8ded46
2017-07-19 11:57:18 -07:00
Carsten "Tomcat" Book 2023b2d8e5 Merge mozilla-central to inbound 2017-07-24 14:59:06 +02:00
Jon Coppeard 6063f3db71 Bug 1366340 - Delete parsing zones immediately after their contents are merged r=sfink 2017-07-24 10:42:50 +01:00
Jon Coppeard 4266b7c35e Bug 1382431 - Only record malloc trigger stats if a GC was triggered r=sfink 2017-07-24 10:42:48 +01:00
Sean Stangl 3ea39fbf96 Bug 1308193 - Reorganize code that looks like it could return a stack address. r=nbp 2017-07-21 14:52:00 -04:00
Jason Orendorff cd310bafca Bug 1382016 - Fix autospider.sh nonunified on Mac. r=sfink
--HG--
extra : rebase_source : ac9f436dc6086477d0e5a8feab40110654da98f7
2017-07-18 17:15:24 -05:00
Brian Hackett 4736d3662e Bug 1383467 - Only cancel Ion compilations that use nursery pointers when performing a minor GC, r=jonco.
--HG--
extra : rebase_source : 9032ca56a38b2be96bc2cc5dfb6a0163a54b06c3
2017-07-24 07:34:40 -06:00
Florian Quèze d31ab0dd40 Bug 1381853 - Make defineLazyScriptGetter support lazy loading scripts exposing several symbols to the global scope, r=mconley,Mossop. 2017-07-23 00:17:56 +02:00
Florian Quèze 892a7dff17 Bug 1381853 - add defineLazyScriptGetter on XPCOMUtils.jsm, r=mconley. 2017-07-23 00:17:54 +02:00
Jan de Mooij 6cc7401337 Bug 1382973 part 8 - Remove BytecodeAnalysis from IonBuilder and ControlFlowGenerator. r=nbp 2017-07-22 14:31:45 +02:00
Jan de Mooij a756f3250a Bug 1382973 part 7 - Change BytecodeAnalysis to mark code after try-catch as reachable to simplify Ion code. r=nbp 2017-07-22 14:31:13 +02:00
Jan de Mooij 15ec672035 Bug 1382973 part 6 - Remove BytecodeAnalysis::hasTryFinally(). r=nbp 2017-07-22 14:24:29 +02:00
Jan de Mooij 43ea58d683 Bug 1382973 part 5 - Remove BytecodeAnalysis::hasSetArg(). r=nbp 2017-07-22 14:24:05 +02:00
Jan de Mooij 5e7ebbbe5b Bug 1382973 part 4 - Cache the BytecodeAnalysis usesEnvironmentChain flag on the BaselineScript. r=nbp 2017-07-22 14:23:30 +02:00
Jan de Mooij 5bb4de30f5 Bug 1382973 part 3 - Add IonBuilder::usesEnvironmentChain() helper function. r=nbp 2017-07-22 14:22:55 +02:00
Jan de Mooij fcbb532c3e Bug 1382973 part 2 - Eliminate some BytecodeAnalysis::maybeInfo checks in IonBuilder. r=nbp 2017-07-22 14:21:52 +02:00
Jan de Mooij e2a6ce0202 Bug 1382973 part 1 - Don't use BytecodeAnalysis to compute stack depths in Ion. r=nbp 2017-07-22 14:21:25 +02:00
Shu-yu Guo 32c821d11e Bug 1377016 - Take both with-wrapped and unwrapped enclosing environments when getting non-syntactic lexical environments. (r=jorendorff) 2017-07-22 12:45:26 +02:00
Sebastian Hengst f16a7f8371 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4EWdTlEncz7
2017-07-22 11:38:42 +02:00
Wes Kocher d45eb771f0 Merge m-c to inbound, a=merge
MozReview-Commit-ID: Ah48RzFU8Mt
2017-07-21 18:20:46 -07:00
Wes Kocher 051dc17e6c Merge inbound to central, a=merge CLOSED TREE
MozReview-Commit-ID: GYc8r8gnS0j
2017-07-21 18:12:55 -07:00
Ted Campbell d7d599bf4a Bug 1383206 - Fix format string for in GC slice statistics. r=sfink
MozReview-Commit-ID: 7eLrYNtb4jv

--HG--
extra : rebase_source : da1e37628a8056f16a025443869792dc9f217e83
2017-07-21 14:46:47 -04:00
Ryan VanderMeulen f4e3a91992 Merge m-c to inbound. a=merge 2017-07-21 09:40:28 -04:00
Sebastian Hengst 367f0ac5a2 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: IWRTFZdtzaE
2017-07-21 12:56:44 +02:00
Kris Maglione 2ed607e9ac Bug 1382904: Optimize XPCOMUtils.generateQI. r=florian
XPCOMUtils.generateQI is called a lot, and the current implementation is
especially inefficient. It relies on calling the stringification slow path
twice for each interface ID, which begins to add up fast given how often it's
called.

MozReview-Commit-ID: 2O87wBVMA2G

--HG--
extra : rebase_source : b3d43fbe77990e82702491a58d59c4e439d3d2f8
2017-07-20 18:38:14 -07:00
Wes Kocher 61354cf6c0 Merge m-c to autoland, a=merge CLOSED TREE
MozReview-Commit-ID: 9pPsy8McMun
2017-07-21 18:18:35 -07:00
Sylvestre Ledru 7c0ae251cd Bug 1381253 - Remove redundant control flow declarations rs=ehsan
MozReview-Commit-ID: FFxP4aMCbOL

--HG--
extra : amend_source : 3aec108430b11048f47ffe19d5da7ac5034770a9
2017-07-15 19:03:04 +02:00
Brian Hackett a2b14f72a0 Bug 1355109 - Add IC for property reads on xrays, r=jandem,bz.
--HG--
extra : rebase_source : bc62ebf7f9c6fc006e95ede93087370ad7120303
2017-07-21 07:49:53 -07:00
Ehsan Akhgari 8f4879f93e Bug 1382745 - Improve the hashing of StackShape, especially on 64-bit systems; r=jandem 2017-07-21 10:40:01 -04:00
Christoph Kerschbaumer a34dfc464b Bug 1382815 - Convert more tests within js/xpconnect to comply with new data: URI inheritance model. r=smaug 2017-07-21 10:28:47 +02:00
Mike Hommey 09db7d4793 Bug 1382564 - Use the information from bug 1374940 with `mach artifact toolchain`. r=gps
Bug 1374940 adds a MOZ_TOOLCHAINS environment variable with a list of
path@task-id strings, where task-id is corresponding to the (possibly
optimized) toolchain job, and path corresponding to the
toolchain-artifact defined for that toolchain job.

We want to use that to pull artifacts instead of tooltool packages.

--HG--
extra : rebase_source : 277daa2c83d6d197975cb4ef36ee131176afa992
2017-06-21 15:18:33 +09:00
Nicolas B. Pierron d38995b912 Bug 1375435 - Clear the GetPropertyCache prior resume-point at the end of IonBuilder build functions. r=jandem
--HG--
extra : rebase_source : 0d4ba582c28debae0b508946315bfbca9f3e3bc0
2017-07-25 14:49:59 -04:00
Brian Hackett d00e270300 Bug 1383777 - Support idempotent ICs that access missing properties and object lengths, r=jandem.
--HG--
extra : rebase_source : 405e682faa19e1e710f4d9f1c3692baf0a1b8299
2017-07-25 17:18:29 -06:00
Nicholas Nethercote 53662318c9 Bug 1381727 (part 1) - Remove JS_smprintf_free(). r=sfink.
Because it's just a wrapper for js_free().

Furthermore, JS_smprintf() and friends return a JS::UniqueChars, which is also
wired up to free with js_free(). So having the indirection via
JS_smprintf_free() obfuscates things.

--HG--
extra : rebase_source : 1db80199dc801a2684fffe2a5fd5349a42c6941b
2017-07-25 09:09:23 +10:00
Kris Maglione 8683b183cd Bug 1382645: Part 1 - Add memory reporter for StructuredCloneHolder binding implementation. r=billm
MozReview-Commit-ID: aK3ljfCJVi

--HG--
extra : rebase_source : d788c6c686cc72b423ca100795a379d343c398db
2017-07-25 14:53:41 -07:00
Olli Pettay 866053df7a Bug 1384215 - Try to run deferred deletion more likely during idle time, r=mccr8
--HG--
extra : rebase_source : 0dd6ec9641e323959a454d812a9d2f15b1d02982
2017-07-25 22:22:12 +03:00
Brian Hackett 4d36acb0f4 Bug 1349924 - Backed out changeset 7aa7d265948a due to regression. 2017-07-25 13:57:57 -06:00
Sebastian Hengst 838439065a Backed out changeset e3825e35e2e2 (bug 1366294) for crashing various tests with [@ TelemetryHistogram::DeInitializeGlobalState()], e.g. in bc's browser_permission_dismiss.js. r=backout on a CLOSED TREE 2017-07-21 15:21:49 +02:00
Sebastian Hengst a577a1f14f Backed out changeset 217ad633fbf7 (bug 1379146) for failing spidermonkey cgc's js/src/jit-test/tests/debug/inspect-wrapped-promise.js on Linux x64 debug. r=backout on a CLOSED TREE 2017-07-21 15:18:58 +02:00
Georg Fritzsche e6a136758b Bug 1366294 - Part 1 - Remove base::StatisticsRecorder. r=chutten
The Chromium IPC histogram code used the StatisticsRecorder object for storage.
This is keyed by histogram name, which doesn't match our storage reality anymore.
Instead we use a name to refer to a set of histogram instances that record data from different processes, as well as separating session and subsession data.
Consequently we need to rewrite this storage, which means StatisticsRecorder is not used anymore.

MozReview-Commit-ID: 1LC7YubpKaD
2017-07-21 08:41:44 -04:00
Nicolas B. Pierron 6cebd62c89 Bug 1379146 - SpiderMonkey: Reserve space when enqueuing compression tasks, to avoid OOM on helper threads. r=shu 2017-07-21 10:03:32 +00:00
Jon Coppeard ba0373934d Bug 1382722 - Trigger debugger GC notification once at the end of GC r=sfink 2017-07-21 10:01:14 +01:00
Jon Coppeard 1aa04fef20 Bug 1382720 - Move zone state assertion into state update method r=sfink 2017-07-21 10:00:59 +01:00
André Bargull 7a3eb41821 Bug 1377279 - Fine-tune array built-ins. r=djvj 2017-06-29 14:59:14 -07:00
André Bargull 457b12734d Bug 1381891 - Inline IsTypedArray even when non-TypedArrays were observed. r=jandem 2017-07-18 09:46:08 -07:00
Sean Stangl c3d68d0f00 Bug 1382023 - Optimize better in presence of lookaround. r=jandem
This is a pull of v8 commit 8df7c2a21b07174c3704894ca1d149b2711dfa58,
reviewed at https://codereview.chromium.org/2777583003.

--HG--
extra : histedit_source : 62baef1128e57ddf77b715ffec727610ae7fb8ae
2017-07-18 15:37:00 -04:00
Sean Stangl f4e7d91218 Bug 1382023 - Fold repeated assertions. r=jandem
This is a pull of v8 commit c8e4c8b9263b5009716804f06f39225a9dd7fc68,
reviewed at https://codereview.chromium.org/2768443003.

--HG--
extra : histedit_source : a18886aba3443d84eb909f1f37a3d63b7aa415a9
2017-07-18 15:37:00 -04:00
Ehsan Akhgari b940c3d6e8 Bug 1382339 - Improve SpiderMonkey hashing functions by using MFBT's HashGeneric more; r=jandem 2017-07-20 12:59:09 -04:00
Tom Schuster a5f725d4f6 Bug 1382612 - Support default class constructors in Ion. r=tcampbell 2017-07-20 18:47:28 +02:00
Tom Schuster 1efe54ed22 Bug 1344483 - Remove MInitProp from Ion. r=jandem 2017-07-20 18:46:36 +02:00
Ehsan Akhgari 33114ba370 Bug 1382324 - Improve SpiderMonkey's pointer hashing function for pointers to neighboring memory locations; r=jandem
This is very similar to the fix to bug 1379282 for the XPCOM hashtables.
2017-07-20 12:23:07 -04:00
Nicolas B. Pierron 30db580939 Bug 1304569 - JS Code Coverage: Simplify checks for the last found case-statement body. r=bhackett 2017-07-20 16:20:14 +00:00
Ehsan Akhgari cd15c1d8a0 Bug 1382435 - Create Symbols from Symbol.for() with a different hash from the atom used to create them; r=jandem 2017-07-20 12:16:38 -04:00
Jan de Mooij 591afd7b2d Bug 1379936 - Make sure lastIndex slot is always initialized to 0 when cloning regexps in Ion. r=nbp 2017-07-20 16:23:05 +02:00
Andrew McCreight 51944f0ae4 Bug 1381919 - Remove most of the xpcIJSModuleLoader interface. r=kmag
People only use these methods via Cu, so remove them from this
interface. Also, ban anybody from implementing this interface in JS
(though I can't imagine anybody trying), and eliminate a variant of
mozJSComponentLoader::ImportInto that is never called.

MozReview-Commit-ID: Kok5ksXiK5a

--HG--
extra : rebase_source : ef7237953404fd1b75e8e1118b9fc4e2235ff187
2017-07-17 17:11:06 -07:00
Wes Kocher f361e1638d Backed out 13 changesets (bug 1366294) for leaking base::Histogram::FactoryGet a=backout CLOSED TREE
Backed out changeset f2d79c13799a (bug 1366294)
Backed out changeset b722d638f6ed (bug 1366294)
Backed out changeset aee317b1445d (bug 1366294)
Backed out changeset 14f9f9521d4f (bug 1366294)
Backed out changeset beb5f00c4b19 (bug 1366294)
Backed out changeset 72635bc1ba25 (bug 1366294)
Backed out changeset c387459a798b (bug 1366294)
Backed out changeset 476daf9a5846 (bug 1366294)
Backed out changeset e7ce6a06c131 (bug 1366294)
Backed out changeset 1cc736607aab (bug 1366294)
Backed out changeset 175c3ccb0015 (bug 1366294)
Backed out changeset 96b594816a21 (bug 1366294)
Backed out changeset 57400dd449ad (bug 1366294)

MozReview-Commit-ID: J6PyVMGwJ74
2017-07-19 12:49:46 -07:00
Georg Fritzsche 2932617587 Bug 1366294 - Part 1 - Remove base::StatisticsRecorder. r=chutten
The Chromium IPC histogram code used the StatisticsRecorder object for storage.
This is keyed by histogram name, which doesn't match our storage reality anymore.
Instead we use a name to refer to a set of histogram instances that record data from different processes, as well as separating session and subsession data.
Consequently we need to rewrite this storage, which means StatisticsRecorder is not used anymore.

MozReview-Commit-ID: 1LC7YubpKaD
2017-07-19 14:26:56 -04:00
Benjamin Bouvier 1e52c56b0d Bug 1381930: Move JitFrameIterator methods to their own cpp file; r=nbp
MozReview-Commit-ID: 6ShujTv5EIM

--HG--
extra : rebase_source : 099f4dc7dccf11dcffe88d8fafea1fcc9e8f3412
2017-07-18 20:10:48 +02:00
Benjamin Bouvier a2da47dfdd Bug 1381930: Use delegating ctors for JitFrameIterator; r=nbp
MozReview-Commit-ID: 1tmUQ9yPQSd

--HG--
extra : rebase_source : df76df2473d24478190d566082e3446dbe61b3c9
2017-07-18 19:36:25 +02:00
Benjamin Bouvier b79d31c403 Bug 1382040: Fix benign assertion issue when decoding wasm names; r=luke
MozReview-Commit-ID: KPefZhEo5si

--HG--
extra : rebase_source : 1e7584e7a2c7705fb7a5334aecb3a6ee14fac5b4
2017-07-19 12:15:19 +02:00
Nicolas B. Pierron 6eb7dc59af Bug 1381888 - Hard-code the current size factor between the source size and the bytecode size. r=mrbkap
--HG--
extra : rebase_source : 5e2a0735a7d02e414b38ce24ac6b887cb0c7ddbc
2017-07-18 10:09:00 -04:00
Jon Coppeard e428e12a6b Bug 1380972 - Tighten up our defintion of what constitutes a 'long' slice r=sfink 2017-07-19 16:52:48 +01:00
Jon Coppeard 4056892ff5 Bug 1381777 - Record how long we went over the time budget r=sfink data-r=bsmedberg 2017-07-19 09:37:18 +01:00
Jon Coppeard 1d3260f920 Bug 1366217 - Add more assertions to help track down LongestPhaseSelfTime crashes r=sfink 2017-07-19 09:37:18 +01:00
Boris Zbarsky 58c5f32380 Bug 1381408. Make cross-origin-exposed non-symbol properties enumerable. r=bholley
The list of exposed properties can be gotten via
Object.getOwnPropertyNames/Symbols already, so there's nothing to be won from
the non-enumerability.

The web platform test changes are backports of
https://github.com/w3c/web-platform-tests/pull/6538 and
https://github.com/w3c/web-platform-tests/pull/6571 and
https://github.com/w3c/web-platform-tests/pull/6583

The js/xpconnect/tests/mochitest/*crossOriginObject* tests being removed are
just older versions of the web platfrom test.
2017-07-19 11:47:39 -04:00
André Bargull c7e8c24f9f Bug 1381489 - Improve allocations and length limits when sorting typed arrays without a custom comparator. r=till 2017-07-17 09:17:02 -07:00
Jan de Mooij e216fb5e25 Bug 1375505 part 10 - Replace fixed-size iterator cache with a per-compartment HashSet to improve hit rate. r=jonco 2017-07-19 16:30:02 +02:00
André Bargull e062cd68d9 Bug 1381423 - Part 1: Generate slightly better code for visitCallGeneric and RangePopFront. r=jandem
--HG--
extra : rebase_source : 634db665f202b9c0c9dc299ec9f65b14e6f7faba
2017-07-19 03:18:47 -07:00
André Bargull 92e4a673cf Bug 1381423 - Part 0: Fix branchTestMagic with an Address operand for 32-bit targets. r=jandem
--HG--
extra : rebase_source : 80ae6bc5ed554cb2a843309019ad84a6c9a3b2fc
2017-07-19 03:12:37 -07:00
Ryan VanderMeulen 0cfb1d8460 Merge inbound to m-c. a=merge
CLOSED TREE
2017-07-19 10:00:35 -04:00
Ehsan Akhgari 16939c371d Bug 1379351 - Improve some of the XPConnect hash routines; r=mccr8 2017-07-19 00:08:50 -04:00
Sebastian Hengst e14a8f51d7 Backed out changeset aa6ecfc06517 (bug 1381423) for failing devtools' browser_dbg_variables-view-large-array-buffer.js on Windows 7 debug. r=backout on a CLOSED TREE 2017-07-18 20:17:57 +02:00
Jon Coppeard 9021f21c69 Bug 1380387 - Disable gczeal in GC marking test r=me 2017-07-18 16:56:31 +01:00
André Bargull 03d9b8eaa6 Bug 1381423 - Generate slightly better code for visitCallGeneric and RangePopFront. r=jandem 2017-07-18 17:34:15 +02:00
Sebastian Hengst b63513ed85 Backed out changeset aeb1787900b8 (bug 1381423) for failing devtools/client/webconsole/test/browser_webconsole_output_05.js. r=backout 2017-07-18 17:29:31 +02:00
Sebastian Hengst 367d6fd973 Backed out changeset 07dd7b5ed0e8 (bug 1381433) 2017-07-18 17:28:42 +02:00
André Bargull ceca1e45b7 Bug 1380344 - Add Ion support for IsPackedArray. r=jandem
--HG--
extra : rebase_source : 8599c33b39806d1580a3a5fd208f39150f6c2c3e
extra : histedit_source : de214f94b5b5eb2d440519634555da3a0dc72b85
2017-07-17 08:56:22 -07:00
André Bargull a32a33c30a Bug 1380962 - Part 2: Remove unnecessary lambda function in FunctionToString. r=jandem
--HG--
extra : rebase_source : 82d488bd9207e98ae632b825e040f991b17b9bc2
extra : histedit_source : e5284923248189d19766145a7de7554ae6f9b13c
2017-07-17 08:56:16 -07:00
André Bargull bd210d189b Bug 1380962 - Part 1: Merge append calls when assembling the source string for native functions. r=jandem
--HG--
extra : rebase_source : 11fcfdccb3ca403ba20a9270cf67ba843506da59
extra : histedit_source : c51ce359c176815f9a4f2658696810ab1b93057c
2017-07-17 08:56:11 -07:00
André Bargull 7807a64afa Bug 1381474 - Check for detached buffers by querying the current length when sorting typed arrays. r=till
--HG--
extra : rebase_source : ffdb83418d6c14772cff251dce5bc56d45c06e06
extra : histedit_source : d6fe1a16999f67ece70984c79bde5e4f7ea0602b
2017-07-17 06:12:20 -07:00
André Bargull f99876d7f6 Bug 1381469 - Only check for detached buffers when iterating over typed arrays when the current length is zero. r=till
--HG--
extra : rebase_source : a345bb12dc87a9923beb2b235850e506d08046b7
extra : histedit_source : 158f8c1d3e171735eb08e0c684023f9c78e24d12
2017-07-17 06:01:01 -07:00
André Bargull 900d376185 Bug 1381466 - Throw TypeError when comparator was provided, but is not callable per ES2018 draft spec. r=till
--HG--
extra : rebase_source : e738b045b90a6ccce6f990979989faec92eb261e
extra : histedit_source : 0433782bd238ff3f18a58016fb9b52cddd24903e
2017-07-17 05:53:07 -07:00
André Bargull 8949cb2fcf Bug 1381433 - Throw when Date.prototype.toString is called with non-Date object per ES2018 spec draft. r=till
--HG--
extra : rebase_source : 082eed044fd9c90287a5871e66be9bec5e2cc31f
extra : histedit_source : 625f3027b33eedde1d988079e726e70a916005a0
2017-07-17 03:43:15 -07:00
André Bargull 2db8d96a93 Bug 1381423 - Generate slightly better code for visitCallGeneric and RangePopFront. r=jandem
--HG--
extra : rebase_source : 3517d6d4d77e9c15fc881776fa363c72f1c2e06d
extra : histedit_source : f9720cfb0922a76298b69faa80d0994e89a1a1fb
2017-07-17 02:23:10 -07:00
Nicolas B. Pierron e16981ec72 Bug 1364908 - Fix test case basic/bug858097.js, to checking in Compacting GC cases. r=jonco 2017-07-18 14:16:21 +00:00
Nicolas B. Pierron 07a6807814 Bug 1364908 - Fix ion/bug1284485.js unreported OOM. r=bbouvier 2017-07-18 12:08:22 +00:00
Nicolas B. Pierron a1f0784e66 Bug 1364908 - IonMonkey: Add LoadElementFromSate to support argument[x] in inlined functions. r=jandem 2017-07-18 12:08:22 +00:00
Nicolas B. Pierron d6ec64d163 Bug 1364908 - Add MacroAssembler::branchToComputedAddress. r=jandem 2017-07-18 12:08:22 +00:00
Nicolas B. Pierron e1a4ed2946 Bug 1364908 - Move moveValue into the generic MacroAssembler. r=jandem 2017-07-18 12:08:21 +00:00
Jan de Mooij babc61461a Bug 1381461 part 2 - Remove the similar-objects heuristic in PropertyReadNeedsTypeBarrier. r=bhackett 2017-07-18 13:09:04 +02:00
Jan de Mooij 826fed3c48 Bug 1381461 part 1 - Don't skip the receiver object in PropertyReadNeedsTypeBarrier. r=bhackett 2017-07-18 10:58:56 +02:00
Shu-yu Guo 78323cab13 Bug 1368737 - Fix 'this' computation for Debugger.Frame.eval. (r=jimb) 2017-07-17 18:45:52 -07:00
Shu-yu Guo 81c208d0c8 Bug 1366927 - Rework column handling in frontend by separating column from offset from root ScriptSource buffer. (r=jimb)
The idea is this:

Offsets, like token positions and scripts' begin/end and
toString{Start,End}, are now always offset from the beginning of the
script's full ScriptSource buffer. That is, when delazifying, if the
buffer we are parsing is an interior pointer into some outer script's
ScriptSource buffer, the token offsets for that parsing session are
still offset from that outer buffer instead of the interior pointer.

The initial column number in CompileOptions will be added to the column
number when an offset maps to the initial line of the ScriptSource.
Columns are computed from offsets, but have no bearing on how to index
into the ScriptSource buffers.
2017-07-17 18:45:52 -07:00
Wes Kocher e336170364 Backed out changeset 3b275d92b419 (bug 1381919) for 32-bit windows build bustage a=backout CLOSED TREE
MozReview-Commit-ID: AeocWzkRyan
2017-07-18 22:37:01 -07:00
Ryan VanderMeulen d229288071 Merge m-c to autoland. a=merge
CLOSED TREE

--HG--
extra : amend_source : 2ab51304cc7df444f22c3aac001a1aba61faee3a
2017-07-21 09:42:41 -04:00
Cameron McCormack a7e21703f6 Bug 1380133 - Part 10: Whitelist nsStyleContext::PeekStyleXXX for heap writes. r=heycam
MozReview-Commit-ID: BLlJm7JUnOq

--HG--
extra : rebase_source : 424d25b0dd3ea76c2df9a304d9ff734f8f4cc2be
2017-07-21 11:51:04 +08:00
Andrew McCreight c77f1723be Bug 1381921, part 2 - Remove nsAXPCNativeCallContext. r=mrbkap
This class is no longer used.

MozReview-Commit-ID: Lv9AAd3OjIl

--HG--
extra : rebase_source : b37abc2c70a2a08b176d0504163c246b6ff3b8cf
2017-07-18 10:42:47 -07:00
Andrew McCreight c00d64f6c6 Bug 1381921, part 1 - Remove nsIXPConnect::CurrentNativeCallContext. r=mrbkap
It is only called in a single place, and can't be called from JS, so
inline it and eliminate it.

MozReview-Commit-ID: DWfyfoO5Zht

--HG--
extra : rebase_source : 8a44719af22a4d8724449d6225f4bdd119d648c8
2017-07-18 10:36:05 -07:00
Mike Hommey 0f1f412921 Bug 1384314 - Remove NSPR_LDFLAGS. r=gps
It's set in old-configure, but nothing uses it anymore.

--HG--
extra : rebase_source : e0197529b980d424afedb1a04eb7ba14bb606d90
2017-07-26 07:07:32 +09:00
Gregory Szorc 204ba452aa Bug 1382930 - Remove configure references to gonk; r=glandium
Some gaia-related code was also found and removed as part of the
cleanup.

MozReview-Commit-ID: DEjVSljzzu1

--HG--
extra : rebase_source : 58c4c34df44a258d90029853f29ea01338bd142b
2017-07-20 21:48:10 -07:00
Brian Birtles 267881f1f1 Bug 1381389 - Append PropertyValuePair objects on Gecko side so they are initialized correctly; r=hiro
Without this mValue may end up looking like a valid nsCSSValue object and bad
things will happen when we try to clone it.

We could just assign mem::zeroed() to mValue but this array hacking on the Servo
side is already pretty nasty and mSimulateComputeValuesFailure would still
remain unassigned (and if we did try to assign it on the Servo side we'd need to
only assign it in debug builds). Unless this proves performance-critical, it's
probably best to just do this on the Gecko side.

MozReview-Commit-ID: 75nFsflhZUM

--HG--
extra : rebase_source : 0e5d94a7f6fdb6768983ba440a3ea69d65cbffbf
2017-07-20 14:38:54 +09:00
Andrew McCreight 323b74a7ca Bug 1381919 - Remove most of the xpcIJSModuleLoader interface. r=kmag
People only use these methods via Cu, so remove them from this
interface. Also, ban anybody from implementing this interface in JS
(though I can't imagine anybody trying), and eliminate a variant of
mozJSComponentLoader::ImportInto that is never called.

MozReview-Commit-ID: Kok5ksXiK5a

--HG--
extra : rebase_source : 38c2469198e3320326e946c7af902bca33a0e6be
2017-07-17 17:11:06 -07:00
Zibi Braniecki ddf787a1b8 Bug 1380931 - Switch Intl.PluralRules tests to public domain. r=till
MozReview-Commit-ID: 33XHMMVhCz

--HG--
extra : rebase_source : df09b46bc681672267f72e1618eb4e6961af8d82
2017-07-14 01:24:25 -07:00
Steve Fink a18059010c Bug 1381568 - Allow reporting on minor GCs on an empty nursery, r=pbone
--HG--
extra : rebase_source : 62a125dd068a1f126350e46ae35cf0872bbe4366
2017-07-17 16:52:51 -07:00