| 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 "include/v8-debug.h" | 9 #include "include/v8-debug.h" |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 1116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1127 v8::ArrayBuffer::Allocator* array_buffer_allocator() const { | 1127 v8::ArrayBuffer::Allocator* array_buffer_allocator() const { |
| 1128 return array_buffer_allocator_; | 1128 return array_buffer_allocator_; |
| 1129 } | 1129 } |
| 1130 | 1130 |
| 1131 protected: | 1131 protected: |
| 1132 explicit Isolate(bool enable_serializer); | 1132 explicit Isolate(bool enable_serializer); |
| 1133 | 1133 |
| 1134 private: | 1134 private: |
| 1135 friend struct GlobalState; | 1135 friend struct GlobalState; |
| 1136 friend struct InitializeGlobalState; | 1136 friend struct InitializeGlobalState; |
| 1137 Handle<JSObject> SetUpSubregistry(Handle<JSObject> registry, Handle<Map> map, |
| 1138 const char* name); |
| 1137 | 1139 |
| 1138 // These fields are accessed through the API, offsets must be kept in sync | 1140 // These fields are accessed through the API, offsets must be kept in sync |
| 1139 // with v8::internal::Internals (in include/v8.h) constants. This is also | 1141 // with v8::internal::Internals (in include/v8.h) constants. This is also |
| 1140 // verified in Isolate::Init() using runtime checks. | 1142 // verified in Isolate::Init() using runtime checks. |
| 1141 void* embedder_data_[Internals::kNumIsolateDataSlots]; | 1143 void* embedder_data_[Internals::kNumIsolateDataSlots]; |
| 1142 Heap heap_; | 1144 Heap heap_; |
| 1143 | 1145 |
| 1144 // The per-process lock should be acquired before the ThreadDataTable is | 1146 // The per-process lock should be acquired before the ThreadDataTable is |
| 1145 // modified. | 1147 // modified. |
| 1146 class ThreadDataTable { | 1148 class ThreadDataTable { |
| (...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1579 } | 1581 } |
| 1580 | 1582 |
| 1581 EmbeddedVector<char, 128> filename_; | 1583 EmbeddedVector<char, 128> filename_; |
| 1582 FILE* file_; | 1584 FILE* file_; |
| 1583 int scope_depth_; | 1585 int scope_depth_; |
| 1584 }; | 1586 }; |
| 1585 | 1587 |
| 1586 } } // namespace v8::internal | 1588 } } // namespace v8::internal |
| 1587 | 1589 |
| 1588 #endif // V8_ISOLATE_H_ | 1590 #endif // V8_ISOLATE_H_ |
| OLD | NEW |