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 @@ -4490,6 +4490,18 @@ void FreeEnvironment(Environment* env) {
4490
4490
}
4491
4491
4492
4492
4493
+ MultiIsolatePlatform* CreatePlatform (
4494
+ int thread_pool_size,
4495
+ v8::TracingController* tracing_controller) {
4496
+ return new NodePlatform (thread_pool_size, tracing_controller);
4497
+ }
4498
+
4499
+
4500
+ void FreePlatform (MultiIsolatePlatform* platform) {
4501
+ delete platform;
4502
+ }
4503
+
4504
+
4493
4505
Local<Context> NewContext (Isolate* isolate,
4494
4506
Local<ObjectTemplate> object_template) {
4495
4507
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