%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
// Copyright 2017 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. #include "src/builtins/builtins-bigint-gen.h" #include "src/builtins/builtins-utils-gen.h" #include "src/builtins/builtins.h" #include "src/codegen/code-stub-assembler.h" namespace v8 { namespace internal { // https://tc39.github.io/proposal-bigint/#sec-to-big-int64 TF_BUILTIN(BigIntToI64, CodeStubAssembler) { if (!Is64()) { Unreachable(); return; } auto value = Parameter<Object>(Descriptor::kArgument); auto context = Parameter<Context>(Descriptor::kContext); TNode<BigInt> n = ToBigInt(context, value); TVARIABLE(UintPtrT, var_low); TVARIABLE(UintPtrT, var_high); BigIntToRawBytes(n, &var_low, &var_high); Return(var_low.value()); } // https://tc39.github.io/proposal-bigint/#sec-to-big-int64 TF_BUILTIN(BigIntToI32Pair, CodeStubAssembler) { if (!Is32()) { Unreachable(); return; } auto value = Parameter<Object>(Descriptor::kArgument); auto context = Parameter<Context>(Descriptor::kContext); TNode<BigInt> bigint = ToBigInt(context, value); TVARIABLE(UintPtrT, var_low); TVARIABLE(UintPtrT, var_high); BigIntToRawBytes(bigint, &var_low, &var_high); Return(var_low.value(), var_high.value()); } // https://tc39.github.io/proposal-bigint/#sec-bigint-constructor-number-value TF_BUILTIN(I64ToBigInt, CodeStubAssembler) { if (!Is64()) { Unreachable(); return; } auto argument = UncheckedParameter<IntPtrT>(Descriptor::kArgument); Return(BigIntFromInt64(argument)); } // https://tc39.github.io/proposal-bigint/#sec-bigint-constructor-number-value TF_BUILTIN(I32PairToBigInt, CodeStubAssembler) { if (!Is32()) { Unreachable(); return; } auto low = UncheckedParameter<IntPtrT>(Descriptor::kLow); auto high = UncheckedParameter<IntPtrT>(Descriptor::kHigh); Return(BigIntFromInt32Pair(low, high)); } } // namespace internal } // namespace v8