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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 PretenureFlag pretenure = NOT_TENURED); | 64 PretenureFlag pretenure = NOT_TENURED); |
65 | 65 |
66 Handle<OrderedHashSet> NewOrderedHashSet(); | 66 Handle<OrderedHashSet> NewOrderedHashSet(); |
67 Handle<OrderedHashMap> NewOrderedHashMap(); | 67 Handle<OrderedHashMap> NewOrderedHashMap(); |
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<Object> value, Handle<Object> tasks, Handle<Object> deferred, | 74 Handle<JSPromise> promise, Handle<Object> value, Handle<Object> tasks, |
75 Handle<Object> debug_id, Handle<Object> debug_name, | 75 Handle<Object> deferred, Handle<Object> debug_id, |
76 Handle<Context> context); | 76 Handle<Object> debug_name, Handle<Context> context); |
77 | 77 |
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(); |
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
806 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, | 806 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, |
807 FunctionMode function_mode); | 807 FunctionMode function_mode); |
808 | 808 |
809 void SetClassFunctionInstanceDescriptor(Handle<Map> map); | 809 void SetClassFunctionInstanceDescriptor(Handle<Map> map); |
810 }; | 810 }; |
811 | 811 |
812 } // namespace internal | 812 } // namespace internal |
813 } // namespace v8 | 813 } // namespace v8 |
814 | 814 |
815 #endif // V8_FACTORY_H_ | 815 #endif // V8_FACTORY_H_ |
OLD | NEW |