OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/factory.h" | 5 #include "src/factory.h" |
6 | 6 |
7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/allocation-site-scopes.h" | 8 #include "src/allocation-site-scopes.h" |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
(...skipping 919 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
930 Handle<PromiseContainer>::cast(NewStruct(PROMISE_CONTAINER_TYPE)); | 930 Handle<PromiseContainer>::cast(NewStruct(PROMISE_CONTAINER_TYPE)); |
931 result->set_thenable(*thenable); | 931 result->set_thenable(*thenable); |
932 result->set_then(*then); | 932 result->set_then(*then); |
933 result->set_resolve(*resolve); | 933 result->set_resolve(*resolve); |
934 result->set_reject(*reject); | 934 result->set_reject(*reject); |
935 result->set_before_debug_event(*before_debug_event); | 935 result->set_before_debug_event(*before_debug_event); |
936 result->set_after_debug_event(*after_debug_event); | 936 result->set_after_debug_event(*after_debug_event); |
937 return result; | 937 return result; |
938 } | 938 } |
939 | 939 |
| 940 Handle<PromiseReactionJobInfo> Factory::NewPromiseReactionJobInfo( |
| 941 Handle<Object> value, Handle<Object> tasks, Handle<Object> deferred, |
| 942 Handle<Object> before_debug_event, Handle<Object> after_debug_event, |
| 943 Handle<Context> context) { |
| 944 Handle<PromiseReactionJobInfo> result = Handle<PromiseReactionJobInfo>::cast( |
| 945 NewStruct(PROMISE_REACTION_JOB_INFO_TYPE)); |
| 946 result->set_value(*value); |
| 947 result->set_tasks(*tasks); |
| 948 result->set_deferred(*deferred); |
| 949 result->set_before_debug_event(*before_debug_event); |
| 950 result->set_after_debug_event(*after_debug_event); |
| 951 result->set_context(*context); |
| 952 return result; |
| 953 } |
| 954 |
940 Handle<AliasedArgumentsEntry> Factory::NewAliasedArgumentsEntry( | 955 Handle<AliasedArgumentsEntry> Factory::NewAliasedArgumentsEntry( |
941 int aliased_context_slot) { | 956 int aliased_context_slot) { |
942 Handle<AliasedArgumentsEntry> entry = Handle<AliasedArgumentsEntry>::cast( | 957 Handle<AliasedArgumentsEntry> entry = Handle<AliasedArgumentsEntry>::cast( |
943 NewStruct(ALIASED_ARGUMENTS_ENTRY_TYPE)); | 958 NewStruct(ALIASED_ARGUMENTS_ENTRY_TYPE)); |
944 entry->set_aliased_context_slot(aliased_context_slot); | 959 entry->set_aliased_context_slot(aliased_context_slot); |
945 return entry; | 960 return entry; |
946 } | 961 } |
947 | 962 |
948 | 963 |
949 Handle<AccessorInfo> Factory::NewAccessorInfo() { | 964 Handle<AccessorInfo> Factory::NewAccessorInfo() { |
(...skipping 1655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2605 Handle<AccessorInfo> prototype = | 2620 Handle<AccessorInfo> prototype = |
2606 Accessors::FunctionPrototypeInfo(isolate(), attribs); | 2621 Accessors::FunctionPrototypeInfo(isolate(), attribs); |
2607 AccessorConstantDescriptor d(Handle<Name>(Name::cast(prototype->name())), | 2622 AccessorConstantDescriptor d(Handle<Name>(Name::cast(prototype->name())), |
2608 prototype, attribs); | 2623 prototype, attribs); |
2609 map->AppendDescriptor(&d); | 2624 map->AppendDescriptor(&d); |
2610 } | 2625 } |
2611 } | 2626 } |
2612 | 2627 |
2613 } // namespace internal | 2628 } // namespace internal |
2614 } // namespace v8 | 2629 } // namespace v8 |
OLD | NEW |