Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(272)

Side by Side Diff: src/factory.h

Issue 9181: Push string shape fixes to trunk (version 0.4.3.1). (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 12 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/conversions.cc ('k') | src/factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/conversions.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698