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 #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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 // Create a new boxed value. | 69 // Create a new boxed value. |
70 Handle<Box> NewBox(Handle<Object> value); | 70 Handle<Box> NewBox(Handle<Object> value); |
71 | 71 |
72 // Create a new PromiseReactionJobInfo struct. | 72 // Create a new PromiseReactionJobInfo struct. |
73 Handle<PromiseReactionJobInfo> NewPromiseReactionJobInfo( | 73 Handle<PromiseReactionJobInfo> NewPromiseReactionJobInfo( |
74 Handle<JSPromise> promise, Handle<Object> value, Handle<Object> tasks, | 74 Handle<JSPromise> promise, Handle<Object> value, Handle<Object> tasks, |
75 Handle<Object> deferred_promise, Handle<Object> deferred_on_resolve, | 75 Handle<Object> deferred_promise, Handle<Object> deferred_on_resolve, |
76 Handle<Object> deferred_on_reject, Handle<Context> context); | 76 Handle<Object> deferred_on_reject, Handle<Context> context); |
77 | 77 |
78 // Create a new PromiseResolveThenableJobInfo struct. | |
79 Handle<PromiseResolveThenableJobInfo> NewPromiseResolveThenableJobInfo( | |
80 Handle<JSReceiver> thenable, Handle<JSReceiver> then, | |
81 Handle<JSFunction> resolve, Handle<JSFunction> reject, int debug_id, | |
82 int debug_name, Handle<Context> context); | |
83 | |
84 // Create a new PrototypeInfo struct. | 78 // Create a new PrototypeInfo struct. |
85 Handle<PrototypeInfo> NewPrototypeInfo(); | 79 Handle<PrototypeInfo> NewPrototypeInfo(); |
86 | 80 |
87 // Create a new Tuple2 struct. | 81 // Create a new Tuple2 struct. |
88 Handle<Tuple2> NewTuple2(Handle<Object> value1, Handle<Object> value2); | 82 Handle<Tuple2> NewTuple2(Handle<Object> value1, Handle<Object> value2); |
89 | 83 |
90 // Create a new Tuple3 struct. | 84 // Create a new Tuple3 struct. |
91 Handle<Tuple3> NewTuple3(Handle<Object> value1, Handle<Object> value2, | 85 Handle<Tuple3> NewTuple3(Handle<Object> value1, Handle<Object> value2, |
92 Handle<Object> value3); | 86 Handle<Object> value3); |
93 | 87 |
(...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
808 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, | 802 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, |
809 FunctionMode function_mode); | 803 FunctionMode function_mode); |
810 | 804 |
811 void SetClassFunctionInstanceDescriptor(Handle<Map> map); | 805 void SetClassFunctionInstanceDescriptor(Handle<Map> map); |
812 }; | 806 }; |
813 | 807 |
814 } // namespace internal | 808 } // namespace internal |
815 } // namespace v8 | 809 } // namespace v8 |
816 | 810 |
817 #endif // V8_FACTORY_H_ | 811 #endif // V8_FACTORY_H_ |
OLD | NEW |