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 | 10 |
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
672 int end_position, | 672 int end_position, |
673 Handle<Object> script, | 673 Handle<Object> script, |
674 Handle<Object> stack_frames); | 674 Handle<Object> stack_frames); |
675 | 675 |
676 Handle<DebugInfo> NewDebugInfo(Handle<SharedFunctionInfo> shared); | 676 Handle<DebugInfo> NewDebugInfo(Handle<SharedFunctionInfo> shared); |
677 | 677 |
678 // Return a map for given number of properties using the map cache in the | 678 // Return a map for given number of properties using the map cache in the |
679 // native context. | 679 // native context. |
680 Handle<Map> ObjectLiteralMapFromCache(Handle<Context> context, | 680 Handle<Map> ObjectLiteralMapFromCache(Handle<Context> context, |
681 int number_of_properties, | 681 int number_of_properties, |
682 bool is_strong, | |
683 bool* is_result_from_cache); | 682 bool* is_result_from_cache); |
684 | 683 |
685 // Creates a new FixedArray that holds the data associated with the | 684 // Creates a new FixedArray that holds the data associated with the |
686 // atom regexp and stores it in the regexp. | 685 // atom regexp and stores it in the regexp. |
687 void SetRegExpAtomData(Handle<JSRegExp> regexp, | 686 void SetRegExpAtomData(Handle<JSRegExp> regexp, |
688 JSRegExp::Type type, | 687 JSRegExp::Type type, |
689 Handle<String> source, | 688 Handle<String> source, |
690 JSRegExp::Flags flags, | 689 JSRegExp::Flags flags, |
691 Handle<Object> match_pattern); | 690 Handle<Object> match_pattern); |
692 | 691 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
751 // Reinitialize a JSProxy into an (empty) JS object of respective type and | 750 // Reinitialize a JSProxy into an (empty) JS object of respective type and |
752 // size, but keeping the original prototype. The receiver must have at least | 751 // size, but keeping the original prototype. The receiver must have at least |
753 // the size of the new object. The object is reinitialized and behaves as an | 752 // the size of the new object. The object is reinitialized and behaves as an |
754 // object that has been freshly allocated. | 753 // object that has been freshly allocated. |
755 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); | 754 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); |
756 }; | 755 }; |
757 | 756 |
758 } } // namespace v8::internal | 757 } } // namespace v8::internal |
759 | 758 |
760 #endif // V8_FACTORY_H_ | 759 #endif // V8_FACTORY_H_ |
OLD | NEW |