File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -4400,6 +4400,18 @@ void FreeEnvironment(Environment* env) {
4400
4400
}
4401
4401
4402
4402
4403
+ MultiIsolatePlatform* CreatePlatform (
4404
+ int thread_pool_size,
4405
+ v8::TracingController* tracing_controller) {
4406
+ return new NodePlatform (thread_pool_size, tracing_controller);
4407
+ }
4408
+
4409
+
4410
+ void FreePlatform (MultiIsolatePlatform* platform) {
4411
+ delete platform;
4412
+ }
4413
+
4414
+
4403
4415
Local<Context> NewContext (Isolate* isolate,
4404
4416
Local<ObjectTemplate> object_template) {
4405
4417
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