| 619 | } |
| 620 | |
| 621 | Local<String> ModuleInternal::WrapModuleContent(const string& path) { |
| 622 | TNSPERF(); |
| 623 | |
| 624 | string content = Runtime::GetRuntime(m_isolate)->ReadFileText(path); |
| 625 | |
| 626 | // TODO: Use statically allocated buffer for better performance |
| 627 | string result(MODULE_PROLOGUE); |
| 628 | result.reserve(content.length() + 1024); |
| 629 | result += content; |
| 630 | result += MODULE_EPILOGUE; |
| 631 | |
| 632 | return ArgConverter::ConvertToV8String(m_isolate, result); |
| 633 | } |
| 634 | |
| 635 | ScriptCompiler::CachedData* ModuleInternal::TryLoadScriptCache(const std::string& path) { |
| 636 | TNSPERF(); |
nothing calls this directly
no test coverage detected