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/feedback-vector.h" | 8 #include "src/feedback-vector.h" |
9 #include "src/globals.h" | 9 #include "src/globals.h" |
10 #include "src/isolate.h" | 10 #include "src/isolate.h" |
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
729 inline Handle<Symbol> name() { \ | 729 inline Handle<Symbol> name() { \ |
730 return Handle<Symbol>(bit_cast<Symbol**>( \ | 730 return Handle<Symbol>(bit_cast<Symbol**>( \ |
731 &isolate()->heap()->roots_[Heap::k##name##RootIndex])); \ | 731 &isolate()->heap()->roots_[Heap::k##name##RootIndex])); \ |
732 } | 732 } |
733 PUBLIC_SYMBOL_LIST(SYMBOL_ACCESSOR) | 733 PUBLIC_SYMBOL_LIST(SYMBOL_ACCESSOR) |
734 WELL_KNOWN_SYMBOL_LIST(SYMBOL_ACCESSOR) | 734 WELL_KNOWN_SYMBOL_LIST(SYMBOL_ACCESSOR) |
735 #undef SYMBOL_ACCESSOR | 735 #undef SYMBOL_ACCESSOR |
736 | 736 |
737 // Allocates a new SharedFunctionInfo object. | 737 // Allocates a new SharedFunctionInfo object. |
738 Handle<SharedFunctionInfo> NewSharedFunctionInfo( | 738 Handle<SharedFunctionInfo> NewSharedFunctionInfo( |
739 Handle<String> name, int number_of_literals, FunctionKind kind, | 739 Handle<String> name, FunctionKind kind, Handle<Code> code, |
740 Handle<Code> code, Handle<ScopeInfo> scope_info); | 740 Handle<ScopeInfo> scope_info); |
741 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, | 741 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, |
742 MaybeHandle<Code> code, | 742 MaybeHandle<Code> code, |
743 bool is_constructor); | 743 bool is_constructor); |
744 | 744 |
745 Handle<SharedFunctionInfo> NewSharedFunctionInfoForLiteral( | 745 Handle<SharedFunctionInfo> NewSharedFunctionInfoForLiteral( |
746 FunctionLiteral* literal, Handle<Script> script); | 746 FunctionLiteral* literal, Handle<Script> script); |
747 | 747 |
748 static bool IsFunctionModeWithPrototype(FunctionMode function_mode) { | 748 static bool IsFunctionModeWithPrototype(FunctionMode function_mode) { |
749 return (function_mode == FUNCTION_WITH_WRITEABLE_PROTOTYPE || | 749 return (function_mode == FUNCTION_WITH_WRITEABLE_PROTOTYPE || |
750 function_mode == FUNCTION_WITH_READONLY_PROTOTYPE); | 750 function_mode == FUNCTION_WITH_READONLY_PROTOTYPE); |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
839 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, | 839 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, |
840 FunctionMode function_mode); | 840 FunctionMode function_mode); |
841 | 841 |
842 void SetClassFunctionInstanceDescriptor(Handle<Map> map); | 842 void SetClassFunctionInstanceDescriptor(Handle<Map> map); |
843 }; | 843 }; |
844 | 844 |
845 } // namespace internal | 845 } // namespace internal |
846 } // namespace v8 | 846 } // namespace v8 |
847 | 847 |
848 #endif // V8_FACTORY_H_ | 848 #endif // V8_FACTORY_H_ |
OLD | NEW |