| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |