mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Fix some bugs and reduce memory usage from DateObject
* Manage a corner case in computing node LOC from bytecode * Change the VM's timezoneID setting to be lazy (because of a memory usage) * Fix some bugs on DateObject operation Signed-off-by: Saebom Kim sae-bom.kim@samsung.com
This commit is contained in:
parent
0f1cc8999c
commit
d2aae57751
5 changed files with 66 additions and 31 deletions
|
|
@ -53,6 +53,9 @@ ExtendedNodeLOC ByteCodeBlock::computeNodeLOCFromByteCode(Context* c, size_t cod
|
|||
for (size_t i = 0; i < m_locData.size(); i++) {
|
||||
if (m_locData[i].first == codePosition) {
|
||||
index = m_locData[i].second;
|
||||
if (index == SIZE_MAX) {
|
||||
return ExtendedNodeLOC(SIZE_MAX, SIZE_MAX, SIZE_MAX);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue