mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
move VM-bound data into VMInstance from context
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
add7a8266d
commit
34dad07c79
12 changed files with 352 additions and 299 deletions
|
|
@ -17,6 +17,7 @@
|
|||
#include "Escargot.h"
|
||||
#include "ArrayObject.h"
|
||||
#include "Context.h"
|
||||
#include "VMInstance.h"
|
||||
|
||||
namespace Escargot {
|
||||
|
||||
|
|
@ -29,7 +30,7 @@ ArrayObject::ArrayObject(ExecutionState& state)
|
|||
m_values[ESCARGOT_OBJECT_BUILTIN_PROPERTY_NUMBER] = Value(0);
|
||||
setPrototype(state, state.context()->globalObject()->arrayPrototype());
|
||||
|
||||
if (UNLIKELY(state.context()->didSomePrototypeObjectDefineIndexedProperty())) {
|
||||
if (UNLIKELY(state.context()->vmInstance()->didSomePrototypeObjectDefineIndexedProperty())) {
|
||||
ensureObjectRareData()->m_isFastModeArrayObject = false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue