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

Side by Side Diff: src/factory.h

Issue 7230006: Inctroduce NewStrictSubstring to avoid check for SubString(str, 0, str.length... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 6 months 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 | « no previous file | 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 // Create a new cons string object which consists of a pair of strings. 127 // Create a new cons string object which consists of a pair of strings.
128 Handle<String> NewConsString(Handle<String> first, 128 Handle<String> NewConsString(Handle<String> first,
129 Handle<String> second); 129 Handle<String> second);
130 130
131 // Create a new string object which holds a substring of a string. 131 // Create a new string object which holds a substring of a string.
132 Handle<String> NewSubString(Handle<String> str, 132 Handle<String> NewSubString(Handle<String> str,
133 int begin, 133 int begin,
134 int end); 134 int end);
135 135
136 // Create a new string object which holds a strict substring of a string.
137 Handle<String> NewStrictSubString(Handle<String> str,
138 int begin,
139 int end);
140
136 // Creates a new external String object. There are two String encodings 141 // Creates a new external String object. There are two String encodings
137 // in the system: ASCII and two byte. Unlike other String types, it does 142 // in the system: ASCII and two byte. Unlike other String types, it does
138 // not make sense to have a UTF-8 factory function for external strings, 143 // not make sense to have a UTF-8 factory function for external strings,
139 // because we cannot change the underlying buffer. 144 // because we cannot change the underlying buffer.
140 Handle<String> NewExternalStringFromAscii( 145 Handle<String> NewExternalStringFromAscii(
141 ExternalAsciiString::Resource* resource); 146 ExternalAsciiString::Resource* resource);
142 Handle<String> NewExternalStringFromTwoByte( 147 Handle<String> NewExternalStringFromTwoByte(
143 ExternalTwoByteString::Resource* resource); 148 ExternalTwoByteString::Resource* resource);
144 149
145 // Create a global (but otherwise uninitialized) context. 150 // Create a global (but otherwise uninitialized) context.
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 // Update the map cache in the global context with (keys, map) 447 // Update the map cache in the global context with (keys, map)
443 Handle<MapCache> AddToMapCache(Handle<Context> context, 448 Handle<MapCache> AddToMapCache(Handle<Context> context,
444 Handle<FixedArray> keys, 449 Handle<FixedArray> keys,
445 Handle<Map> map); 450 Handle<Map> map);
446 }; 451 };
447 452
448 453
449 } } // namespace v8::internal 454 } } // namespace v8::internal
450 455
451 #endif // V8_FACTORY_H_ 456 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698