Implement PrototypeObject

PrototypeObject always returns true in Object::isEverSetAsPrototypeObject.
thus it don't need another space for mark it was used for prototype object.
this object can reduce a lots allocation of ObjectRaraData

Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
Seonghyun Kim 2022-04-14 16:22:17 +09:00 committed by Boram Bae
commit ba7c596e59
34 changed files with 169 additions and 51 deletions

View file

@ -26,7 +26,7 @@ namespace Escargot {
Object* ScriptGeneratorFunctionObject::createFunctionPrototypeObject(ExecutionState& state)
{
Object* prototype = new Object(state, m_codeBlock->context()->globalObject()->generatorPrototype());
Object* prototype = new PrototypeObject(state, m_codeBlock->context()->globalObject()->generatorPrototype());
return prototype;
}