Merge inbound to mozilla-central. a=merge

This commit is contained in:
Noemi Erli 2019-01-11 23:54:33 +02:00
Родитель ff92f74db5 6b10b1a1df
Коммит d9c49c81c5
5 изменённых файлов: 23 добавлений и 8 удалений

Просмотреть файл

@ -1574,7 +1574,7 @@ function TypedArrayToStringTag() {
var O = this;
// Steps 2-3.
if (!IsObject(O) || !IsTypedArray(O))
if (!IsObject(O) || !IsPossiblyWrappedTypedArray(O))
return undefined;
// Steps 4-6.

Просмотреть файл

@ -0,0 +1,12 @@
const TypedArrayPrototype = Object.getPrototypeOf(Int8Array.prototype);
const {get: toStringTag} = Object.getOwnPropertyDescriptor(TypedArrayPrototype, Symbol.toStringTag);
const otherGlobal = newGlobal();
for (let constructor of anyTypedArrayConstructors) {
let ta = new otherGlobal[constructor.name](0);
assertEq(toStringTag.call(ta), constructor.name);
}
if (typeof reportCompare === "function")
reportCompare(true, true);

Просмотреть файл

@ -2140,8 +2140,10 @@ static bool intrinsic_NameForTypedArray(JSContext* cx, unsigned argc,
MOZ_ASSERT(args.length() == 1);
MOZ_ASSERT(args[0].isObject());
RootedObject object(cx, &args[0].toObject());
MOZ_ASSERT(object->is<TypedArrayObject>());
auto* object = UnwrapAndDowncastValue<TypedArrayObject>(cx, args[0]);
if (!object) {
return false;
}
JSProtoKey protoKey = StandardProtoKeyOrNull(object);
MOZ_ASSERT(protoKey);

Просмотреть файл

@ -14200,22 +14200,22 @@
"GFX_OMTP_PAINT_TIME": {
"record_in_processes": ["content"],
"alert_emails": ["gfx-telemetry-alerts@mozilla.com", "rhunt@mozilla.com"],
"expires_in_version": "70",
"expires_in_version": "never",
"kind": "exponential",
"high": 10000,
"n_buckets": 50,
"description": "Amount of time in tenths of a millisecond from the beginning of the first async paint until all async paints are finished.",
"bug_numbers": [1483245]
"bug_numbers": [1483245, 1518669]
},
"GFX_OMTP_PAINT_WAIT_TIME": {
"record_in_processes": ["content"],
"alert_emails": ["gfx-telemetry-alerts@mozilla.com", "rhunt@mozilla.com"],
"expires_in_version": "66",
"expires_in_version": "never",
"kind": "exponential",
"high": 200,
"n_buckets": 50,
"description": "Amount of time in milliseconds the main thread spends waiting for the paint thread to complete, if the time was greater than 200us.",
"bug_numbers": [1386968]
"bug_numbers": [1386968, 1518669]
},
"GFX_OMTP_PAINT_TASK_COUNT": {
"record_in_processes": ["content"],

Просмотреть файл

@ -1833,12 +1833,13 @@ gfx.omtp:
paint_wait_ratio:
bug_numbers:
- 1386968
- 1518669
description: >
Ratio (in units of 1/100th of a percent) of how many times OMTP waited
for a paint for more than 200us, versus the total number of paints.
keyed: false
kind: uint
expires: "66"
expires: "never"
notification_emails:
- gfx-telemetry-alerts@mozilla.com
- rhunt@mozilla.com