| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 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                                       StringShape first_shape, | 
| 102                                       Handle<String> second, | 102                                       Handle<String> second, | 
| 103                                       StringShape second_shape); | 103                                       StringShape second_shape); | 
| 104 | 104 | 
| 105   // Create a new sliced string object which represents a substring of a | 105   // Create a new sliced string object which represents a substring of a | 
| 106   // backing string. | 106   // backing string. | 
| 107   static Handle<String> NewStringSlice(Handle<String> str, | 107   static Handle<String> NewStringSlice(Handle<String> str, | 
| 108                                        StringShape shape, |  | 
| 109                                        int begin, | 108                                        int begin, | 
| 110                                        int end); | 109                                        int end); | 
| 111 | 110 | 
| 112   // Creates a new external String object.  There are two String encodings | 111   // Creates a new external String object.  There are two String encodings | 
| 113   // in the system: ASCII and two byte.  Unlike other String types, it does | 112   // in the system: ASCII and two byte.  Unlike other String types, it does | 
| 114   // not make sense to have a UTF-8 factory function for external strings, | 113   // not make sense to have a UTF-8 factory function for external strings, | 
| 115   // because we cannot change the underlying buffer. | 114   // because we cannot change the underlying buffer. | 
| 116   static Handle<String> NewExternalStringFromAscii( | 115   static Handle<String> NewExternalStringFromAscii( | 
| 117       ExternalAsciiString::Resource* resource); | 116       ExternalAsciiString::Resource* resource); | 
| 118   static Handle<String> NewExternalStringFromTwoByte( | 117   static Handle<String> NewExternalStringFromTwoByte( | 
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 344   // Update the map cache in the global context with (keys, map) | 343   // Update the map cache in the global context with (keys, map) | 
| 345   static Handle<MapCache> AddToMapCache(Handle<Context> context, | 344   static Handle<MapCache> AddToMapCache(Handle<Context> context, | 
| 346                                         Handle<FixedArray> keys, | 345                                         Handle<FixedArray> keys, | 
| 347                                         Handle<Map> map); | 346                                         Handle<Map> map); | 
| 348 }; | 347 }; | 
| 349 | 348 | 
| 350 | 349 | 
| 351 } }  // namespace v8::internal | 350 } }  // namespace v8::internal | 
| 352 | 351 | 
| 353 #endif  // V8_FACTORY_H_ | 352 #endif  // V8_FACTORY_H_ | 
| OLD | NEW | 
|---|