Merge Object::m_rareData with Object::m_prototype

Object::m_rareData share space with Object::m_prototype
- ObjectRareData inherits PointerValue

Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
This commit is contained in:
seonghyun kim 2017-01-26 16:20:16 +09:00
commit a8754aac97
15 changed files with 89 additions and 43 deletions

View file

@ -20,7 +20,6 @@ void* StringObject::operator new(size_t size)
if (!typeInited) {
GC_word obj_bitmap[GC_BITMAP_SIZE(StringObject)] = { 0 };
GC_set_bit(obj_bitmap, GC_WORD_OFFSET(StringObject, m_structure));
GC_set_bit(obj_bitmap, GC_WORD_OFFSET(StringObject, m_rareData));
GC_set_bit(obj_bitmap, GC_WORD_OFFSET(StringObject, m_prototype));
GC_set_bit(obj_bitmap, GC_WORD_OFFSET(StringObject, m_values));
GC_set_bit(obj_bitmap, GC_WORD_OFFSET(StringObject, m_primitiveValue));