| 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 1008 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1019 Handle<Object> deferred_on_resolve, Handle<Object> deferred_on_reject, | 1019 Handle<Object> deferred_on_resolve, Handle<Object> deferred_on_reject, |
| 1020 Handle<Context> context) { | 1020 Handle<Context> context) { |
| 1021 Handle<PromiseReactionJobInfo> result = Handle<PromiseReactionJobInfo>::cast( | 1021 Handle<PromiseReactionJobInfo> result = Handle<PromiseReactionJobInfo>::cast( |
| 1022 NewStruct(PROMISE_REACTION_JOB_INFO_TYPE)); | 1022 NewStruct(PROMISE_REACTION_JOB_INFO_TYPE)); |
| 1023 result->set_value(*value); | 1023 result->set_value(*value); |
| 1024 result->set_tasks(*tasks); | 1024 result->set_tasks(*tasks); |
| 1025 result->set_deferred_promise(*deferred_promise); | 1025 result->set_deferred_promise(*deferred_promise); |
| 1026 result->set_deferred_on_resolve(*deferred_on_resolve); | 1026 result->set_deferred_on_resolve(*deferred_on_resolve); |
| 1027 result->set_deferred_on_reject(*deferred_on_reject); | 1027 result->set_deferred_on_reject(*deferred_on_reject); |
| 1028 result->set_debug_id(kDebugPromiseFirstID); | 1028 result->set_debug_id(kDebugPromiseFirstID); |
| 1029 result->set_debug_name(kDebugNotActive); | |
| 1030 result->set_context(*context); | 1029 result->set_context(*context); |
| 1031 return result; | 1030 return result; |
| 1032 } | 1031 } |
| 1033 | 1032 |
| 1034 Handle<AliasedArgumentsEntry> Factory::NewAliasedArgumentsEntry( | 1033 Handle<AliasedArgumentsEntry> Factory::NewAliasedArgumentsEntry( |
| 1035 int aliased_context_slot) { | 1034 int aliased_context_slot) { |
| 1036 Handle<AliasedArgumentsEntry> entry = Handle<AliasedArgumentsEntry>::cast( | 1035 Handle<AliasedArgumentsEntry> entry = Handle<AliasedArgumentsEntry>::cast( |
| 1037 NewStruct(ALIASED_ARGUMENTS_ENTRY_TYPE)); | 1036 NewStruct(ALIASED_ARGUMENTS_ENTRY_TYPE)); |
| 1038 entry->set_aliased_context_slot(aliased_context_slot); | 1037 entry->set_aliased_context_slot(aliased_context_slot); |
| 1039 return entry; | 1038 return entry; |
| (...skipping 1764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2804 Handle<AccessorInfo> prototype = | 2803 Handle<AccessorInfo> prototype = |
| 2805 Accessors::FunctionPrototypeInfo(isolate(), rw_attribs); | 2804 Accessors::FunctionPrototypeInfo(isolate(), rw_attribs); |
| 2806 Descriptor d = Descriptor::AccessorConstant( | 2805 Descriptor d = Descriptor::AccessorConstant( |
| 2807 Handle<Name>(Name::cast(prototype->name())), prototype, rw_attribs); | 2806 Handle<Name>(Name::cast(prototype->name())), prototype, rw_attribs); |
| 2808 map->AppendDescriptor(&d); | 2807 map->AppendDescriptor(&d); |
| 2809 } | 2808 } |
| 2810 } | 2809 } |
| 2811 | 2810 |
| 2812 } // namespace internal | 2811 } // namespace internal |
| 2813 } // namespace v8 | 2812 } // namespace v8 |
| OLD | NEW |