OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 | 91 |
92 // Allocates and partially initializes a TwoByte String. The characters of | 92 // Allocates and partially initializes a TwoByte String. The characters of |
93 // the string are uninitialized. Currently used in regexp code only, where | 93 // the string are uninitialized. Currently used in regexp code only, where |
94 // they are pretenured. | 94 // they are pretenured. |
95 static Handle<String> NewRawTwoByteString( | 95 static Handle<String> NewRawTwoByteString( |
96 int length, | 96 int length, |
97 PretenureFlag pretenure = NOT_TENURED); | 97 PretenureFlag pretenure = NOT_TENURED); |
98 | 98 |
99 // Create a new cons string object which consists of a pair of strings. | 99 // Create a new cons string object which consists of a pair of strings. |
100 static Handle<String> NewConsString(Handle<String> first, | 100 static Handle<String> NewConsString(Handle<String> first, |
101 StringShape first_shape, | 101 Handle<String> second); |
102 Handle<String> second, | |
103 StringShape second_shape); | |
104 | 102 |
105 // Create a new sliced string object which represents a substring of a | 103 // Create a new sliced string object which represents a substring of a |
106 // backing string. | 104 // backing string. |
107 static Handle<String> NewStringSlice(Handle<String> str, | 105 static Handle<String> NewStringSlice(Handle<String> str, |
108 int begin, | 106 int begin, |
109 int end); | 107 int end); |
110 | 108 |
111 // Creates a new external String object. There are two String encodings | 109 // Creates a new external String object. There are two String encodings |
112 // in the system: ASCII and two byte. Unlike other String types, it does | 110 // in the system: ASCII and two byte. Unlike other String types, it does |
113 // not make sense to have a UTF-8 factory function for external strings, | 111 // not make sense to have a UTF-8 factory function for external strings, |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 // Update the map cache in the global context with (keys, map) | 348 // Update the map cache in the global context with (keys, map) |
351 static Handle<MapCache> AddToMapCache(Handle<Context> context, | 349 static Handle<MapCache> AddToMapCache(Handle<Context> context, |
352 Handle<FixedArray> keys, | 350 Handle<FixedArray> keys, |
353 Handle<Map> map); | 351 Handle<Map> map); |
354 }; | 352 }; |
355 | 353 |
356 | 354 |
357 } } // namespace v8::internal | 355 } } // namespace v8::internal |
358 | 356 |
359 #endif // V8_FACTORY_H_ | 357 #endif // V8_FACTORY_H_ |
OLD | NEW |