| 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/ast/ast.h" | 9 #include "src/ast/ast.h" |
| 10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
| (...skipping 1013 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1024 result->set_resolve(*resolve); | 1024 result->set_resolve(*resolve); |
| 1025 result->set_reject(*reject); | 1025 result->set_reject(*reject); |
| 1026 result->set_debug_id(*debug_id); | 1026 result->set_debug_id(*debug_id); |
| 1027 result->set_debug_name(*debug_name); | 1027 result->set_debug_name(*debug_name); |
| 1028 result->set_context(*context); | 1028 result->set_context(*context); |
| 1029 return result; | 1029 return result; |
| 1030 } | 1030 } |
| 1031 | 1031 |
| 1032 Handle<PromiseReactionJobInfo> Factory::NewPromiseReactionJobInfo( | 1032 Handle<PromiseReactionJobInfo> Factory::NewPromiseReactionJobInfo( |
| 1033 Handle<JSPromise> promise, Handle<Object> value, Handle<Object> tasks, | 1033 Handle<JSPromise> promise, Handle<Object> value, Handle<Object> tasks, |
| 1034 Handle<Object> deferred, Handle<Object> debug_id, Handle<Object> debug_name, | 1034 Handle<Object> deferred_promise, Handle<Object> deferred_on_resolve, |
| 1035 Handle<Context> context) { | 1035 Handle<Object> deferred_on_reject, Handle<Context> context) { |
| 1036 Handle<PromiseReactionJobInfo> result = Handle<PromiseReactionJobInfo>::cast( | 1036 Handle<PromiseReactionJobInfo> result = Handle<PromiseReactionJobInfo>::cast( |
| 1037 NewStruct(PROMISE_REACTION_JOB_INFO_TYPE)); | 1037 NewStruct(PROMISE_REACTION_JOB_INFO_TYPE)); |
| 1038 result->set_promise(*promise); | 1038 result->set_promise(*promise); |
| 1039 result->set_value(*value); | 1039 result->set_value(*value); |
| 1040 result->set_tasks(*tasks); | 1040 result->set_tasks(*tasks); |
| 1041 result->set_deferred(*deferred); | 1041 result->set_deferred_promise(*deferred_promise); |
| 1042 result->set_debug_id(*debug_id); | 1042 result->set_deferred_on_resolve(*deferred_on_resolve); |
| 1043 result->set_debug_name(*debug_name); | 1043 result->set_deferred_on_reject(*deferred_on_reject); |
| 1044 result->set_debug_id(isolate()->heap()->undefined_value()); |
| 1045 result->set_debug_name(isolate()->heap()->undefined_value()); |
| 1044 result->set_context(*context); | 1046 result->set_context(*context); |
| 1045 return result; | 1047 return result; |
| 1046 } | 1048 } |
| 1047 | 1049 |
| 1048 Handle<AliasedArgumentsEntry> Factory::NewAliasedArgumentsEntry( | 1050 Handle<AliasedArgumentsEntry> Factory::NewAliasedArgumentsEntry( |
| 1049 int aliased_context_slot) { | 1051 int aliased_context_slot) { |
| 1050 Handle<AliasedArgumentsEntry> entry = Handle<AliasedArgumentsEntry>::cast( | 1052 Handle<AliasedArgumentsEntry> entry = Handle<AliasedArgumentsEntry>::cast( |
| 1051 NewStruct(ALIASED_ARGUMENTS_ENTRY_TYPE)); | 1053 NewStruct(ALIASED_ARGUMENTS_ENTRY_TYPE)); |
| 1052 entry->set_aliased_context_slot(aliased_context_slot); | 1054 entry->set_aliased_context_slot(aliased_context_slot); |
| 1053 return entry; | 1055 return entry; |
| (...skipping 1727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2781 Handle<AccessorInfo> prototype = | 2783 Handle<AccessorInfo> prototype = |
| 2782 Accessors::FunctionPrototypeInfo(isolate(), rw_attribs); | 2784 Accessors::FunctionPrototypeInfo(isolate(), rw_attribs); |
| 2783 Descriptor d = Descriptor::AccessorConstant( | 2785 Descriptor d = Descriptor::AccessorConstant( |
| 2784 Handle<Name>(Name::cast(prototype->name())), prototype, rw_attribs); | 2786 Handle<Name>(Name::cast(prototype->name())), prototype, rw_attribs); |
| 2785 map->AppendDescriptor(&d); | 2787 map->AppendDescriptor(&d); |
| 2786 } | 2788 } |
| 2787 } | 2789 } |
| 2788 | 2790 |
| 2789 } // namespace internal | 2791 } // namespace internal |
| 2790 } // namespace v8 | 2792 } // namespace v8 |
| OLD | NEW |