1. split Vector into TightVector and Vector

2. implement basic of DateObject
3. implement continue statement

this patch passes 3d-raytrace.js

Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
This commit is contained in:
seonghyun kim 2016-12-09 13:55:47 +09:00
commit 8acbfcfe52
21 changed files with 190 additions and 105 deletions

View file

@ -83,9 +83,9 @@ static Value builtinObjectHasOwnProperty(ExecutionState& state, Value thisValue,
void GlobalObject::installObject(ExecutionState& state)
{
FunctionObject* emptyFunction = m_functionPrototype;
m_object = new FunctionObject(state, new CodeBlock(state.context(), NativeFunctionInfo(state.context()->staticStrings().Object, builtinObjectConstructor, 1, [](ExecutionState& state, size_t argc, Value* argv) -> Object* {
return new Object(state);
})));
m_object = new FunctionObject(state, NativeFunctionInfo(state.context()->staticStrings().Object, builtinObjectConstructor, 1, [](ExecutionState& state, size_t argc, Value* argv) -> Object* {
return new Object(state);
}));
m_object->markThisObjectDontNeedStructureTransitionTable(state);
m_object->setPrototype(state, emptyFunction);
// TODO m_object->defineAccessorProperty(strings->prototype.string(), ESVMInstance::currentInstance()->functionPrototypeAccessorData(), false, false, false);