| 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 "../include/v8-debug.h" | 8 #include "../include/v8-debug.h" |
| 9 #include "allocation.h" | 9 #include "allocation.h" |
| 10 #include "assert-scope.h" | 10 #include "assert-scope.h" |
| (...skipping 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1070 return id; | 1070 return id; |
| 1071 } | 1071 } |
| 1072 | 1072 |
| 1073 // Get (and lazily initialize) the registry for per-isolate symbols. | 1073 // Get (and lazily initialize) the registry for per-isolate symbols. |
| 1074 Handle<JSObject> GetSymbolRegistry(); | 1074 Handle<JSObject> GetSymbolRegistry(); |
| 1075 | 1075 |
| 1076 void AddCallCompletedCallback(CallCompletedCallback callback); | 1076 void AddCallCompletedCallback(CallCompletedCallback callback); |
| 1077 void RemoveCallCompletedCallback(CallCompletedCallback callback); | 1077 void RemoveCallCompletedCallback(CallCompletedCallback callback); |
| 1078 void FireCallCompletedCallback(); | 1078 void FireCallCompletedCallback(); |
| 1079 | 1079 |
| 1080 void RunMicrotasks(); |
| 1081 |
| 1080 private: | 1082 private: |
| 1081 Isolate(); | 1083 Isolate(); |
| 1082 | 1084 |
| 1083 friend struct GlobalState; | 1085 friend struct GlobalState; |
| 1084 friend struct InitializeGlobalState; | 1086 friend struct InitializeGlobalState; |
| 1085 | 1087 |
| 1086 enum State { | 1088 enum State { |
| 1087 UNINITIALIZED, // Some components may not have been allocated. | 1089 UNINITIALIZED, // Some components may not have been allocated. |
| 1088 INITIALIZED // All components are fully initialized. | 1090 INITIALIZED // All components are fully initialized. |
| 1089 }; | 1091 }; |
| (...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1491 } | 1493 } |
| 1492 | 1494 |
| 1493 EmbeddedVector<char, 128> filename_; | 1495 EmbeddedVector<char, 128> filename_; |
| 1494 FILE* file_; | 1496 FILE* file_; |
| 1495 int scope_depth_; | 1497 int scope_depth_; |
| 1496 }; | 1498 }; |
| 1497 | 1499 |
| 1498 } } // namespace v8::internal | 1500 } } // namespace v8::internal |
| 1499 | 1501 |
| 1500 #endif // V8_ISOLATE_H_ | 1502 #endif // V8_ISOLATE_H_ |
| OLD | NEW |