Hi, thanks for the response. I guess to do this I am talking about a fork of the V8 code, which is certainly unfortunate. I'd just like to get an idea of the work involved; I need to embed a JS engine, and none of them seem like an exact fit for my needs; TraceMonkey and JavaScriptCore look like they may be more heavyweight than V8, and may have more runtime dependencies as well.
I need something as lightweight as possible (that wont cause a bloated executable or have tons of dll-type dependencies) because the app is installed through downloading. For reference, I have used Lua for scripting up till now, which adds a grand total of about 300k of executable code to the app. I don't expect to get near that value from a JS engine, but still the smaller the better; more than a Mb or two of code from the JS engine will probably be unacceptable. Anyway, so, say I was to create an 'Engine' class to wrap up V8, and stuff all the static data in there. And then either use TLS to store an Engine reference, or modify the functions to take an 'Engine&' parameter. Would that work? Obviously forking is bad, and modifying lots of function signatures would be a fairly major job, but could I expect that to be enough to deal with the locking issue? Best Regards, Steve --~--~---------~--~----~------------~-------~--~----~ v8-users mailing list [email protected] http://groups.google.com/group/v8-users -~----------~----~----~----~------~----~------~--~---
