Index: Source/bindings/core/v8/V8Binding.h |
diff --git a/Source/bindings/core/v8/V8Binding.h b/Source/bindings/core/v8/V8Binding.h |
index aaae3c39d62a77275436e04a2ec991a34b27146f..6174995e45d9fdf19e3f6ad06455b72115627393 100644 |
--- a/Source/bindings/core/v8/V8Binding.h |
+++ b/Source/bindings/core/v8/V8Binding.h |
@@ -63,6 +63,7 @@ class LocalFrame; |
class NodeFilter; |
class WorkerGlobalScope; |
class XPathNSResolver; |
+class FlexibleArrayBufferView; |
haraken
2015/07/30 14:54:57
Alphabetical order.
Michael Lippautz
2015/07/30 17:06:14
Done.
|
template <typename T> |
struct V8TypeOf { |
@@ -973,6 +974,12 @@ CORE_EXPORT Frame* toFrameIfNotDetached(v8::Local<v8::Context>); |
CORE_EXPORT EventTarget* toEventTarget(v8::Isolate*, v8::Local<v8::Value>); |
+// If 'storage' is non-null, it must be large enough to copy all bytes in the |
+// array buffer view into it. |
+// Use SMALL_ARRAY_BUFFER_VIEW_STORAGE(v8Value) to allocate it using alloca() in |
+// the callers stack frame. |
+CORE_EXPORT void toFlexibleArrayBufferView(v8::Isolate*, v8::Handle<v8::Value>, FlexibleArrayBufferView&, void* storage = nullptr); |
+ |
// If the current context causes out of memory, JavaScript setting |
// is disabled and it returns true. |
bool handleOutOfMemory(); |