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 <memory> | 8 #include <memory> |
9 #include <queue> | 9 #include <queue> |
10 | 10 |
(...skipping 1144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1155 bool IsInAnyContext(Object* object, uint32_t index); | 1155 bool IsInAnyContext(Object* object, uint32_t index); |
1156 | 1156 |
1157 void SetRAILMode(RAILMode rail_mode); | 1157 void SetRAILMode(RAILMode rail_mode); |
1158 | 1158 |
1159 void IsolateInForegroundNotification(); | 1159 void IsolateInForegroundNotification(); |
1160 | 1160 |
1161 void IsolateInBackgroundNotification(); | 1161 void IsolateInBackgroundNotification(); |
1162 | 1162 |
1163 bool IsIsolateInBackground() { return is_isolate_in_background_; } | 1163 bool IsIsolateInBackground() { return is_isolate_in_background_; } |
1164 | 1164 |
1165 void PrintWithTimestamp(const char* format, ...); | 1165 PRINTF_FORMAT(2, 3) void PrintWithTimestamp(const char* format, ...); |
1166 | 1166 |
1167 protected: | 1167 protected: |
1168 explicit Isolate(bool enable_serializer); | 1168 explicit Isolate(bool enable_serializer); |
1169 bool IsArrayOrObjectPrototype(Object* object); | 1169 bool IsArrayOrObjectPrototype(Object* object); |
1170 | 1170 |
1171 private: | 1171 private: |
1172 friend struct GlobalState; | 1172 friend struct GlobalState; |
1173 friend struct InitializeGlobalState; | 1173 friend struct InitializeGlobalState; |
1174 Handle<JSObject> SetUpSubregistry(Handle<JSObject> registry, Handle<Map> map, | 1174 Handle<JSObject> SetUpSubregistry(Handle<JSObject> registry, Handle<Map> map, |
1175 const char* name); | 1175 const char* name); |
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1671 | 1671 |
1672 EmbeddedVector<char, 128> filename_; | 1672 EmbeddedVector<char, 128> filename_; |
1673 FILE* file_; | 1673 FILE* file_; |
1674 int scope_depth_; | 1674 int scope_depth_; |
1675 }; | 1675 }; |
1676 | 1676 |
1677 } // namespace internal | 1677 } // namespace internal |
1678 } // namespace v8 | 1678 } // namespace v8 |
1679 | 1679 |
1680 #endif // V8_ISOLATE_H_ | 1680 #endif // V8_ISOLATE_H_ |
OLD | NEW |