v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
simd.h
Go to the documentation of this file.
1// Copyright 2022 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef V8_OBJECTS_SIMD_H_
6#define V8_OBJECTS_SIMD_H_
7
8#include <cstdint>
9
10#include "include/v8-internal.h"
11#include "src/objects/string.h"
12
13namespace v8 {
14namespace internal {
15
16uintptr_t ArrayIndexOfIncludesSmiOrObject(Address array_start,
17 uintptr_t array_len,
18 uintptr_t from_index,
19 Address search_element);
20uintptr_t ArrayIndexOfIncludesDouble(Address array_start, uintptr_t array_len,
21 uintptr_t from_index,
22 Address search_element);
23Tagged<Object> Uint8ArrayToHex(const char* bytes, size_t length,
24 DirectHandle<SeqOneByteString> string_output);
25template <typename T>
26bool ArrayBufferFromHex(base::Vector<T>& input_vector,
27 DirectHandle<JSArrayBuffer> buffer,
28 size_t output_length);
29
30} // namespace internal
31} // namespace v8
32
33#endif // V8_OBJECTS_SIMD_H_
uintptr_t ArrayIndexOfIncludesDouble(Address array_start, uintptr_t array_len, uintptr_t from_index, Address search_element)
Definition simd.cc:442
bool ArrayBufferFromHex(base::Vector< T > &input_vector, DirectHandle< JSArrayBuffer > buffer, size_t output_length)
Definition simd.cc:1035
uintptr_t ArrayIndexOfIncludesSmiOrObject(Address array_start, uintptr_t array_len, uintptr_t from_index, Address search_element)
Definition simd.cc:434
Tagged< Object > Uint8ArrayToHex(const char *bytes, size_t length, DirectHandle< SeqOneByteString > string_output)
Definition simd.cc:599