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

66016 Коммитов

Автор SHA1 Сообщение Дата
shindli 774474fe26 Backed out 11 changesets (bug 1478892, bug 1478587) for build bustages in ../../../dist/bin/gdb-tests on a CLOSED TREE
Backed out changeset 185a4564afa5 (bug 1478892)
Backed out changeset c4b339472f4b (bug 1478587)
Backed out changeset 1a4669e53b46 (bug 1478587)
Backed out changeset aa8a0735f303 (bug 1478587)
Backed out changeset d1cd66e6d3c3 (bug 1478587)
Backed out changeset 63ccd68e1da3 (bug 1478587)
Backed out changeset 3a111fdc418d (bug 1478587)
Backed out changeset 756cbd89533a (bug 1478587)
Backed out changeset 9546bfc93c7a (bug 1478587)
Backed out changeset b335930f96b4 (bug 1478587)
Backed out changeset a47cd872a700 (bug 1478587)
2018-07-29 13:33:00 +03:00
Jeff Walden a50cd5abf5 Bug 1478892 - Instantiate all Parser-related classes for UTF-8 source text. r=arai 2018-07-25 20:12:22 -07:00
Jeff Walden 1bb14e8513 Bug 1478587 - Instantiate TokenStreamSpecific for UTF-8. r=arai 2018-07-26 19:45:02 -07:00
Jeff Walden 72e1197375 Bug 1478587 - Make number-parsing functions deal with UTF-8 input. r=arai 2018-07-25 20:11:25 -07:00
Jeff Walden d5500445fb Bug 1478587 - Make FindReservedWord work for CharT=Utf8Unit. r=arai 2018-07-25 20:11:22 -07:00
Jeff Walden fd4a267037 Bug 1478587 - Make ReportUnterminatedRegExp accept an int32_t unit, not a CharT unit. r=arai
--HG--
extra : rebase_source : 002be06902da912281dcb0d853b5204485b1b379
2018-07-25 20:11:18 -07:00
Jeff Walden f9b90795e5 Bug 1478587 - Switch on the numeric type underlying CharT, not on CharT itself, in a couple switches in TokenStreamSpecific::getTokenInternal. r=arai
--HG--
extra : rebase_source : 36bfc02d5b222f3ada5908f5d104fcf6237df2c1
2018-07-25 20:11:15 -07:00
Jeff Walden 826ea7fdec Bug 1478587 - Add CharT casts when comparing code units to particular ASCII characters. r=arai
--HG--
extra : rebase_source : 478787fe94a9bcea836ead992a657d956cd6f2a6
2018-07-25 20:11:12 -07:00
Jeff Walden e3ed1f329f Bug 1478587 - Return the result of CodeUnitValue(), not a CharT, from GeneralTokenStreamChars::getCodeUnit. r=arai
--HG--
extra : rebase_source : 7f73eae76560d01032d4eb5e132fd73d74b13f74
2018-07-25 20:11:08 -07:00
Jeff Walden c8e1b0ce40 Bug 1478587 - Implement correct handling of Unicode line/paragraph separators in template/string literals for UTF-8. r=arai
--HG--
extra : rebase_source : 216ddc1ae1cac1013c399f9ef964fa2ca9fd8001
2018-07-25 20:11:05 -07:00
Jeff Walden 9ff73c6e06 Bug 1478587 - Invoke TokenStreamChars::getNonAsciiCodePointDontNormalize passing CharT lead (not int32_t). r=arai
--HG--
extra : rebase_source : ea3053e8c30c0a529d24fce114208ee3e1215638
2018-07-25 20:11:01 -07:00
Kris Maglione 02ba563399 Bug 1463016: Part 5 - Add domWindow property to DocShellTreeItem and update callers to use it. r=nika
MozReview-Commit-ID: FRRAdxLHRtG

--HG--
extra : source : 0d69b4fb1ed43751cfcbc0b4f2fe3b6a49bc0494
extra : histedit_source : d0ce31513ffaae2fd7f01f6567a97b6d2d96b797%2Cfff837de7a00fa90809d2c3e755097180dfd56d8
2018-05-20 18:10:16 -07:00
Narcis Beleuzu 561ccb2ceb Backed out 2 changesets (bug 1463016, bug 1463291) for geckoview failures
Backed out changeset fcfb99baa0f0 (bug 1463291)
Backed out changeset 0d69b4fb1ed4 (bug 1463016)
2018-07-29 03:55:23 +03:00
Kris Maglione 636f1839e5 Bug 1463016: Part 5 - Add domWindow property to DocShellTreeItem and update callers to use it. r=nika
MozReview-Commit-ID: FRRAdxLHRtG

--HG--
extra : rebase_source : 36565ef5e74360aad14062005e5bdab2939e888b
2018-05-20 18:10:16 -07:00
Kris Maglione 7c7c5fb182 Bug 1476405: Part 3 - Use reasonable stack sizes and create wrappers for JS threads. r=erahm,tcampbell
For ordinary JS helper threads, we can update names and create wrappers using
the existing thread profiler hooks, but we still need to update their default
stack sizes to avoid huge pages.

For the XPConnect JS Watchdog thread, we sometimes get a wrapper as it is, but
only sometimes. And we never use a reasonable stack size.

MozReview-Commit-ID: EuR3gL5JATL

--HG--
extra : rebase_source : 99985a751a37fb8c515cea8cdae4526b319aba67
extra : intermediate-source : 4831cbfd03ded9ea6dcc8d6f0797f5f80fb717c7
extra : source : f092a32a363911e58c71ed5d2e4bd92347437c7e
2018-07-19 19:29:56 -07:00
Jan de Mooij dba3f4d0b0 Bug 1478955 part 3 - Use JSAutoRealm in jsapi-tests. r=luke 2018-07-28 12:16:02 +02:00
Jan de Mooij efcb0f6005 Bug 1478955 part 2 - Reintroduce JSAutoRealm and assert objects are not CCWs. r=luke 2018-07-28 12:15:53 +02:00
Jan de Mooij 80adc67aba Bug 1478955 part 1 - Rename JSAutoRealm to JSAutoRealmAllowCCW. r=luke 2018-07-28 12:12:26 +02:00
Cosmin Sabou d71fce60ce Merge mozilla-central to mozilla-inbound. a=merge 2018-07-28 01:56:40 +03:00
dvarga d8ac8507c9 Merge mozilla-inbound to mozilla-central. a=merge
--HG--
extra : amend_source : 25781a5ccee21a19f5c6ccacc2c96ab7eb4ed6b5
2018-07-28 01:32:38 +03:00
Cosmin Sabou 778ca4f84f Backed out 8 changesets (bug 1476405) for causing frequent failures in bug 1479022. a=backout
Backed out changeset ad1674e9152d (bug 1476405)
Backed out changeset e0a021b27d2c (bug 1476405)
Backed out changeset 771288dbf852 (bug 1476405)
Backed out changeset aeebad4f2dc3 (bug 1476405)
Backed out changeset 4831cbfd03de (bug 1476405)
Backed out changeset 0b0c243a1827 (bug 1476405)
Backed out changeset 236b366fdf37 (bug 1476405)
Backed out changeset c767b1b618fb (bug 1476405)
2018-07-28 01:25:25 +03:00
Jeff Gilbert b4e6d208cf Bug 1470985 - const_cast no longer necessary with ArrayEqual. - r=waldo
MozReview-Commit-ID: 5iKtE8cxs6c
2018-07-27 14:11:21 -07:00
Jeff Gilbert 080d6f25d1 Bug 1470985 - EqualChars should just call ArrayEqual. - r=waldo
MozReview-Commit-ID: Cmj4KwGidNv
2018-07-27 14:11:20 -07:00
Jeff Gilbert 0e128a3868 Bug 1470985 - s/PodEqual/ArrayEqual/ from ArrayUtils.h. - r=waldo
We can't use memcmp to compare PODs, largely because of undefined
padding. The rest of the Pod* functions are fine though, since we're
replicating or zeroing PODs.

MozReview-Commit-ID: LSspAi8qCWw
2018-07-27 14:11:18 -07:00
dvarga d78485112a Merge inbound to mozilla-central. a=merge 2018-07-27 20:42:15 +03:00
dvarga edd9f3a3d9 Merge mozilla-central to mozilla-inbound on a CLOSED TREE 2018-07-27 20:55:06 +03:00
Bob Clary 745c5ff6c2 Bug 1477807 - Distinguish ADBTimeoutErrors from other exceptions in Android remote tests, r=gbrown. 2018-07-27 08:27:16 -07:00
Dorel Luca 3e8fbc2f0f Merge mozilla-central to autoland 2018-07-27 13:44:50 +03:00
Mike Hommey aedf67e741 Bug 1467673 - Disable segfault handling by TSAN when running JIT tests. r=jandem
self-test/assertRecoveredOnBailout-1.js relies on the shell actually
crashing, but TSAN catches that instead, and returns its own error code
instead of -11.

TSAN's value, however, is not in catching crashes, so we disable its
handling of segfaults while running the JIT tests. Crashes would still
happen and cause tests failures, while allowing the harness to catch the
expected crash from self-test/assertRecoveredOnBailout-1.js.

--HG--
extra : rebase_source : 38f0251cf226756de80ab9f84af91e73b9ba2435
2018-07-27 15:22:19 +09:00
Lars T Hansen 6ae83a4406 Bug 1472178 - Ref types for wasm globals. r=bbouvier
--HG--
extra : rebase_source : 2f64e3b52649574e350f4b45bad9547fb3e73975
2018-07-24 18:26:45 +02:00
Lars T Hansen aa46adb8f5 Bug 1478616 - Generalize the wasm write barrier. r=bbouvier
We need to generalize the barrier to handle not just globals, but also
fields in structures.  To do this we pass the location of the store
(ie the Cell**) to the C++ barrier machinery, not the global index.

--HG--
extra : rebase_source : e036ab3500cfa838f8a7dcbfade6dcc5d5765e85
2018-07-26 15:54:49 +02:00
Lars T Hansen 5ec72ee62e Bug 1478616 - Wasm, trace Ref as well as Anyref global and Val. r=bbouvier
--HG--
extra : rebase_source : 456d2377360e375c994705f40415e1fceec78413
2018-07-26 15:50:56 +02:00
Philip Chimento bcc2d68110 Bug 1478679 - Fix memory leak in LCovRealm. r=nbp 2018-07-26 11:21:04 -04:00
Kris Maglione 831de9e086 Bug 1476405: Part 3 - Use reasonable stack sizes and create wrappers for JS threads. r=erahm,tcampbell
For ordinary JS helper threads, we can update names and create wrappers using
the existing thread profiler hooks, but we still need to update their default
stack sizes to avoid huge pages.

For the XPConnect JS Watchdog thread, we sometimes get a wrapper as it is, but
only sometimes. And we never use a reasonable stack size.

MozReview-Commit-ID: EuR3gL5JATL

--HG--
extra : source : f092a32a363911e58c71ed5d2e4bd92347437c7e
extra : histedit_source : e66e41015f56882fb94b82244da9da3a8dd15c30
2018-07-19 19:29:56 -07:00
Coroiu Cristina 6d037d0cba Backed out 9 changesets (bug 1476405) for causing leaks
Backed out changeset 4113d6fb3c1c (bug 1476405)
Backed out changeset cb7f7cc32687 (bug 1476405)
Backed out changeset 6d18a8bd5ee3 (bug 1476405)
Backed out changeset b2a99f50e642 (bug 1476405)
Backed out changeset b5b9d295545d (bug 1476405)
Backed out changeset f092a32a3639 (bug 1476405)
Backed out changeset 6c154f4d9dd9 (bug 1476405)
Backed out changeset d0ebb3aa8e0f (bug 1476405)
Backed out changeset 06b8093ddc6a (bug 1476405)
2018-07-27 08:56:36 +03:00
Tooru Fujisawa 13ebe80af7 Bug 1467022 - Add comment about the script field to JSFunction::hasScript, and refer JSFunction::hasUncompletedScript. r=jandem DONTBUILD, comment-only 2018-07-27 12:46:13 +09:00
Kris Maglione f222aaad95 Bug 1476405: Part 3 - Use reasonable stack sizes and create wrappers for JS threads. r=erahm,tcampbell
For ordinary JS helper threads, we can update names and create wrappers using
the existing thread profiler hooks, but we still need to update their default
stack sizes to avoid huge pages.

For the XPConnect JS Watchdog thread, we sometimes get a wrapper as it is, but
only sometimes. And we never use a reasonable stack size.

MozReview-Commit-ID: EuR3gL5JATL

--HG--
extra : rebase_source : ccf47a10321d2f859d3a3d93e79ac18bf44b73a8
2018-07-19 19:29:56 -07:00
David Major cdd92f01ee Bug 1478903 - Don't disable PGO for the js shell in clang-cl. r=froydnj 2018-07-27 08:51:19 -04:00
Julian Seward 98670aa15b Bug 1448277 - Generate GVN-able references to indirect wasm globals. r=lth.
Wasm-via-IonMonkey creates accesses to indirect globals using a double
indirection of the form

   * ( *(tls + imm_offset) )

The inner load produces a pointer to the global cell holding the global's
value, and the outer load or store reads or writes the actual value.
Currently both accesses are represented by a single MIR node,
WasmLoadGlobalVar or WasmStoreGlobalVar respectively.  This has the
disadvantage that it inhibits CSEing of the |*(tls + imm_offset)| part,
which generates poor code when the same indirect global is referred to
repeatedly, which is a common idiom.  For example

  (set_global 0 (i32.add (get_global 0) (i32.const 1)))

produces

  [Codegen] instruction WasmLoadGlobalVar
  [Codegen] movq       0x40(%r14), %rcx
  [Codegen] movl       0x0(%rcx), %eax
  [Codegen] instruction AddI
  [Codegen] addl       $1, %eax
  [Codegen] instruction WasmStoreGlobalVar
  [Codegen] movq       0x40(%r14), %rcx  <-- a load we want to avoid
  [Codegen] movl       %eax, 0x0(%rcx)

It also causes confusion in specifying the aliasing behaviour for
Wasm{Load,Store}GlobalVar.  See bug 1467415.

This patch splits Wasm{Load,Store}GlobalVar in two:

* Wasm{Load,Store}GlobalVar is reduced in scope, so that it now loads/stores
  *only* at |tls + imm_offset| -- the inner load/store in the description
  above.

* Wasm{Load,Store}GlobalCell performs the outer load/store.

As a result, Wasm{Load,Store}GlobalVar no longer have an |isIndirect| boolean.
Instead, a direct global access is expressed using Wasm{Load,Store}GlobalVar
alone, and an indirect global access is expressed using WasmLoadGlobalVar to
acquire the cell address, followed by Wasm{Load,Store}GlobalCell to access the
cell.

MWasmLoadGlobal{Var,Cell}::mightAlias are updated accordingly.  We believe the
resulting alias analysis to be non-optimal in that there are certain
known-not-to-alias cases that are not discovered.

Most of the changes are boilerplate:

* js/src/jit/AliasAnalysisShared.cpp GetObject(const MDefinition* ins)
  - Handle new MIR node types.

* js/src/jit/CodeGenerator.cpp
  - New functions {Load,Store}PrimitiveValue, to avoid code duplication
  - CodeGenerator::visitWasmLoadGlobalVar
    CodeGenerator::visitWasmLoadGlobalCell
    CodeGenerator::visitWasmStoreGlobalVar
    CodeGenerator::visitWasmStoreGlobalCell
    CodeGenerator::visitWasmLoadGlobalVarI64
    CodeGenerator::visitWasmLoadGlobalCellI64
    CodeGenerator::visitWasmStoreGlobalVarI64
    CodeGenerator::visitWasmStoreGlobalCellI64:
    new/refactored code gen fns

* js/src/jit/Lowering.cpp
  - LIRGenerator::visitWasmLoadGlobalVar
    LIRGenerator::visitWasmLoadGlobalCell
    LIRGenerator::visitWasmStoreGlobalVar
    LIRGenerator::visitWasmStoreGlobalCell:
    route through to the above code gen fns
  - MWasmLoadGlobalVar::mightAlias
  - MWasmLoadGlobalCell::mightAlias:
    updated
  - MWasmLoadGlobalVar::congruentTo: updated
  - MWasmLoadGlobalCell::congruentTo: new function

* js/src/jit/MIR.h
  - class AliasSet {
    add WasmGlobalCell
  - other classes:
    remove |isIndirect| flag from MWasm{Load,Store}GlobalVar
    add classes MWasm{Load,Store}GlobalCell{,I64}

* js/src/wasm/WasmIonCompile.cpp  class FunctionCompiler
  - loadGlobalVar(), storeGlobalVar():
    actually take notice of |isIndirect|
    and generate one or two MIR nodes accordingly

* js/src/jit-test/tests/wasm/globals-impl.js
  - New test case.

--HG--
extra : rebase_source : 6944f01757421d4a6f07211166bb167fc714ec2d
2018-07-27 12:11:31 +02:00
Jan de Mooij ad92a85c3f Bug 1478356 - Pass the unwrapped object's global to AutoEntryScript in XPCWrappedJS code. r=bz 2018-07-27 11:35:57 +02:00
Steve Fink 536abef860 Bug 1477742 - Remove dubious pointer computation optimization, r=jandem
--HG--
extra : rebase_source : 1b6c15a2fe371e4ffdfd1a308be31a83a727c8f9
extra : amend_source : 6273f1ba92c0ebcdac296e7fa1b253533d5eb96f
2018-07-23 10:07:44 -07:00
Jon Coppeard 17384d413d Bug 1477761 - Use using declaration to make time related classes available in GC.cpp r=sfink 2018-07-26 17:24:54 +01:00
Jon Coppeard 1af3359cea Bug 1477761 - Fix sketchy timestamp computation for unlimited slice budget r=sfink 2018-07-26 17:23:18 +01:00
Benjamin Bouvier 962d9c7182 Bug 1416723: Remove SIMD.js support; r=luke, r=nbp
--HG--
extra : rebase_source : d0af6d791d53015f9da0b70ebeda640a4ad5952a
2018-07-24 15:15:01 +02:00
Benjamin Bouvier e76b83d65b Bug 1416723: Move SIMD code generation to masm methods; r=lth
--HG--
extra : rebase_source : a091d0670f90f9f24182e50266f3894d43258eb8
2018-07-24 19:34:06 +02:00
Andreea Pavel 1ea5273b59 Backed out 3 changesets (bug 1378808) for failing spidermonkey builds on a CLOSED TREE
Backed out changeset 8658a25ee96b (bug 1378808)
Backed out changeset e761b8eef0aa (bug 1378808)
Backed out changeset b14186c3f895 (bug 1378808)
2018-07-27 23:06:00 +03:00
Kristen Wright 927abec5f2 Bug 1476141 - JS::ubi::Nodes represent DOM structure in more detail r=KrisWright
Added a new CoarseType that refers to DOM nodes. Updated the trees to represent the CoarseType. Created a new type of count in the heap snapshot that sorts the data by a more descriptive type name. Created the descriptive in JS::ubi::Base.

--HG--
extra : histedit_source : be24efa4d2ccb85e82046d7cf7d2c3a1e13b1fd7
2018-07-16 14:42:07 -07:00
Logan F Smyth 265292f1cd Bug 1378808 - Use ::Arguments or ::PropertyName location for method call column offsets. r=jorendorff
MozReview-Commit-ID: G8mG1qsIO21
2018-07-27 15:34:57 -04:00
Logan F Smyth ad1c4ebb1d Bug 1378808 - Add a new ParseNodeKind::PropertyName to hold location information about property access name. r=jorendorff
MozReview-Commit-ID: J4vHz4ln5Zt
2018-07-27 15:33:12 -04:00
Logan F Smyth f01ca0e4fe Bug 1378808 - Add a new ParseNodeKind::Arguments node type for call argument lists. r=jorendorff
MozReview-Commit-ID: 7L4nNHjVoZo
2018-07-27 15:31:46 -04:00