%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 2021 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. #ifndef V8_COMPILER_FAST_API_CALLS_H_ #define V8_COMPILER_FAST_API_CALLS_H_ #include "include/v8-fast-api-calls.h" #include "src/compiler/graph-assembler.h" namespace v8 { namespace internal { namespace compiler { namespace fast_api_call { struct OverloadsResolutionResult { static OverloadsResolutionResult Invalid() { return OverloadsResolutionResult(-1, CTypeInfo::Type::kVoid); } OverloadsResolutionResult(int distinguishable_arg_index_, CTypeInfo::Type element_type_) : distinguishable_arg_index(distinguishable_arg_index_), element_type(element_type_) { DCHECK(distinguishable_arg_index_ < 0 || element_type_ != CTypeInfo::Type::kVoid); } bool is_valid() const { return distinguishable_arg_index >= 0; } // The index of the distinguishable overload argument. Only the case where the // types of this argument is a JSArray vs a TypedArray is supported. int distinguishable_arg_index; // The element type in the typed array argument. CTypeInfo::Type element_type; }; ElementsKind GetTypedArrayElementsKind(CTypeInfo::Type type); OverloadsResolutionResult ResolveOverloads( Zone* zone, const FastApiCallFunctionVector& candidates, unsigned int arg_count); } // namespace fast_api_call } // namespace compiler } // namespace internal } // namespace v8 #endif // V8_COMPILER_FAST_API_CALLS_H_