mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-29 10:02:14 +00:00
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:
parent
ab86e7137c
commit
ba7c596e59
34 changed files with 169 additions and 51 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue