5 #ifndef V8_BUILTINS_BUILTINS_TYPED_ARRAY_GEN_H_ 6 #define V8_BUILTINS_BUILTINS_TYPED_ARRAY_GEN_H_ 8 #include "src/code-stub-assembler.h" 18 template <
class... TArgs>
26 const char* method_name);
28 void GenerateTypedArrayPrototypeIterationMethod(
TNode<Context> context,
30 const char* method_name,
31 IterationKind iteration_kind);
63 Node* LoadDataPtr(
Node* typed_array);
76 return LoadObjectField<JSArrayBuffer>(typed_array,
77 JSTypedArray::kBufferOffset);
86 const char* method_name);
97 const char* method_name);
103 Label* call_runtime,
Label* if_source_too_large);
107 Label* call_runtime,
Label* if_source_too_large);
112 void CallCCopyFastNumberJSArrayElementsToTypedArray(
126 typedef std::function<void(ElementsKind, int, int)> TypedArraySwitchCase;
128 void DispatchTypedArrayByElementsKind(
129 TNode<Word32T> elements_kind,
const TypedArraySwitchCase& case_function);
135 #endif // V8_BUILTINS_BUILTINS_TYPED_ARRAY_GEN_H_