mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-29 10:02:14 +00:00
1. use typed allocate for all long-live objects
2. implicitly delete AST when ast is useless 3. allocate String::emptyString correctly 4. hide ptr in LeakChecker for better tracing Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
f95fd596ef
commit
2fc34d628a
44 changed files with 350 additions and 140 deletions
|
|
@ -16,10 +16,13 @@ VMInstance::VMInstance()
|
|||
if (getenv("TZ")) {
|
||||
m_timezoneID = getenv("TZ");
|
||||
}
|
||||
m_timezoneID = "US/Pacific";
|
||||
|
||||
auto temp = new DoubleInSmallValue(0);
|
||||
g_doubleInSmallValueTag = *((size_t*)temp);
|
||||
if (!String::emptyString) {
|
||||
String::emptyString = new (NoGC) ASCIIString("");
|
||||
}
|
||||
|
||||
DoubleInSmallValue temp(0);
|
||||
g_doubleInSmallValueTag = *((size_t*)&temp);
|
||||
g_stringTag = *((size_t*)String::emptyString);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue