mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
1. use SmallValueVector for enumerate object in interpereter
2. use direct memory reference instead of in-direct memory reference in GetObjectPrecomputedCase 3. use StringView with String::subString if needed Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
643d608d99
commit
bf96bca7b0
10 changed files with 63 additions and 46 deletions
|
|
@ -82,19 +82,6 @@ ExtendedNodeLOC ByteCodeBlock::computeNodeLOC(StringView src, ExtendedNodeLOC so
|
|||
return ExtendedNodeLOC(line, column, index);
|
||||
}
|
||||
|
||||
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