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 EnqueueMicrotask(Handle<JSFunction> microtask); | 1080 void EnqueueMicrotask(Handle<Object> microtask); |
1081 void RunMicrotasks(); | 1081 void RunMicrotasks(); |
1082 | 1082 |
1083 private: | 1083 private: |
1084 Isolate(); | 1084 Isolate(); |
1085 | 1085 |
1086 friend struct GlobalState; | 1086 friend struct GlobalState; |
1087 friend struct InitializeGlobalState; | 1087 friend struct InitializeGlobalState; |
1088 | 1088 |
1089 enum State { | 1089 enum State { |
1090 UNINITIALIZED, // Some components may not have been allocated. | 1090 UNINITIALIZED, // Some components may not have been allocated. |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1489 } | 1489 } |
1490 | 1490 |
1491 EmbeddedVector<char, 128> filename_; | 1491 EmbeddedVector<char, 128> filename_; |
1492 FILE* file_; | 1492 FILE* file_; |
1493 int scope_depth_; | 1493 int scope_depth_; |
1494 }; | 1494 }; |
1495 | 1495 |
1496 } } // namespace v8::internal | 1496 } } // namespace v8::internal |
1497 | 1497 |
1498 #endif // V8_ISOLATE_H_ | 1498 #endif // V8_ISOLATE_H_ |
OLD | NEW |