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 1147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1158 bool IsInAnyContext(Object* object, uint32_t index); | 1158 bool IsInAnyContext(Object* object, uint32_t index); |
1159 | 1159 |
1160 void SetRAILMode(RAILMode rail_mode); | 1160 void SetRAILMode(RAILMode rail_mode); |
1161 | 1161 |
1162 void IsolateInForegroundNotification(); | 1162 void IsolateInForegroundNotification(); |
1163 | 1163 |
1164 void IsolateInBackgroundNotification(); | 1164 void IsolateInBackgroundNotification(); |
1165 | 1165 |
1166 bool IsIsolateInBackground() { return is_isolate_in_background_; } | 1166 bool IsIsolateInBackground() { return is_isolate_in_background_; } |
1167 | 1167 |
| 1168 void PrintWithTimestamp(const char* format, ...); |
| 1169 |
1168 protected: | 1170 protected: |
1169 explicit Isolate(bool enable_serializer); | 1171 explicit Isolate(bool enable_serializer); |
1170 bool IsArrayOrObjectPrototype(Object* object); | 1172 bool IsArrayOrObjectPrototype(Object* object); |
1171 | 1173 |
1172 private: | 1174 private: |
1173 friend struct GlobalState; | 1175 friend struct GlobalState; |
1174 friend struct InitializeGlobalState; | 1176 friend struct InitializeGlobalState; |
1175 Handle<JSObject> SetUpSubregistry(Handle<JSObject> registry, Handle<Map> map, | 1177 Handle<JSObject> SetUpSubregistry(Handle<JSObject> registry, Handle<Map> map, |
1176 const char* name); | 1178 const char* name); |
1177 | 1179 |
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1674 | 1676 |
1675 EmbeddedVector<char, 128> filename_; | 1677 EmbeddedVector<char, 128> filename_; |
1676 FILE* file_; | 1678 FILE* file_; |
1677 int scope_depth_; | 1679 int scope_depth_; |
1678 }; | 1680 }; |
1679 | 1681 |
1680 } // namespace internal | 1682 } // namespace internal |
1681 } // namespace v8 | 1683 } // namespace v8 |
1682 | 1684 |
1683 #endif // V8_ISOLATE_H_ | 1685 #endif // V8_ISOLATE_H_ |
OLD | NEW |