import change from rmottola/Arctic-Fox:

- Bug 1137780 - Add a skiplist enumerator for JitcodeGlobalTable for removing while traversing. (778c8fc85)
- Bug 1137780 - Fix marking JitcodeGlobalTable. (32b24d140)
- Bug 1139552 - Convert js::gc::AllocKind to an enum class and eliminate non-AllocKind indexing. (a28742322)
- some pointer style again (627097e2a)
- Bug 1140586 part 3. Drop the funobjArg of js::NewFunction and js::NewFunctionWithProto. (c9bcf8906)
- Bug 1140586 part 4. Stop passing non-null parents to js::NewFunctionWithProto when creating a native function via direct calls to that API. (8d6d2c9ba)
This commit is contained in:
2019-04-08 21:06:48 +08:00
parent 9cc8d52f14
commit 0b23a2783d
57 changed files with 1032 additions and 650 deletions
+3 -3
View File
@@ -3227,11 +3227,11 @@ CreateArrayPrototype(JSContext* cx, JSProtoKey key)
proto->assertParentIs(cx->global());
RootedShape shape(cx, EmptyShape::getInitialShape(cx, &ArrayObject::class_, TaggedProto(proto),
cx->global(), metadata,
gc::FINALIZE_OBJECT0));
gc::AllocKind::OBJECT0));
if (!shape)
return nullptr;
RootedArrayObject arrayProto(cx, ArrayObject::createArray(cx, gc::FINALIZE_OBJECT4,
RootedArrayObject arrayProto(cx, ArrayObject::createArray(cx, gc::AllocKind::OBJECT4,
gc::TenuredHeap, shape, group, 0));
if (!arrayProto ||
!JSObject::setSingleton(cx, arrayProto) ||
@@ -3385,7 +3385,7 @@ NewArray(ExclusiveContext* cxArg, uint32_t length,
*/
RootedShape shape(cxArg, EmptyShape::getInitialShape(cxArg, &ArrayObject::class_,
TaggedProto(proto), cxArg->global(),
metadata, gc::FINALIZE_OBJECT0));
metadata, gc::AllocKind::OBJECT0));
if (!shape)
return nullptr;