import change from rmottola/Arctic-Fox:

- initialize webp with different mode depending on endianness (c47ba6f6e)
- pointer style (09a5f12ee)
- Bug 1139983 - Fail the alloc if the nursery is full in NoGC (a85408eef)
- Bug 1135963. Allow JS_InitializePropertiesFromCompatibleNativeObject to deal with objects that have different prototypes. (ec8d1799b)
- Bug 1066233 - Part 1: Parser suppoert for ES6 ClassExpressions. (04e536bb6)
- Bug 1066233 - Part 2: Emitter support for ES6 ClassExpressions. (7e141d412)
- Bug 1066233 - Part 3: Reflect.parse support for ES6 ClassExpressions. (30595e6df)
- Bug 1066233 - Followup: Address a forgotten review comment. (836b26f59)
- Bug 1066233 - Tests. (5df23d2e6)
- Bug 1143106 - Fix construction of singleton objects during parsing when unboxed objects are in use (1749494c6)
This commit is contained in:
2019-05-21 11:02:01 +08:00
parent 4a37a0ce80
commit 44d5f1a6a9
41 changed files with 793 additions and 512 deletions
+7 -7
View File
@@ -3220,7 +3220,7 @@ CreateArrayPrototype(JSContext* cx, JSProtoKey key)
if (!group)
return nullptr;
JSObject* metadata = nullptr;
JSObject *metadata = nullptr;
if (!NewObjectMetadata(cx, &metadata))
return nullptr;
@@ -3324,7 +3324,7 @@ EnsureNewArrayElements(ExclusiveContext* cx, ArrayObject* obj, uint32_t length)
}
static bool
NewArrayIsCachable(ExclusiveContext* cxArg, NewObjectKind newKind)
NewArrayIsCachable(ExclusiveContext *cxArg, NewObjectKind newKind)
{
return cxArg->isJSContext() &&
newKind == GenericObject &&
@@ -3373,7 +3373,7 @@ NewArray(ExclusiveContext* cxArg, uint32_t length,
if (!group)
return nullptr;
JSObject* metadata = nullptr;
JSObject *metadata = nullptr;
if (!NewObjectMetadata(cxArg, &metadata))
return nullptr;
@@ -3547,14 +3547,14 @@ js::NewDenseFullyAllocatedArrayWithTemplate(JSContext* cx, uint32_t length, JSOb
return arr;
}
JSObject*
js::NewDenseCopyOnWriteArray(JSContext* cx, HandleArrayObject templateObject, gc::InitialHeap heap)
JSObject *
js::NewDenseCopyOnWriteArray(JSContext *cx, HandleArrayObject templateObject, gc::InitialHeap heap)
{
RootedShape shape(cx, templateObject->lastProperty());
MOZ_ASSERT(!gc::IsInsideNursery(templateObject));
JSObject* metadata = nullptr;
JSObject *metadata = nullptr;
if (!NewObjectMetadata(cx, &metadata))
return nullptr;
if (metadata) {
@@ -3563,7 +3563,7 @@ js::NewDenseCopyOnWriteArray(JSContext* cx, HandleArrayObject templateObject, gc
return nullptr;
}
ArrayObject* arr = ArrayObject::createCopyOnWriteArray(cx, heap, shape, templateObject);
ArrayObject *arr = ArrayObject::createCopyOnWriteArray(cx, heap, shape, templateObject);
if (!arr)
return nullptr;