Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1220)

Unified Diff: src/runtime.h

Issue 149053009: V8 JavaScript shared memory prototype. Base URL: https://chromium.googlesource.com/external/v8.git@master
Patch Set: Tweaks Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/objects-inl.h ('k') | src/runtime.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « src/objects-inl.h ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698