Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(251)

Side by Side Diff: src/factory.cc

Issue 2581503003: [promisehook] Store promise in PromiseReactionJob (Closed)
Patch Set: rebase correctly Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 993 matching lines...) Expand 10 before | Expand all | Expand 10 after
1004 result->set_then(*then); 1004 result->set_then(*then);
1005 result->set_resolve(*resolve); 1005 result->set_resolve(*resolve);
1006 result->set_reject(*reject); 1006 result->set_reject(*reject);
1007 result->set_debug_id(*debug_id); 1007 result->set_debug_id(*debug_id);
1008 result->set_debug_name(*debug_name); 1008 result->set_debug_name(*debug_name);
1009 result->set_context(*context); 1009 result->set_context(*context);
1010 return result; 1010 return result;
1011 } 1011 }
1012 1012
1013 Handle<PromiseReactionJobInfo> Factory::NewPromiseReactionJobInfo( 1013 Handle<PromiseReactionJobInfo> Factory::NewPromiseReactionJobInfo(
1014 Handle<Object> value, Handle<Object> tasks, Handle<Object> deferred, 1014 Handle<JSPromise> promise, Handle<Object> value, Handle<Object> tasks,
1015 Handle<Object> debug_id, Handle<Object> debug_name, 1015 Handle<Object> deferred, Handle<Object> debug_id, Handle<Object> debug_name,
1016 Handle<Context> context) { 1016 Handle<Context> context) {
1017 Handle<PromiseReactionJobInfo> result = Handle<PromiseReactionJobInfo>::cast( 1017 Handle<PromiseReactionJobInfo> result = Handle<PromiseReactionJobInfo>::cast(
1018 NewStruct(PROMISE_REACTION_JOB_INFO_TYPE)); 1018 NewStruct(PROMISE_REACTION_JOB_INFO_TYPE));
1019 result->set_promise(*promise);
1019 result->set_value(*value); 1020 result->set_value(*value);
1020 result->set_tasks(*tasks); 1021 result->set_tasks(*tasks);
1021 result->set_deferred(*deferred); 1022 result->set_deferred(*deferred);
1022 result->set_debug_id(*debug_id); 1023 result->set_debug_id(*debug_id);
1023 result->set_debug_name(*debug_name); 1024 result->set_debug_name(*debug_name);
1024 result->set_context(*context); 1025 result->set_context(*context);
1025 return result; 1026 return result;
1026 } 1027 }
1027 1028
1028 Handle<AliasedArgumentsEntry> Factory::NewAliasedArgumentsEntry( 1029 Handle<AliasedArgumentsEntry> Factory::NewAliasedArgumentsEntry(
(...skipping 1751 matching lines...) Expand 10 before | Expand all | Expand 10 after
2780 Handle<JSFixedArrayIterator>::cast(NewJSObjectFromMap(map)); 2781 Handle<JSFixedArrayIterator>::cast(NewJSObjectFromMap(map));
2781 iterator->set_initial_next(*next); 2782 iterator->set_initial_next(*next);
2782 iterator->set_array(*array); 2783 iterator->set_array(*array);
2783 iterator->set_index(0); 2784 iterator->set_index(0);
2784 iterator->InObjectPropertyAtPut(JSFixedArrayIterator::kNextIndex, *next); 2785 iterator->InObjectPropertyAtPut(JSFixedArrayIterator::kNextIndex, *next);
2785 return iterator; 2786 return iterator;
2786 } 2787 }
2787 2788
2788 } // namespace internal 2789 } // namespace internal
2789 } // namespace v8 2790 } // namespace v8
OLDNEW
« src/builtins/builtins-promise.cc ('K') | « src/factory.h ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698