| Index: src/factory.cc
|
| diff --git a/src/factory.cc b/src/factory.cc
|
| index 400e15e5c97ddb4fc132baba1b630e7414953787..d231c625a8c035dae2420f45289a8d0fd7e436dc 100644
|
| --- a/src/factory.cc
|
| +++ b/src/factory.cc
|
| @@ -91,7 +91,6 @@ Handle<Box> Factory::NewBox(Handle<Object> value) {
|
| return result;
|
| }
|
|
|
| -
|
| Handle<PrototypeInfo> Factory::NewPrototypeInfo() {
|
| Handle<PrototypeInfo> result =
|
| Handle<PrototypeInfo>::cast(NewStruct(PROTOTYPE_INFO_TYPE));
|
| @@ -889,6 +888,18 @@ Handle<Struct> Factory::NewStruct(InstanceType type) {
|
| Struct);
|
| }
|
|
|
| +Handle<PromiseContainer> Factory::NewPromiseContainer(
|
| + Handle<Object> promise, Handle<Object> thenable, Handle<JSFunction> then,
|
| + Handle<JSFunction> resolve, Handle<JSFunction> reject) {
|
| + Handle<PromiseContainer> result =
|
| + Handle<PromiseContainer>::cast(NewStruct(PROMISE_CONTAINER_TYPE));
|
| + result->set_promise(*promise);
|
| + result->set_thenable(*thenable);
|
| + result->set_then(*then);
|
| + result->set_resolve(*resolve);
|
| + result->set_reject(*reject);
|
| + return result;
|
| +}
|
|
|
| Handle<AliasedArgumentsEntry> Factory::NewAliasedArgumentsEntry(
|
| int aliased_context_slot) {
|
|
|