| 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 PretenureFlag pretenure = NOT_TENURED); | 157 PretenureFlag pretenure = NOT_TENURED); |
| 158 | 158 |
| 159 // Allocates an internalized string in old space based on the character | 159 // Allocates an internalized string in old space based on the character |
| 160 // stream. | 160 // stream. |
| 161 MUST_USE_RESULT Handle<String> NewInternalizedStringFromUtf8( | 161 MUST_USE_RESULT Handle<String> NewInternalizedStringFromUtf8( |
| 162 Vector<const char> str, | 162 Vector<const char> str, |
| 163 int chars, | 163 int chars, |
| 164 uint32_t hash_field); | 164 uint32_t hash_field); |
| 165 | 165 |
| 166 MUST_USE_RESULT Handle<String> NewOneByteInternalizedString( | 166 MUST_USE_RESULT Handle<String> NewOneByteInternalizedString( |
| 167 Vector<const uint8_t> str, | 167 Vector<const uint8_t> str, uint32_t hash_field); |
| 168 uint32_t hash_field); | 168 |
| 169 MUST_USE_RESULT Handle<String> NewOneByteInternalizedSubString( |
| 170 Handle<SeqOneByteString> string, int offset, int length, |
| 171 uint32_t hash_field); |
| 169 | 172 |
| 170 MUST_USE_RESULT Handle<String> NewTwoByteInternalizedString( | 173 MUST_USE_RESULT Handle<String> NewTwoByteInternalizedString( |
| 171 Vector<const uc16> str, | 174 Vector<const uc16> str, |
| 172 uint32_t hash_field); | 175 uint32_t hash_field); |
| 173 | 176 |
| 174 MUST_USE_RESULT Handle<String> NewInternalizedStringImpl( | 177 MUST_USE_RESULT Handle<String> NewInternalizedStringImpl( |
| 175 Handle<String> string, int chars, uint32_t hash_field); | 178 Handle<String> string, int chars, uint32_t hash_field); |
| 176 | 179 |
| 177 // Compute the matching internalized string map for a string if possible. | 180 // Compute the matching internalized string map for a string if possible. |
| 178 // Empty handle is returned if string is in new space or not flattened. | 181 // Empty handle is returned if string is in new space or not flattened. |
| (...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 702 PretenureFlag pretenure = TENURED); | 705 PretenureFlag pretenure = TENURED); |
| 703 | 706 |
| 704 Handle<JSFunction> NewFunction(Handle<Map> map, | 707 Handle<JSFunction> NewFunction(Handle<Map> map, |
| 705 Handle<String> name, | 708 Handle<String> name, |
| 706 MaybeHandle<Code> maybe_code); | 709 MaybeHandle<Code> maybe_code); |
| 707 }; | 710 }; |
| 708 | 711 |
| 709 } } // namespace v8::internal | 712 } } // namespace v8::internal |
| 710 | 713 |
| 711 #endif // V8_FACTORY_H_ | 714 #endif // V8_FACTORY_H_ |
| OLD | NEW |