History

Fix V8 scope performance issue on libnode22

ksuprynowicz committed 11 months ago

Commit a9bd0781 parent 4aad6b218 files · +298 −349Browse files

Showing the changes to libraries/script-engine/src/v8/ScriptProgramV8Wrapper.cpp (1 of 18 files). Show all

Unified · Split

libraries/script-engine/src/v8/ScriptProgramV8Wrapper.cpp+1−2
@@ -38,8 +38,7 @@ bool ScriptProgramV8Wrapper::compile() { · 37 unmodified lines
38 return true;38 return true;
39 }39 }
40 auto isolate = _engine->getIsolate();40 auto isolate = _engine->getIsolate();
41 v8::Locker locker(isolate);41 Q_ASSERT(isolate->IsCurrent());
42 v8::Isolate::Scope isolateScope(isolate);
43 v8::HandleScope handleScope(isolate);42 v8::HandleScope handleScope(isolate);
44 auto context = _engine->getContext();43 auto context = _engine->getContext();
45 v8::Context::Scope contextScope(context);44 v8::Context::Scope contextScope(context);