| 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 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 &isolate()->heap()->roots_[Heap::k##name##RootIndex])); \ | 620 &isolate()->heap()->roots_[Heap::k##name##RootIndex])); \ |
| 621 } | 621 } |
| 622 PUBLIC_SYMBOL_LIST(SYMBOL_ACCESSOR) | 622 PUBLIC_SYMBOL_LIST(SYMBOL_ACCESSOR) |
| 623 WELL_KNOWN_SYMBOL_LIST(SYMBOL_ACCESSOR) | 623 WELL_KNOWN_SYMBOL_LIST(SYMBOL_ACCESSOR) |
| 624 #undef SYMBOL_ACCESSOR | 624 #undef SYMBOL_ACCESSOR |
| 625 | 625 |
| 626 // Allocates a new SharedFunctionInfo object. | 626 // Allocates a new SharedFunctionInfo object. |
| 627 Handle<SharedFunctionInfo> NewSharedFunctionInfo( | 627 Handle<SharedFunctionInfo> NewSharedFunctionInfo( |
| 628 Handle<String> name, int number_of_literals, FunctionKind kind, | 628 Handle<String> name, int number_of_literals, FunctionKind kind, |
| 629 Handle<Code> code, Handle<ScopeInfo> scope_info, | 629 Handle<Code> code, Handle<ScopeInfo> scope_info, |
| 630 Handle<TypeFeedbackVector> feedback_vector); | 630 Handle<TypeFeedbackMetadata> feedback_metadata); |
| 631 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, | 631 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, |
| 632 MaybeHandle<Code> code, | 632 MaybeHandle<Code> code, |
| 633 bool is_constructor); | 633 bool is_constructor); |
| 634 | 634 |
| 635 // Allocates a new JSMessageObject object. | 635 // Allocates a new JSMessageObject object. |
| 636 Handle<JSMessageObject> NewJSMessageObject(MessageTemplate::Template message, | 636 Handle<JSMessageObject> NewJSMessageObject(MessageTemplate::Template message, |
| 637 Handle<Object> argument, | 637 Handle<Object> argument, |
| 638 int start_position, | 638 int start_position, |
| 639 int end_position, | 639 int end_position, |
| 640 Handle<Object> script, | 640 Handle<Object> script, |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 701 Handle<JSFunction> NewFunction(Handle<Map> map, | 701 Handle<JSFunction> NewFunction(Handle<Map> map, |
| 702 Handle<SharedFunctionInfo> info, | 702 Handle<SharedFunctionInfo> info, |
| 703 Handle<Context> context, | 703 Handle<Context> context, |
| 704 PretenureFlag pretenure = TENURED); | 704 PretenureFlag pretenure = TENURED); |
| 705 }; | 705 }; |
| 706 | 706 |
| 707 } // namespace internal | 707 } // namespace internal |
| 708 } // namespace v8 | 708 } // namespace v8 |
| 709 | 709 |
| 710 #endif // V8_FACTORY_H_ | 710 #endif // V8_FACTORY_H_ |
| OLD | NEW |