| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 Handle<FrameArray> NewFrameArray(int number_of_frames, | 63 Handle<FrameArray> NewFrameArray(int number_of_frames, |
| 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. | |
| 73 Handle<PromiseReactionJobInfo> NewPromiseReactionJobInfo( | |
| 74 Handle<Object> value, Handle<Object> tasks, | |
| 75 Handle<Object> deferred_promise, Handle<Object> deferred_on_resolve, | |
| 76 Handle<Object> deferred_on_reject, Handle<Context> context); | |
| 77 | |
| 78 // Create a new PrototypeInfo struct. | 72 // Create a new PrototypeInfo struct. |
| 79 Handle<PrototypeInfo> NewPrototypeInfo(); | 73 Handle<PrototypeInfo> NewPrototypeInfo(); |
| 80 | 74 |
| 81 // Create a new Tuple2 struct. | 75 // Create a new Tuple2 struct. |
| 82 Handle<Tuple2> NewTuple2(Handle<Object> value1, Handle<Object> value2); | 76 Handle<Tuple2> NewTuple2(Handle<Object> value1, Handle<Object> value2); |
| 83 | 77 |
| 84 // Create a new Tuple3 struct. | 78 // Create a new Tuple3 struct. |
| 85 Handle<Tuple3> NewTuple3(Handle<Object> value1, Handle<Object> value2, | 79 Handle<Tuple3> NewTuple3(Handle<Object> value1, Handle<Object> value2, |
| 86 Handle<Object> value3); | 80 Handle<Object> value3); |
| 87 | 81 |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 Handle<Context> NewDebugEvaluateContext(Handle<Context> previous, | 307 Handle<Context> NewDebugEvaluateContext(Handle<Context> previous, |
| 314 Handle<ScopeInfo> scope_info, | 308 Handle<ScopeInfo> scope_info, |
| 315 Handle<JSReceiver> extension, | 309 Handle<JSReceiver> extension, |
| 316 Handle<Context> wrapped, | 310 Handle<Context> wrapped, |
| 317 Handle<StringSet> whitelist); | 311 Handle<StringSet> whitelist); |
| 318 | 312 |
| 319 // Create a block context. | 313 // Create a block context. |
| 320 Handle<Context> NewBlockContext(Handle<JSFunction> function, | 314 Handle<Context> NewBlockContext(Handle<JSFunction> function, |
| 321 Handle<Context> previous, | 315 Handle<Context> previous, |
| 322 Handle<ScopeInfo> scope_info); | 316 Handle<ScopeInfo> scope_info); |
| 323 // Create a promise context. | |
| 324 Handle<Context> NewPromiseResolvingFunctionContext(int length); | |
| 325 | 317 |
| 326 // Allocate a new struct. The struct is pretenured (allocated directly in | 318 // Allocate a new struct. The struct is pretenured (allocated directly in |
| 327 // the old generation). | 319 // the old generation). |
| 328 Handle<Struct> NewStruct(InstanceType type); | 320 Handle<Struct> NewStruct(InstanceType type); |
| 329 | 321 |
| 330 Handle<AliasedArgumentsEntry> NewAliasedArgumentsEntry( | 322 Handle<AliasedArgumentsEntry> NewAliasedArgumentsEntry( |
| 331 int aliased_context_slot); | 323 int aliased_context_slot); |
| 332 | 324 |
| 333 Handle<AccessorInfo> NewAccessorInfo(); | 325 Handle<AccessorInfo> NewAccessorInfo(); |
| 334 | 326 |
| (...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 817 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, | 809 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, |
| 818 FunctionMode function_mode); | 810 FunctionMode function_mode); |
| 819 | 811 |
| 820 void SetClassFunctionInstanceDescriptor(Handle<Map> map); | 812 void SetClassFunctionInstanceDescriptor(Handle<Map> map); |
| 821 }; | 813 }; |
| 822 | 814 |
| 823 } // namespace internal | 815 } // namespace internal |
| 824 } // namespace v8 | 816 } // namespace v8 |
| 825 | 817 |
| 826 #endif // V8_FACTORY_H_ | 818 #endif // V8_FACTORY_H_ |
| OLD | NEW |