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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 // Create a new PromiseResolveThenableJobInfo struct. | 78 // Create a new PromiseResolveThenableJobInfo struct. |
79 Handle<PromiseResolveThenableJobInfo> NewPromiseResolveThenableJobInfo( | 79 Handle<PromiseResolveThenableJobInfo> NewPromiseResolveThenableJobInfo( |
80 Handle<JSReceiver> thenable, Handle<JSReceiver> then, | 80 Handle<JSReceiver> thenable, Handle<JSReceiver> then, |
81 Handle<JSFunction> resolve, Handle<JSFunction> reject, | 81 Handle<JSFunction> resolve, Handle<JSFunction> reject, |
82 Handle<Object> debug_id, Handle<Object> debug_name, | 82 Handle<Object> debug_id, Handle<Object> debug_name, |
83 Handle<Context> context); | 83 Handle<Context> context); |
84 | 84 |
85 // Create a new PrototypeInfo struct. | 85 // Create a new PrototypeInfo struct. |
86 Handle<PrototypeInfo> NewPrototypeInfo(); | 86 Handle<PrototypeInfo> NewPrototypeInfo(); |
87 | 87 |
88 // Create a new Tuple2 struct. | |
89 Handle<Tuple2> NewTuple2(Handle<Object> value1, Handle<Object> value2); | |
90 | |
91 // Create a new Tuple3 struct. | 88 // Create a new Tuple3 struct. |
92 Handle<Tuple3> NewTuple3(Handle<Object> value1, Handle<Object> value2, | 89 Handle<Tuple3> NewTuple3(Handle<Object> value1, Handle<Object> value2, |
93 Handle<Object> value3); | 90 Handle<Object> value3); |
94 | 91 |
95 // Create a new ContextExtension struct. | 92 // Create a new ContextExtension struct. |
96 Handle<ContextExtension> NewContextExtension(Handle<ScopeInfo> scope_info, | 93 Handle<ContextExtension> NewContextExtension(Handle<ScopeInfo> scope_info, |
97 Handle<Object> extension); | 94 Handle<Object> extension); |
98 | 95 |
99 // Create a pre-tenured empty AccessorPair. | 96 // Create a pre-tenured empty AccessorPair. |
100 Handle<AccessorPair> NewAccessorPair(); | 97 Handle<AccessorPair> NewAccessorPair(); |
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
799 FunctionMode function_mode); | 796 FunctionMode function_mode); |
800 | 797 |
801 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, | 798 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, |
802 FunctionMode function_mode); | 799 FunctionMode function_mode); |
803 }; | 800 }; |
804 | 801 |
805 } // namespace internal | 802 } // namespace internal |
806 } // namespace v8 | 803 } // namespace v8 |
807 | 804 |
808 #endif // V8_FACTORY_H_ | 805 #endif // V8_FACTORY_H_ |
OLD | NEW |