mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
1. reduce memory usage of CallNativeFunction, CallBoundFunction
2. optimize StringBuilder Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
3a6cdd7931
commit
750ba31982
12 changed files with 236 additions and 72 deletions
|
|
@ -69,7 +69,7 @@ void ByteCodeBlock::fillLocDataIfNeeded(Context* c)
|
|||
// TODO
|
||||
// give correct stack limit to parser
|
||||
if (m_codeBlock->asInterpretedCodeBlock()->isGlobalScopeCodeBlock()) {
|
||||
ProgramNode* nd = esprima::parseProgram(m_codeBlock->asInterpretedCodeBlock()->context(), m_codeBlock->asInterpretedCodeBlock()->src(), nullptr, m_codeBlock->asInterpretedCodeBlock()->isStrict(), SIZE_MAX);
|
||||
ProgramNode* nd = esprima::parseProgram(c, m_codeBlock->asInterpretedCodeBlock()->src(), nullptr, m_codeBlock->asInterpretedCodeBlock()->isStrict(), SIZE_MAX);
|
||||
block = g.generateByteCode(c, m_codeBlock->asInterpretedCodeBlock(), nd, nd->scopeContext(), m_isEvalMode, m_isOnGlobal, true);
|
||||
} else {
|
||||
auto ret = c->scriptParser().parseFunction(m_codeBlock->asInterpretedCodeBlock(), SIZE_MAX);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue