File tree 2 files changed +22
-0
lines changed
2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -4769,6 +4769,18 @@ void FreeEnvironment(Environment* env) {
4769
4769
}
4770
4770
4771
4771
4772
+ MultiIsolatePlatform* CreatePlatform (
4773
+ int thread_pool_size,
4774
+ v8::TracingController* tracing_controller) {
4775
+ return new NodePlatform (thread_pool_size, tracing_controller);
4776
+ }
4777
+
4778
+
4779
+ void FreePlatform (MultiIsolatePlatform* platform) {
4780
+ delete platform;
4781
+ }
4782
+
4783
+
4772
4784
Local<Context> NewContext (Isolate* isolate,
4773
4785
Local<ObjectTemplate> object_template) {
4774
4786
auto context = Context::New (isolate, nullptr , object_template);
Original file line number Diff line number Diff line change 97
97
// Forward-declare libuv loop
98
98
struct uv_loop_s ;
99
99
100
+ // Forward-declare TracingController, used by CreatePlatform.
101
+ namespace v8 {
102
+ class TracingController ;
103
+ }
104
+
100
105
// Forward-declare these functions now to stop MSVS from becoming
101
106
// terminally confused when it's done in node_internals.h
102
107
namespace node {
@@ -244,6 +249,11 @@ NODE_EXTERN Environment* CreateEnvironment(IsolateData* isolate_data,
244
249
NODE_EXTERN void LoadEnvironment (Environment* env);
245
250
NODE_EXTERN void FreeEnvironment (Environment* env);
246
251
252
+ NODE_EXTERN MultiIsolatePlatform* CreatePlatform (
253
+ int thread_pool_size,
254
+ v8::TracingController* tracing_controller);
255
+ NODE_EXTERN void FreePlatform (MultiIsolatePlatform* platform);
256
+
247
257
NODE_EXTERN void EmitBeforeExit (Environment* env);
248
258
NODE_EXTERN int EmitExit (Environment* env);
249
259
NODE_EXTERN void RunAtExit (Environment* env);
You can’t perform that action at this time.
0 commit comments