| 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_ISOLATE_H_ | 5 #ifndef V8_ISOLATE_H_ |
| 6 #define V8_ISOLATE_H_ | 6 #define V8_ISOLATE_H_ |
| 7 | 7 |
| 8 #include <queue> | 8 #include <queue> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 1121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1132 | 1132 |
| 1133 void set_array_buffer_allocator(v8::ArrayBuffer::Allocator* allocator) { | 1133 void set_array_buffer_allocator(v8::ArrayBuffer::Allocator* allocator) { |
| 1134 array_buffer_allocator_ = allocator; | 1134 array_buffer_allocator_ = allocator; |
| 1135 } | 1135 } |
| 1136 v8::ArrayBuffer::Allocator* array_buffer_allocator() const { | 1136 v8::ArrayBuffer::Allocator* array_buffer_allocator() const { |
| 1137 return array_buffer_allocator_; | 1137 return array_buffer_allocator_; |
| 1138 } | 1138 } |
| 1139 | 1139 |
| 1140 FutexWaitListNode* futex_wait_list_node() { return &futex_wait_list_node_; } | 1140 FutexWaitListNode* futex_wait_list_node() { return &futex_wait_list_node_; } |
| 1141 | 1141 |
| 1142 void RegisterCancelableTask(CancelableTask* task); | 1142 void RegisterCancelableTask(Cancelable* task); |
| 1143 void RemoveCancelableTask(CancelableTask* task); | 1143 void RemoveCancelableTask(Cancelable* task); |
| 1144 | 1144 |
| 1145 protected: | 1145 protected: |
| 1146 explicit Isolate(bool enable_serializer); | 1146 explicit Isolate(bool enable_serializer); |
| 1147 | 1147 |
| 1148 private: | 1148 private: |
| 1149 friend struct GlobalState; | 1149 friend struct GlobalState; |
| 1150 friend struct InitializeGlobalState; | 1150 friend struct InitializeGlobalState; |
| 1151 Handle<JSObject> SetUpSubregistry(Handle<JSObject> registry, Handle<Map> map, | 1151 Handle<JSObject> SetUpSubregistry(Handle<JSObject> registry, Handle<Map> map, |
| 1152 const char* name); | 1152 const char* name); |
| 1153 | 1153 |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1372 | 1372 |
| 1373 v8::Isolate::UseCounterCallback use_counter_callback_; | 1373 v8::Isolate::UseCounterCallback use_counter_callback_; |
| 1374 BasicBlockProfiler* basic_block_profiler_; | 1374 BasicBlockProfiler* basic_block_profiler_; |
| 1375 | 1375 |
| 1376 List<Object*> partial_snapshot_cache_; | 1376 List<Object*> partial_snapshot_cache_; |
| 1377 | 1377 |
| 1378 v8::ArrayBuffer::Allocator* array_buffer_allocator_; | 1378 v8::ArrayBuffer::Allocator* array_buffer_allocator_; |
| 1379 | 1379 |
| 1380 FutexWaitListNode futex_wait_list_node_; | 1380 FutexWaitListNode futex_wait_list_node_; |
| 1381 | 1381 |
| 1382 std::set<CancelableTask*> cancelable_tasks_; | 1382 std::set<Cancelable*> cancelable_tasks_; |
| 1383 | 1383 |
| 1384 friend class ExecutionAccess; | 1384 friend class ExecutionAccess; |
| 1385 friend class HandleScopeImplementer; | 1385 friend class HandleScopeImplementer; |
| 1386 friend class OptimizingCompileDispatcher; | 1386 friend class OptimizingCompileDispatcher; |
| 1387 friend class SweeperThread; | 1387 friend class SweeperThread; |
| 1388 friend class ThreadManager; | 1388 friend class ThreadManager; |
| 1389 friend class Simulator; | 1389 friend class Simulator; |
| 1390 friend class StackGuard; | 1390 friend class StackGuard; |
| 1391 friend class ThreadId; | 1391 friend class ThreadId; |
| 1392 friend class TestMemoryAllocatorScope; | 1392 friend class TestMemoryAllocatorScope; |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1602 } | 1602 } |
| 1603 | 1603 |
| 1604 EmbeddedVector<char, 128> filename_; | 1604 EmbeddedVector<char, 128> filename_; |
| 1605 FILE* file_; | 1605 FILE* file_; |
| 1606 int scope_depth_; | 1606 int scope_depth_; |
| 1607 }; | 1607 }; |
| 1608 | 1608 |
| 1609 } } // namespace v8::internal | 1609 } } // namespace v8::internal |
| 1610 | 1610 |
| 1611 #endif // V8_ISOLATE_H_ | 1611 #endif // V8_ISOLATE_H_ |
| OLD | NEW |