| Index: src/factory.cc
|
| diff --git a/src/factory.cc b/src/factory.cc
|
| index 3f0f1b86888a2fa4d290d446f2fe9f548f645984..449f5e32db888d716cc563109701e31e55d52379 100644
|
| --- a/src/factory.cc
|
| +++ b/src/factory.cc
|
| @@ -1297,6 +1297,18 @@ Handle<JSFunction> Factory::NewFunctionWithoutPrototype(Handle<String> name,
|
| }
|
|
|
|
|
| +Handle<JSObject> Factory::NewIteratorResultObject(Handle<Object> value,
|
| + bool done) {
|
| + Handle<Map> map(isolate()->native_context()->iterator_result_map());
|
| + Handle<JSObject> result = NewJSObjectFromMap(map, NOT_TENURED, false);
|
| + result->InObjectPropertyAtPut(
|
| + JSGeneratorObject::kResultValuePropertyIndex, *value);
|
| + result->InObjectPropertyAtPut(
|
| + JSGeneratorObject::kResultDonePropertyIndex, *ToBoolean(done));
|
| + return result;
|
| +}
|
| +
|
| +
|
| Handle<ScopeInfo> Factory::NewScopeInfo(int length) {
|
| Handle<FixedArray> array = NewFixedArray(length, TENURED);
|
| array->set_map_no_write_barrier(*scope_info_map());
|
| @@ -2255,4 +2267,5 @@ Handle<Object> Factory::ToBoolean(bool value) {
|
| return value ? true_value() : false_value();
|
| }
|
|
|
| +
|
| } } // namespace v8::internal
|
|
|