| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 Handle<String> InternalizeString(Handle<String> str); | 73 Handle<String> InternalizeString(Handle<String> str); |
| 74 Handle<String> InternalizeOneByteString(Vector<const uint8_t> str); | 74 Handle<String> InternalizeOneByteString(Vector<const uint8_t> str); |
| 75 Handle<String> InternalizeOneByteString( | 75 Handle<String> InternalizeOneByteString( |
| 76 Handle<SeqOneByteString>, int from, int length); | 76 Handle<SeqOneByteString>, int from, int length); |
| 77 | 77 |
| 78 Handle<String> InternalizeTwoByteString(Vector<const uc16> str); | 78 Handle<String> InternalizeTwoByteString(Vector<const uc16> str); |
| 79 | 79 |
| 80 template<class StringTableKey> | 80 template<class StringTableKey> |
| 81 Handle<String> InternalizeStringWithKey(StringTableKey* key); | 81 Handle<String> InternalizeStringWithKey(StringTableKey* key); |
| 82 | 82 |
| 83 Handle<Name> InternalizeName(Handle<Name> name); |
| 84 |
| 83 | 85 |
| 84 // String creation functions. Most of the string creation functions take | 86 // String creation functions. Most of the string creation functions take |
| 85 // a Heap::PretenureFlag argument to optionally request that they be | 87 // a Heap::PretenureFlag argument to optionally request that they be |
| 86 // allocated in the old generation. The pretenure flag defaults to | 88 // allocated in the old generation. The pretenure flag defaults to |
| 87 // DONT_TENURE. | 89 // DONT_TENURE. |
| 88 // | 90 // |
| 89 // Creates a new String object. There are two String encodings: one-byte and | 91 // Creates a new String object. There are two String encodings: one-byte and |
| 90 // two-byte. One should choose between the three string factory functions | 92 // two-byte. One should choose between the three string factory functions |
| 91 // based on the encoding of the string buffer that the string is | 93 // based on the encoding of the string buffer that the string is |
| 92 // initialized from. | 94 // initialized from. |
| (...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 713 // size, but keeping the original prototype. The receiver must have at least | 715 // size, but keeping the original prototype. The receiver must have at least |
| 714 // the size of the new object. The object is reinitialized and behaves as an | 716 // the size of the new object. The object is reinitialized and behaves as an |
| 715 // object that has been freshly allocated. | 717 // object that has been freshly allocated. |
| 716 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); | 718 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); |
| 717 }; | 719 }; |
| 718 | 720 |
| 719 } // namespace internal | 721 } // namespace internal |
| 720 } // namespace v8 | 722 } // namespace v8 |
| 721 | 723 |
| 722 #endif // V8_FACTORY_H_ | 724 #endif // V8_FACTORY_H_ |
| OLD | NEW |