зеркало из https://github.com/mozilla/gecko-dev.git
Merge inbound to mozilla-central. a=merge
This commit is contained in:
Коммит
d9c49c81c5
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче