| 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 "isolate.h" | 8 #include "isolate.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 Vector<const char> str, | 125 Vector<const char> str, |
| 126 PretenureFlag pretenure = NOT_TENURED); | 126 PretenureFlag pretenure = NOT_TENURED); |
| 127 | 127 |
| 128 Handle<String> NewStringFromTwoByte( | 128 Handle<String> NewStringFromTwoByte( |
| 129 Vector<const uc16> str, | 129 Vector<const uc16> str, |
| 130 PretenureFlag pretenure = NOT_TENURED); | 130 PretenureFlag pretenure = NOT_TENURED); |
| 131 | 131 |
| 132 // Allocates and partially initializes an ASCII or TwoByte String. The | 132 // Allocates and partially initializes an ASCII or TwoByte String. The |
| 133 // characters of the string are uninitialized. Currently used in regexp code | 133 // characters of the string are uninitialized. Currently used in regexp code |
| 134 // only, where they are pretenured. | 134 // only, where they are pretenured. |
| 135 Handle<SeqOneByteString> NewRawOneByteString( | 135 MaybeHandle<SeqOneByteString> NewRawOneByteString( |
| 136 int length, | 136 int length, |
| 137 PretenureFlag pretenure = NOT_TENURED); | 137 PretenureFlag pretenure = NOT_TENURED); |
| 138 Handle<SeqTwoByteString> NewRawTwoByteString( | 138 MaybeHandle<SeqTwoByteString> NewRawTwoByteString( |
| 139 int length, | 139 int length, |
| 140 PretenureFlag pretenure = NOT_TENURED); | 140 PretenureFlag pretenure = NOT_TENURED); |
| 141 | 141 |
| 142 // Create a new cons string object which consists of a pair of strings. | 142 // Create a new cons string object which consists of a pair of strings. |
| 143 Handle<String> NewConsString(Handle<String> left, | 143 Handle<String> NewConsString(Handle<String> left, |
| 144 Handle<String> right); | 144 Handle<String> right); |
| 145 | 145 |
| 146 Handle<ConsString> NewRawConsString(String::Encoding encoding); | 146 Handle<ConsString> NewRawConsString(String::Encoding encoding); |
| 147 | 147 |
| 148 // Create a new sequential string containing the concatenation of the inputs. | 148 // Create a new sequential string containing the concatenation of the inputs. |
| (...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 589 | 589 |
| 590 // Update the map cache in the native context with (keys, map) | 590 // Update the map cache in the native context with (keys, map) |
| 591 Handle<MapCache> AddToMapCache(Handle<Context> context, | 591 Handle<MapCache> AddToMapCache(Handle<Context> context, |
| 592 Handle<FixedArray> keys, | 592 Handle<FixedArray> keys, |
| 593 Handle<Map> map); | 593 Handle<Map> map); |
| 594 }; | 594 }; |
| 595 | 595 |
| 596 } } // namespace v8::internal | 596 } } // namespace v8::internal |
| 597 | 597 |
| 598 #endif // V8_FACTORY_H_ | 598 #endif // V8_FACTORY_H_ |
| OLD | NEW |