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

Side by Side Diff: src/d8.h

Issue 1215233004: Fix bug when transferring SharedArrayBuffer to multiple Workers. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: internalize transferred ArrayBuffer Created 5 years, 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/d8.cc » ('j') | src/d8.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_D8_H_ 5 #ifndef V8_D8_H_
6 #define V8_D8_H_ 6 #define V8_D8_H_
7 7
8 #ifndef V8_SHARED 8 #ifndef V8_SHARED
9 #include "src/allocation.h" 9 #include "src/allocation.h"
10 #include "src/hashmap.h" 10 #include "src/hashmap.h"
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 int* offset) const; 208 int* offset) const;
209 209
210 template <typename T> 210 template <typename T>
211 T Read(int* offset) const { 211 T Read(int* offset) const {
212 T value; 212 T value;
213 ReadMemory(&value, sizeof(value), offset); 213 ReadMemory(&value, sizeof(value), offset);
214 return value; 214 return value;
215 } 215 }
216 216
217 private: 217 private:
218 i::List<uint8_t> data; 218 i::List<uint8_t> data_;
219 i::List<ArrayBuffer::Contents> array_buffer_contents; 219 i::List<ArrayBuffer::Contents> array_buffer_contents_;
220 i::List<SharedArrayBuffer::Contents> shared_array_buffer_contents; 220 i::List<SharedArrayBuffer::Contents> shared_array_buffer_contents_;
221 }; 221 };
222 222
223 223
224 class SerializationDataQueue { 224 class SerializationDataQueue {
225 public: 225 public:
226 void Enqueue(SerializationData* data); 226 void Enqueue(SerializationData* data);
227 bool Dequeue(SerializationData** data); 227 bool Dequeue(SerializationData** data);
228 bool IsEmpty(); 228 bool IsEmpty();
229 void Clear(); 229 void Clear();
230 230
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 static void RunShell(Isolate* isolate); 478 static void RunShell(Isolate* isolate);
479 static bool SetOptions(int argc, char* argv[]); 479 static bool SetOptions(int argc, char* argv[]);
480 static Handle<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate); 480 static Handle<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate);
481 }; 481 };
482 482
483 483
484 } // namespace v8 484 } // namespace v8
485 485
486 486
487 #endif // V8_D8_H_ 487 #endif // V8_D8_H_
OLDNEW
« no previous file with comments | « no previous file | src/d8.cc » ('j') | src/d8.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698