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:
Saebom Kim 2017-02-07 17:15:34 +09:00 committed by Young-il Choi
commit d2aae57751
5 changed files with 66 additions and 31 deletions

View file

@ -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;
}
}