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

Side by Side Diff: src/factory.h

Issue 2487053002: [promises] Remove one runtime call to create_resolving_functions (Closed)
Patch Set: add dcheck Created 4 years, 1 month 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
« no previous file with comments | « src/builtins/builtins-promise.cc ('k') | src/factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef V8_FACTORY_H_ 5 #ifndef V8_FACTORY_H_
6 #define V8_FACTORY_H_ 6 #define V8_FACTORY_H_
7 7
8 #include "src/globals.h" 8 #include "src/globals.h"
9 #include "src/isolate.h" 9 #include "src/isolate.h"
10 #include "src/messages.h" 10 #include "src/messages.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // Create a new PromiseReactionJobInfo struct. 64 // Create a new PromiseReactionJobInfo struct.
65 Handle<PromiseReactionJobInfo> NewPromiseReactionJobInfo( 65 Handle<PromiseReactionJobInfo> NewPromiseReactionJobInfo(
66 Handle<Object> value, Handle<Object> tasks, Handle<Object> deferred, 66 Handle<Object> value, Handle<Object> tasks, Handle<Object> deferred,
67 Handle<Object> debug_id, Handle<Object> debug_name, 67 Handle<Object> debug_id, Handle<Object> debug_name,
68 Handle<Context> context); 68 Handle<Context> context);
69 69
70 // Create a new PromiseResolveThenableJobInfo struct. 70 // Create a new PromiseResolveThenableJobInfo struct.
71 Handle<PromiseResolveThenableJobInfo> NewPromiseResolveThenableJobInfo( 71 Handle<PromiseResolveThenableJobInfo> NewPromiseResolveThenableJobInfo(
72 Handle<JSReceiver> thenable, Handle<JSReceiver> then, 72 Handle<JSReceiver> thenable, Handle<JSReceiver> then,
73 Handle<JSFunction> resolve, Handle<JSFunction> reject, 73 Handle<JSFunction> resolve, Handle<JSFunction> reject,
74 Handle<Object> debug_id, Handle<Object> debug_name); 74 Handle<Object> debug_id, Handle<Object> debug_name,
75 Handle<Context> context);
75 76
76 // Create a new PrototypeInfo struct. 77 // Create a new PrototypeInfo struct.
77 Handle<PrototypeInfo> NewPrototypeInfo(); 78 Handle<PrototypeInfo> NewPrototypeInfo();
78 79
79 // Create a new Tuple3 struct. 80 // Create a new Tuple3 struct.
80 Handle<Tuple3> NewTuple3(Handle<Object> value1, Handle<Object> value2, 81 Handle<Tuple3> NewTuple3(Handle<Object> value1, Handle<Object> value2,
81 Handle<Object> value3); 82 Handle<Object> value3);
82 83
83 // Create a new ContextExtension struct. 84 // Create a new ContextExtension struct.
84 Handle<ContextExtension> NewContextExtension(Handle<ScopeInfo> scope_info, 85 Handle<ContextExtension> NewContextExtension(Handle<ScopeInfo> scope_info,
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
787 FunctionMode function_mode); 788 FunctionMode function_mode);
788 789
789 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, 790 void SetStrictFunctionInstanceDescriptor(Handle<Map> map,
790 FunctionMode function_mode); 791 FunctionMode function_mode);
791 }; 792 };
792 793
793 } // namespace internal 794 } // namespace internal
794 } // namespace v8 795 } // namespace v8
795 796
796 #endif // V8_FACTORY_H_ 797 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/builtins/builtins-promise.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698