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 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 Handle<ConstantPoolArray> NewExtendedConstantPoolArray( | 51 Handle<ConstantPoolArray> NewExtendedConstantPoolArray( |
52 const ConstantPoolArray::NumberOfEntries& small, | 52 const ConstantPoolArray::NumberOfEntries& small, |
53 const ConstantPoolArray::NumberOfEntries& extended); | 53 const ConstantPoolArray::NumberOfEntries& extended); |
54 | 54 |
55 Handle<OrderedHashSet> NewOrderedHashSet(); | 55 Handle<OrderedHashSet> NewOrderedHashSet(); |
56 Handle<OrderedHashMap> NewOrderedHashMap(); | 56 Handle<OrderedHashMap> NewOrderedHashMap(); |
57 | 57 |
58 // Create a new boxed value. | 58 // Create a new boxed value. |
59 Handle<Box> NewBox(Handle<Object> value); | 59 Handle<Box> NewBox(Handle<Object> value); |
60 | 60 |
| 61 // Create a new PrototypeInfo struct. |
| 62 Handle<PrototypeInfo> NewPrototypeInfo(Handle<JSObject> prototype_obj); |
| 63 |
61 // Create a pre-tenured empty AccessorPair. | 64 // Create a pre-tenured empty AccessorPair. |
62 Handle<AccessorPair> NewAccessorPair(); | 65 Handle<AccessorPair> NewAccessorPair(); |
63 | 66 |
64 // Create an empty TypeFeedbackInfo. | 67 // Create an empty TypeFeedbackInfo. |
65 Handle<TypeFeedbackInfo> NewTypeFeedbackInfo(); | 68 Handle<TypeFeedbackInfo> NewTypeFeedbackInfo(); |
66 | 69 |
67 // Finds the internalized copy for string in the string table. | 70 // Finds the internalized copy for string in the string table. |
68 // If not found, a new string is added to the table and returned. | 71 // If not found, a new string is added to the table and returned. |
69 Handle<String> InternalizeUtf8String(Vector<const char> str); | 72 Handle<String> InternalizeUtf8String(Vector<const char> str); |
70 Handle<String> InternalizeUtf8String(const char* str) { | 73 Handle<String> InternalizeUtf8String(const char* str) { |
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
705 // Reinitialize a JSProxy into an (empty) JS object of respective type and | 708 // Reinitialize a JSProxy into an (empty) JS object of respective type and |
706 // size, but keeping the original prototype. The receiver must have at least | 709 // size, but keeping the original prototype. The receiver must have at least |
707 // the size of the new object. The object is reinitialized and behaves as an | 710 // the size of the new object. The object is reinitialized and behaves as an |
708 // object that has been freshly allocated. | 711 // object that has been freshly allocated. |
709 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); | 712 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); |
710 }; | 713 }; |
711 | 714 |
712 } } // namespace v8::internal | 715 } } // namespace v8::internal |
713 | 716 |
714 #endif // V8_FACTORY_H_ | 717 #endif // V8_FACTORY_H_ |
OLD | NEW |