Index: src/runtime.h |
diff --git a/src/runtime.h b/src/runtime.h |
index 3a5c4546a7f35ac099924558bf8f97eb011487b2..5415983e102cd02193f83099d6c13701077e0c1b 100644 |
--- a/src/runtime.h |
+++ b/src/runtime.h |
@@ -328,11 +328,31 @@ namespace internal { |
F(IsAccessAllowedForObserver, 3, 1) \ |
\ |
/* Harmony typed arrays */ \ |
- F(ArrayBufferInitialize, 2, 1)\ |
+ F(ArrayBufferInitialize, 3, 1)\ |
+ F(ArrayBufferGetShared, 1, 1)\ |
F(ArrayBufferSliceImpl, 3, 1) \ |
F(ArrayBufferIsView, 1, 1) \ |
F(ArrayBufferNeuter, 1, 1) \ |
\ |
+ /* Pthreads */ \ |
+ F(ArrayBufferMutexInit, 2, 1)\ |
+ F(ArrayBufferMutexDestroy, 2, 1)\ |
+ F(ArrayBufferMutexLock, 2, 1)\ |
+ F(ArrayBufferMutexUnlock, 2, 1)\ |
+ F(ArrayBufferMutexSize, 1, 1)\ |
+ \ |
+ F(ArrayBufferCondInit, 2, 1)\ |
+ F(ArrayBufferCondDestroy, 2, 1)\ |
+ F(ArrayBufferCondWait, 3, 1)\ |
+ F(ArrayBufferCondSignal, 2, 1)\ |
+ F(ArrayBufferCondBroadcast, 2, 1)\ |
+ F(ArrayBufferCondSize, 1, 1)\ |
+ \ |
+ F(ArrayBufferBarrierInit, 3, 1)\ |
+ F(ArrayBufferBarrierDestroy, 2, 1)\ |
+ F(ArrayBufferBarrierWait, 2, 1)\ |
+ F(ArrayBufferBarrierSize, 1, 1)\ |
+ \ |
F(TypedArrayInitializeFromArrayLike, 4, 1) \ |
F(TypedArrayGetBuffer, 1, 1) \ |
F(TypedArraySetFastCases, 3, 1) \ |
@@ -862,13 +882,15 @@ class Runtime : public AllStatic { |
Handle<JSArrayBuffer> array_buffer, |
bool is_external, |
void* data, |
- size_t allocated_length); |
+ size_t allocated_length, |
+ bool shared); |
static bool SetupArrayBufferAllocatingData( |
Isolate* isolate, |
Handle<JSArrayBuffer> array_buffer, |
size_t allocated_length, |
- bool initialize = true); |
+ bool initialize = true, |
+ bool shared = false); |
static void NeuterArrayBuffer(Handle<JSArrayBuffer> array_buffer); |