| 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 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 617 &isolate()->heap()->roots_[Heap::k##name##RootIndex])); \ | 617 &isolate()->heap()->roots_[Heap::k##name##RootIndex])); \ |
| 618 } | 618 } |
| 619 PUBLIC_SYMBOL_LIST(SYMBOL_ACCESSOR) | 619 PUBLIC_SYMBOL_LIST(SYMBOL_ACCESSOR) |
| 620 WELL_KNOWN_SYMBOL_LIST(SYMBOL_ACCESSOR) | 620 WELL_KNOWN_SYMBOL_LIST(SYMBOL_ACCESSOR) |
| 621 #undef SYMBOL_ACCESSOR | 621 #undef SYMBOL_ACCESSOR |
| 622 | 622 |
| 623 // Allocates a new SharedFunctionInfo object. | 623 // Allocates a new SharedFunctionInfo object. |
| 624 Handle<SharedFunctionInfo> NewSharedFunctionInfo( | 624 Handle<SharedFunctionInfo> NewSharedFunctionInfo( |
| 625 Handle<String> name, int number_of_literals, FunctionKind kind, | 625 Handle<String> name, int number_of_literals, FunctionKind kind, |
| 626 Handle<Code> code, Handle<ScopeInfo> scope_info, | 626 Handle<Code> code, Handle<ScopeInfo> scope_info, |
| 627 Handle<TypeFeedbackMetadata> feedback_metadata); | 627 Handle<TypeFeedbackVector> feedback_vector); |
| 628 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, | 628 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, |
| 629 MaybeHandle<Code> code, | 629 MaybeHandle<Code> code, |
| 630 bool is_constructor); | 630 bool is_constructor); |
| 631 | 631 |
| 632 // Allocates a new JSMessageObject object. | 632 // Allocates a new JSMessageObject object. |
| 633 Handle<JSMessageObject> NewJSMessageObject(MessageTemplate::Template message, | 633 Handle<JSMessageObject> NewJSMessageObject(MessageTemplate::Template message, |
| 634 Handle<Object> argument, | 634 Handle<Object> argument, |
| 635 int start_position, | 635 int start_position, |
| 636 int end_position, | 636 int end_position, |
| 637 Handle<Object> script, | 637 Handle<Object> script, |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 703 // Create a JSArray with no elements and no length. | 703 // Create a JSArray with no elements and no length. |
| 704 Handle<JSArray> NewJSArray(ElementsKind elements_kind, | 704 Handle<JSArray> NewJSArray(ElementsKind elements_kind, |
| 705 Strength strength = Strength::WEAK, | 705 Strength strength = Strength::WEAK, |
| 706 PretenureFlag pretenure = NOT_TENURED); | 706 PretenureFlag pretenure = NOT_TENURED); |
| 707 }; | 707 }; |
| 708 | 708 |
| 709 } // namespace internal | 709 } // namespace internal |
| 710 } // namespace v8 | 710 } // namespace v8 |
| 711 | 711 |
| 712 #endif // V8_FACTORY_H_ | 712 #endif // V8_FACTORY_H_ |
| OLD | NEW |