| 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" |
| 11 #include "src/type-feedback-vector.h" | 11 #include "src/type-feedback-vector.h" |
| 12 | 12 |
| 13 namespace v8 { | 13 namespace v8 { |
| 14 namespace internal { | 14 namespace internal { |
| 15 | 15 |
| 16 class BoilerplateDescription; |
| 17 class ConstantElementsPair; |
| 18 |
| 16 enum FunctionMode { | 19 enum FunctionMode { |
| 17 // With prototype. | 20 // With prototype. |
| 18 FUNCTION_WITH_WRITEABLE_PROTOTYPE, | 21 FUNCTION_WITH_WRITEABLE_PROTOTYPE, |
| 19 FUNCTION_WITH_READONLY_PROTOTYPE, | 22 FUNCTION_WITH_READONLY_PROTOTYPE, |
| 20 // Without prototype. | 23 // Without prototype. |
| 21 FUNCTION_WITHOUT_PROTOTYPE | 24 FUNCTION_WITHOUT_PROTOTYPE |
| 22 }; | 25 }; |
| 23 | 26 |
| 24 // Interface for handle based allocation. | 27 // Interface for handle based allocation. |
| 25 class V8_EXPORT_PRIVATE Factory final { | 28 class V8_EXPORT_PRIVATE Factory final { |
| (...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 837 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, | 840 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, |
| 838 FunctionMode function_mode); | 841 FunctionMode function_mode); |
| 839 | 842 |
| 840 void SetClassFunctionInstanceDescriptor(Handle<Map> map); | 843 void SetClassFunctionInstanceDescriptor(Handle<Map> map); |
| 841 }; | 844 }; |
| 842 | 845 |
| 843 } // namespace internal | 846 } // namespace internal |
| 844 } // namespace v8 | 847 } // namespace v8 |
| 845 | 848 |
| 846 #endif // V8_FACTORY_H_ | 849 #endif // V8_FACTORY_H_ |
| OLD | NEW |