| 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 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 650 bool is_constructor); | 650 bool is_constructor); |
| 651 | 651 |
| 652 // Allocates a new JSMessageObject object. | 652 // Allocates a new JSMessageObject object. |
| 653 Handle<JSMessageObject> NewJSMessageObject(MessageTemplate::Template message, | 653 Handle<JSMessageObject> NewJSMessageObject(MessageTemplate::Template message, |
| 654 Handle<Object> argument, | 654 Handle<Object> argument, |
| 655 int start_position, | 655 int start_position, |
| 656 int end_position, | 656 int end_position, |
| 657 Handle<Object> script, | 657 Handle<Object> script, |
| 658 Handle<Object> stack_frames); | 658 Handle<Object> stack_frames); |
| 659 | 659 |
| 660 Handle<DebugInfo> NewDebugInfo(Handle<AbstractCode> code); |
| 660 Handle<DebugInfo> NewDebugInfo(Handle<SharedFunctionInfo> shared); | 661 Handle<DebugInfo> NewDebugInfo(Handle<SharedFunctionInfo> shared); |
| 661 | 662 |
| 662 // Return a map for given number of properties using the map cache in the | 663 // Return a map for given number of properties using the map cache in the |
| 663 // native context. | 664 // native context. |
| 664 Handle<Map> ObjectLiteralMapFromCache(Handle<Context> context, | 665 Handle<Map> ObjectLiteralMapFromCache(Handle<Context> context, |
| 665 int number_of_properties, | 666 int number_of_properties, |
| 666 bool* is_result_from_cache); | 667 bool* is_result_from_cache); |
| 667 | 668 |
| 668 // Creates a new FixedArray that holds the data associated with the | 669 // Creates a new FixedArray that holds the data associated with the |
| 669 // atom regexp and stores it in the regexp. | 670 // atom regexp and stores it in the regexp. |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 724 | 725 |
| 725 // Create a JSArray with no elements and no length. | 726 // Create a JSArray with no elements and no length. |
| 726 Handle<JSArray> NewJSArray(ElementsKind elements_kind, | 727 Handle<JSArray> NewJSArray(ElementsKind elements_kind, |
| 727 PretenureFlag pretenure = NOT_TENURED); | 728 PretenureFlag pretenure = NOT_TENURED); |
| 728 }; | 729 }; |
| 729 | 730 |
| 730 } // namespace internal | 731 } // namespace internal |
| 731 } // namespace v8 | 732 } // namespace v8 |
| 732 | 733 |
| 733 #endif // V8_FACTORY_H_ | 734 #endif // V8_FACTORY_H_ |
| OLD | NEW |