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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 Handle<Context> NewDebugEvaluateContext(Handle<Context> previous, | 303 Handle<Context> NewDebugEvaluateContext(Handle<Context> previous, |
304 Handle<ScopeInfo> scope_info, | 304 Handle<ScopeInfo> scope_info, |
305 Handle<JSReceiver> extension, | 305 Handle<JSReceiver> extension, |
306 Handle<Context> wrapped, | 306 Handle<Context> wrapped, |
307 Handle<StringSet> whitelist); | 307 Handle<StringSet> whitelist); |
308 | 308 |
309 // Create a block context. | 309 // Create a block context. |
310 Handle<Context> NewBlockContext(Handle<JSFunction> function, | 310 Handle<Context> NewBlockContext(Handle<JSFunction> function, |
311 Handle<Context> previous, | 311 Handle<Context> previous, |
312 Handle<ScopeInfo> scope_info); | 312 Handle<ScopeInfo> scope_info); |
| 313 // Create a promise context. |
| 314 Handle<Context> NewPromiseResolvingFunctionContext(int length); |
313 | 315 |
314 // Allocate a new struct. The struct is pretenured (allocated directly in | 316 // Allocate a new struct. The struct is pretenured (allocated directly in |
315 // the old generation). | 317 // the old generation). |
316 Handle<Struct> NewStruct(InstanceType type); | 318 Handle<Struct> NewStruct(InstanceType type); |
317 | 319 |
318 Handle<AliasedArgumentsEntry> NewAliasedArgumentsEntry( | 320 Handle<AliasedArgumentsEntry> NewAliasedArgumentsEntry( |
319 int aliased_context_slot); | 321 int aliased_context_slot); |
320 | 322 |
321 Handle<AccessorInfo> NewAccessorInfo(); | 323 Handle<AccessorInfo> NewAccessorInfo(); |
322 | 324 |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
788 FunctionMode function_mode); | 790 FunctionMode function_mode); |
789 | 791 |
790 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, | 792 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, |
791 FunctionMode function_mode); | 793 FunctionMode function_mode); |
792 }; | 794 }; |
793 | 795 |
794 } // namespace internal | 796 } // namespace internal |
795 } // namespace v8 | 797 } // namespace v8 |
796 | 798 |
797 #endif // V8_FACTORY_H_ | 799 #endif // V8_FACTORY_H_ |
OLD | NEW |