mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
1. remove libunwind from Makefile & source
2. disable thread function in bdwgc 3. remove m_version from ObjectStructure 4. add rawBuffer in TypedArrayObject 5. remove wrong usage of Value::toArrayIndex and Value::toIndex 6. optimize String::tryToUseAsArrayIndex, String::tryToUseAsIndex Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
d2aae57751
commit
1b044658fc
19 changed files with 221 additions and 203 deletions
|
|
@ -77,6 +77,19 @@ ExtendedNodeLOC ByteCodeBlock::computeNodeLOCFromByteCode(Context* c, size_t cod
|
|||
return ExtendedNodeLOC(line, column, codePosition);
|
||||
}
|
||||
|
||||
void* GetObjectInlineCacheData::operator new(size_t size)
|
||||
{
|
||||
static bool typeInited = false;
|
||||
static GC_descr descr;
|
||||
if (!typeInited) {
|
||||
GC_word obj_bitmap[GC_BITMAP_SIZE(GetObjectInlineCacheData)] = { 0 };
|
||||
GC_set_bit(obj_bitmap, GC_WORD_OFFSET(GetObjectInlineCacheData, m_cachedhiddenClassChain));
|
||||
descr = GC_make_descriptor(obj_bitmap, GC_WORD_LEN(GetObjectInlineCacheData));
|
||||
typeInited = true;
|
||||
}
|
||||
return GC_MALLOC_EXPLICITLY_TYPED(size, descr);
|
||||
}
|
||||
|
||||
void* SetObjectInlineCache::operator new(size_t size)
|
||||
{
|
||||
static bool typeInited = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue