Commit Graph

68536 Commits

Author SHA1 Message Date
Jeff Walden
d084a5e469 Back out f8a29b8bb211, d1267711aef0, df1b7a886a9d, 0f6a3dd2c2f7, e6628922b7be, 0a374ac233cd, cf00fd0f080c, 6fc24c4e7798, ab2e4a2e5dd2, 2d17e4ef5e71, 4a8940073f8c, ea3ab4b83152, c7577c232591, e58454c68f0f, and 0e39815d1bce for breaking a single Android J10 and nothing else. (That J10 task must not like deck chairs...) r=bustage
--HG--
extra : rebase_source : f02dabe3ece7955cb223313d3605b825560c62b1
2019-01-04 16:33:01 -06:00
shindli
deb6936a40 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-01-04 23:50:00 +02:00
Jeff Walden
e78f4907ec Backed out changeset d1267711aef0 for Jit10 failures.
--HG--
extra : histedit_source : 446b67a2bf6a0b7cad32ac06e60a30811e3a7a69
2019-01-04 15:03:28 -06:00
Jan de Mooij
8ce3159350 Bug 1517690 - Fix BaselineInspector to match new CacheIR ops for WindowProxy unwrapping. r=evilpie
Differential Revision: https://phabricator.services.mozilla.com/D15729

--HG--
extra : moz-landing-system : lando
2019-01-04 17:47:39 +00:00
Jan de Mooij
cc33e58220 Bug 1516406 - Fix DumpScopeChain to propagate exceptions from JSFunction::getOrCreateScript correctly. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D15579

--HG--
extra : moz-landing-system : lando
2019-01-04 16:53:01 +00:00
Cosmin Sabou
c635221c73 Backed out changeset 227f1a73b16f (bug 1477084) for spidermonkey bustages on tests/debug/Frame-onStep-generator-resumption-01.js 2019-01-04 18:59:03 +02:00
Jason Orendorff
317e3adf36 Bug 1477084 - Fix assertion with Debugger forcing return from an async generator before its initial yield. r=jimb
Differential Revision: https://phabricator.services.mozilla.com/D14789

--HG--
extra : moz-landing-system : lando
2019-01-04 16:22:31 +00:00
Nicolas B. Pierron
b68f36a865 Bug 1451385 - ARM64: Update the last profiling frame after a JSOP_RESUME return opcode. r=sstangl 2019-01-04 14:52:47 +01:00
Jon Coppeard
c6bba05f15 Bug 1515475 - Remove hardcoded length of config arrays for JS_SetGCParametersBasedOnAvailableMemory a=pbone 2019-01-04 10:48:14 +00:00
Ciure Andrei
7a748ae68f Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-01-04 01:03:06 +02:00
Ciure Andrei
a8af06aea2 Merge inbound to mozilla-central. a=merge 2019-01-04 00:04:46 +02:00
Sean Stangl
3310063144 Bug 1517379 - Implement ARM64 code generation for visitRound(). r=nbp
--HG--
extra : histedit_source : f3416070289693480091ed71c94261121d02253f
2019-01-02 17:20:00 +02:00
Boris Zbarsky
df26fc8601 Bug 1516567. Fix JSPropertySpec assertions to deal with not having a getter. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D15423

--HG--
extra : moz-landing-system : lando
2019-01-03 16:52:59 +00:00
Daniel Varga
6475e7a21d Merge mozilla-inbound to mozilla-central. a=merge 2019-01-03 18:22:07 +02:00
Jon Coppeard
4f6ab86fcf Bug 1342012 - Store a CCW to the introuction script's script source object r=jandem 2019-01-03 10:06:00 +00:00
Jon Coppeard
bdfdf72d44 Bug 1342012 - Fix error message that covers all import() failures that don't throw a JS exception r=jandem 2019-01-03 10:06:00 +00:00
Jeff Walden
6714bb4592 Bug 1516697 - Make AsmJSParser a template typedef and {Module,Function}Validator template classes. r=arai 2018-12-28 21:00:57 -06:00
Boris Zbarsky
447c1f8722 Bug 1517434 part 3. Get rid of pointer compares to nsXPConnect::SystemPrincipal. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D15674

--HG--
extra : moz-landing-system : lando
2019-01-03 21:08:15 +00:00
Boris Zbarsky
058f83508f Bug 1517434 part 2. Convert existing callers of GetIsSystemPrincipal() to IsSystemPrincipal(). r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D15673

--HG--
extra : moz-landing-system : lando
2019-01-03 20:55:38 +00:00
Jim Blandy
eb4ba6cb0e Bug 1517568: Add SMDOC marker to LiveSavedFrameCache comment. DONTBUILD r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D15671

--HG--
extra : moz-landing-system : lando
2019-01-03 21:00:20 +00:00
Jim Blandy
641b0f8465 Bug 1145201: Remove unnecessary SpiderMonkey internal job queue reset. r=jorendorff
The call to `cx->jobQueue->reset()` doesn't do anything that isn't also
accomplished by the call to `fop->delete_(cx->jobQueue.ref())` two lines later.
Since `cx->jobQueue` is a `ThreadData<PersistentRooted<JobQueue>*>`, the
`PersistentRooted` actually owns the `JobQueue` (despite the field's name
`ptr`), rather than holding a pointer to it, so deleting the `PersistentRooted`
invokes the `JobQueue` destructor.

In more detail:

`JSContext::jobQueue` is a `ThreadData<PersistentRooted<JobQueue>*>`, so the
call `cx->jobQueue->reset()` performs the following steps:

- Call `ProtectedData::operator->`, obtaining a (const reference to a non-const)
  pointer `PersistentRooted<JobQueue>*`.

- Call `PersistentRooted::reset`, which move-assigns a fresh `JobQueue` to the
  `ptr` member. Note that `PersistentRooted<JobQueue>::ptr` is a `JobQueue`,
  *not* a pointer.

But the subsequent call to `fop->delete_(cx->jobQueue.ref())` will perform the
following steps:

- Call `ProtectedData::ref`, obtaining a (reference to a)
  `PersistentRooted<JobQueue>*` pointer.

- Call `PersistentRooted<JobQueue>`'s destructor, which destructs `ptr`. Since
  `ptr` is a `JobQueue`, this calls the `JobQueue`'s destructor, safely freeing
  its resources.

Differential Revision: https://phabricator.services.mozilla.com/D15120

--HG--
extra : moz-landing-system : lando
2019-01-03 15:19:09 +00:00
Jeff Walden
aa6f3e1d6c Bug 1516697 - Split {Module,Function}Validator classes into {Module,Function}Validator{,Shared} to segregate source-unit-agnostic parts from source-unit-aware parts, use the correct types in all signatures, and use *ValidatorShared::* instead of *Validator::* for nested classes that are common to both source types. r=arai 2018-12-28 11:07:24 -06:00
Benjamin Bouvier
1542471486 Bug 1517752: Update to Cranelift 0.26; r=sunfish 2019-01-04 16:19:48 +01:00
Jeff Walden
8d2567fd4e Back out 4a8940073f8c and c7577c232591for some asm.js failures. r=bustage in a CLOSED TREE 2019-01-04 12:53:18 -06:00
Jeff Walden
b57a125e58 Bug 1517624 - Followup fix for the sm-rust job, r=bustage, r=me as trivial 2019-01-04 12:32:07 -06:00
Jeff Walden
821a25c308 Bug 1517674 - Rename JS_NewDateObject and JS_ObjectIsDate to JS:: versions of the same, and move their declarations to js/public/Date.h and their implementations to js/src/jsdate.cpp. r=arai 2019-01-04 11:43:31 -06:00
Jeff Walden
87aba62a4a Bug 1517624 - Move JSPropertySpec and JSFunctionSpec definitions into a new js/public/PropertySpec.h header. r=arai 2019-01-03 15:37:01 -06:00
Jeff Walden
ab149ff59b Bug 1516796 - Move property-descriptor APIs into a minimal js/public/PropertyDescriptor.h header, that (at least for now) jsapi.h #includes because it still contains some property-definition stuff. r=arai 2018-12-29 13:47:29 -06:00
Jeff Walden
6cfdc00403 Bug 1516742 - Move {js::,JS_}{{Strictly,Loosely}Equal,SameValue} into js/public/Equality.h and js/src/vm/EqualityOperations.{cpp,h}. r=arai 2018-12-29 00:06:21 -06:00
Jeff Walden
bc490ae90f Bug 1516713 - Move buildId-related stuff out of jsapi.h into a new js/public/BuildId.h header. r=arai 2018-12-28 21:00:58 -06:00
Jeff Walden
fcdd8f5160 Bug 1516697 - Make AsmJSParser a template typedef and {Module,Function}Validator template classes. r=arai 2018-12-28 21:00:57 -06:00
Jeff Walden
ea1a7af6af Bug 1516697 - Use |using| to define various typedefs in AsmJS.cpp. r=arai 2018-12-28 21:00:57 -06:00
Jeff Walden
2c93aefa5a Bug 1516697 - Split {Module,Function}Validator classes into {Module,Function}Validator{,Shared} to segregate source-unit-agnostic parts from source-unit-aware parts, use the correct types in all signatures, and use *ValidatorShared::* instead of *Validator::* for nested classes that are common to both source types. r=arai 2018-12-28 11:07:24 -06:00
Jeff Walden
3095483e4a Bug 1516697 - Don't use std::abs on a value that could possibly be -2147483648 (whose absolute value can't be computed when |int| is 32-bit-sized). r=arai 2018-12-28 11:07:23 -06:00
Jan de Mooij
78e49f6404 Bug 1512029 part 4 - Use the privileged junk scope's compartment for sandboxes created with the system principal. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D14255

--HG--
extra : moz-landing-system : lando
2019-01-03 10:02:31 +00:00
Jan de Mooij
cdbd8647b5 Bug 1516237 - Fix FixWaiverAfterTransplant to nuke CCWs for oldWaiver in the new compartment. r=bholley
This case can come up with same-compartment realms. Keeping these CCWs
would confuse RemapWrapper because it'd be called with the CCW and target
in the same compartment.

Differential Revision: https://phabricator.services.mozilla.com/D15491

--HG--
extra : moz-landing-system : lando
2019-01-03 09:04:02 +00:00
Jan de Mooij
c310b8a7a7 Bug 1467124 - Fix WindowProxy optimizations in the JIT for same-compartment realms. r=bzbarsky
Makes the following changes:

* The WindowProxy optimizations in the ICs and Ion now guard the WindowProxy's
  global is the script's global. Other WindowProxies are harder to optimize
  because of potential security checks based on document.domain.

* IsWindowProxyForScriptGlobal was added as helper function to consolidate the
  logic for this.

* Removes the WindowProxy optimization for CCWs. This becomes more complicated
  in the new world for various reasons and it seems better to focus on
  getting same-compartment realms working to address that use case.

Differential Revision: https://phabricator.services.mozilla.com/D15492

--HG--
extra : moz-landing-system : lando
2019-01-03 08:52:43 +00:00
Jan de Mooij
f9e1248a94 Bug 1516967 - Call the large allocation callback before reporting OOM in JSRuntime::createJitRuntime. r=lhansen
Differential Revision: https://phabricator.services.mozilla.com/D15560

--HG--
extra : moz-landing-system : lando
2019-01-03 08:48:33 +00:00
Bogdan Tara
954395da08 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2019-01-02 23:41:59 +02:00
Bogdan Tara
6582cc9a1d Merge inbound to mozilla-central. a=merge 2019-01-02 23:36:12 +02:00
Sean Stangl
159e4bb574 Bug 1516701 - Implement MacroAssembler::storeRegsInMask(). r=nbp
Makes progress in basic/array-copyWithin.js.

Fixup for storeRegsInMask.
2018-12-28 14:26:00 +02:00
Sean Stangl
4e37f82d83 Bug 1516700 - ARM64: Use SwitchTableType::OutOfLine. r=nbp 2018-12-28 14:23:00 +02:00
Sean Stangl
18984545af Bug 1516693 - ARM64: Correctly update framePushed_ in buildOOLFakeExitFrame(). r=nbp 2018-12-28 13:07:00 +02:00
Jon Coppeard
9f444751c3 Bug 1514850 - Don't delay checking of cells that are already marked black r=sfink 2019-01-02 18:19:01 +00:00
Jon Coppeard
bc5158e75b Bug 1516138 - Check GC zeal mode is in range r=allstars.chh 2019-01-02 18:19:01 +00:00
Jon Coppeard
26e28a8c42 Bug 1516409 - Separate out flags for gray and black delayed marking r=sfink 2019-01-02 18:19:01 +00:00
Peter Van der Beken
066d891adb Bug 1353867 - Add cross-process proxies for WindowProxy. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D12656

--HG--
extra : moz-landing-system : lando
2019-01-02 13:29:18 +00:00
Peter Van der Beken
43adb531b7 Bug 1353867 - Expose IsCrossOriginWhitelistedProp/AppendCrossOriginWhitelistedPropNames to DOM code. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D12655

--HG--
extra : moz-landing-system : lando
2019-01-02 13:28:40 +00:00
Peter Van der Beken
58c7fc4d20 Bug 1353867 - Change WindowProxyHolder's native type to BrowsingContext. r=bzbarsky
Make the WindowProxyHolder hold a strong reference to a BrowsingContext, as in the future
we might not have a nsPIDOMWindowOuter (if the document is loaded in a different process).

Differential Revision: https://phabricator.services.mozilla.com/D12651

--HG--
extra : moz-landing-system : lando
2019-01-02 13:27:05 +00:00
Jeff Walden
075ee67ae1 Bug 1516697 - Make wasm/AsmJS.h minimally include only what it needs. r=arai 2018-12-26 20:59:49 -06:00