mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:30:27 +00:00
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:
+3
-3
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user