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 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1131 } | 1131 } |
1132 v8::ArrayBuffer::Allocator* array_buffer_allocator() const { | 1132 v8::ArrayBuffer::Allocator* array_buffer_allocator() const { |
1133 return array_buffer_allocator_; | 1133 return array_buffer_allocator_; |
1134 } | 1134 } |
1135 | 1135 |
1136 FutexWaitListNode* futex_wait_list_node() { return &futex_wait_list_node_; } | 1136 FutexWaitListNode* futex_wait_list_node() { return &futex_wait_list_node_; } |
1137 | 1137 |
1138 void RegisterCancelableTask(Cancelable* task); | 1138 void RegisterCancelableTask(Cancelable* task); |
1139 void RemoveCancelableTask(Cancelable* task); | 1139 void RemoveCancelableTask(Cancelable* task); |
1140 | 1140 |
| 1141 interpreter::Interpreter* interpreter() const { return interpreter_; } |
| 1142 |
1141 protected: | 1143 protected: |
1142 explicit Isolate(bool enable_serializer); | 1144 explicit Isolate(bool enable_serializer); |
1143 | 1145 |
1144 private: | 1146 private: |
1145 friend struct GlobalState; | 1147 friend struct GlobalState; |
1146 friend struct InitializeGlobalState; | 1148 friend struct InitializeGlobalState; |
1147 Handle<JSObject> SetUpSubregistry(Handle<JSObject> registry, Handle<Map> map, | 1149 Handle<JSObject> SetUpSubregistry(Handle<JSObject> registry, Handle<Map> map, |
1148 const char* name); | 1150 const char* name); |
1149 | 1151 |
1150 // These fields are accessed through the API, offsets must be kept in sync | 1152 // These fields are accessed through the API, offsets must be kept in sync |
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1597 } | 1599 } |
1598 | 1600 |
1599 EmbeddedVector<char, 128> filename_; | 1601 EmbeddedVector<char, 128> filename_; |
1600 FILE* file_; | 1602 FILE* file_; |
1601 int scope_depth_; | 1603 int scope_depth_; |
1602 }; | 1604 }; |
1603 | 1605 |
1604 } } // namespace v8::internal | 1606 } } // namespace v8::internal |
1605 | 1607 |
1606 #endif // V8_ISOLATE_H_ | 1608 #endif // V8_ISOLATE_H_ |
OLD | NEW |