blob: 3af60eebabd9d98027a2995d27d639c3b24efb6a [file]
// Copyright 2020 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// TODO(nicohartmann): Discuss whether types used by multiple builtins should be
// in global namespace
@cppObjectLayoutDefinition
extern class BigIntBase extends PrimitiveHeapObject
generates 'BigInt';
type BigInt extends BigIntBase;
type MutableBigInt extends BigIntBase;
Convert<BigInt, MutableBigInt>(i: MutableBigInt): BigInt {
dcheck(bigint::IsCanonicalized(i));
return %RawDownCast<BigInt>(Convert<BigIntBase>(i));
}