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/isolate.h" | 8 #include "src/isolate.h" |
9 #include "src/messages.h" | 9 #include "src/messages.h" |
10 #include "src/type-feedback-vector.h" | 10 #include "src/type-feedback-vector.h" |
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
550 Handle<JSFunction> NewFunction(Handle<String> name, | 550 Handle<JSFunction> NewFunction(Handle<String> name, |
551 Handle<Code> code, | 551 Handle<Code> code, |
552 InstanceType type, | 552 InstanceType type, |
553 int instance_size); | 553 int instance_size); |
554 Handle<JSFunction> NewFunction(Handle<Map> map, Handle<String> name, | 554 Handle<JSFunction> NewFunction(Handle<Map> map, Handle<String> name, |
555 MaybeHandle<Code> maybe_code); | 555 MaybeHandle<Code> maybe_code); |
556 | 556 |
557 // Create a serialized scope info. | 557 // Create a serialized scope info. |
558 Handle<ScopeInfo> NewScopeInfo(int length); | 558 Handle<ScopeInfo> NewScopeInfo(int length); |
559 | 559 |
| 560 Handle<ModuleInfo> NewModuleInfo(); |
| 561 |
560 // Create an External object for V8's external API. | 562 // Create an External object for V8's external API. |
561 Handle<JSObject> NewExternal(void* value); | 563 Handle<JSObject> NewExternal(void* value); |
562 | 564 |
563 // The reference to the Code object is stored in self_reference. | 565 // The reference to the Code object is stored in self_reference. |
564 // This allows generated code to reference its own Code object | 566 // This allows generated code to reference its own Code object |
565 // by containing this handle. | 567 // by containing this handle. |
566 Handle<Code> NewCode(const CodeDesc& desc, | 568 Handle<Code> NewCode(const CodeDesc& desc, |
567 Code::Flags flags, | 569 Code::Flags flags, |
568 Handle<Object> self_reference, | 570 Handle<Object> self_reference, |
569 bool immovable = false, | 571 bool immovable = false, |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
753 FunctionMode function_mode); | 755 FunctionMode function_mode); |
754 | 756 |
755 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, | 757 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, |
756 FunctionMode function_mode); | 758 FunctionMode function_mode); |
757 }; | 759 }; |
758 | 760 |
759 } // namespace internal | 761 } // namespace internal |
760 } // namespace v8 | 762 } // namespace v8 |
761 | 763 |
762 #endif // V8_FACTORY_H_ | 764 #endif // V8_FACTORY_H_ |
OLD | NEW |