V8ScriptHolder* V8IsolateImpl::Compile(const wchar_t* pDocumentName, const wchar_t* pCode) { BEGIN_ISOLATE_SCOPE SharedPtr<V8ContextImpl> spContextImpl((m_ContextPtrs.size() > 0) ? m_ContextPtrs.front() : new V8ContextImpl(this, nullptr, false, true, 0)); return spContextImpl->Compile(pDocumentName, pCode); END_ISOLATE_SCOPE }
V8ScriptHolder* V8IsolateImpl::Compile(const StdString& documentName, const StdString& code) { BEGIN_ISOLATE_SCOPE SharedPtr<V8ContextImpl> spContextImpl((m_ContextPtrs.size() > 0) ? m_ContextPtrs.front() : new V8ContextImpl(this, StdString(), false, true, 0)); return spContextImpl->Compile(documentName, code); END_ISOLATE_SCOPE }