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

Side by Side Diff: src/factory.h

Issue 1041723002: Added %_NewConsString intrinsic. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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
« 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 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 "src/isolate.h" 8 #include "src/isolate.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 int length, 189 int length,
190 PretenureFlag pretenure = NOT_TENURED); 190 PretenureFlag pretenure = NOT_TENURED);
191 191
192 // Creates a single character string where the character has given code. 192 // Creates a single character string where the character has given code.
193 // A cache is used for Latin1 codes. 193 // A cache is used for Latin1 codes.
194 Handle<String> LookupSingleCharacterStringFromCode(uint32_t code); 194 Handle<String> LookupSingleCharacterStringFromCode(uint32_t code);
195 195
196 // Create a new cons string object which consists of a pair of strings. 196 // Create a new cons string object which consists of a pair of strings.
197 MUST_USE_RESULT MaybeHandle<String> NewConsString(Handle<String> left, 197 MUST_USE_RESULT MaybeHandle<String> NewConsString(Handle<String> left,
198 Handle<String> right); 198 Handle<String> right);
199 MUST_USE_RESULT MaybeHandle<String> NewOneByteConsString(
200 int length, Handle<String> left, Handle<String> right);
201 MUST_USE_RESULT MaybeHandle<String> NewTwoByteConsString(
202 int length, Handle<String> left, Handle<String> right);
203 MUST_USE_RESULT MaybeHandle<String> NewRawConsString(Handle<Map> map,
204 int length,
205 Handle<String> left,
206 Handle<String> right);
199 207
200 // Create a new string object which holds a proper substring of a string. 208 // Create a new string object which holds a proper substring of a string.
201 Handle<String> NewProperSubString(Handle<String> str, 209 Handle<String> NewProperSubString(Handle<String> str,
202 int begin, 210 int begin,
203 int end); 211 int end);
204 212
205 // Create a new string object which holds a substring of a string. 213 // Create a new string object which holds a substring of a string.
206 Handle<String> NewSubString(Handle<String> str, int begin, int end) { 214 Handle<String> NewSubString(Handle<String> str, int begin, int end) {
207 if (begin == 0 && end == str->length()) return str; 215 if (begin == 0 && end == str->length()) return str;
208 return NewProperSubString(str, begin, end); 216 return NewProperSubString(str, begin, end);
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 // Reinitialize a JSProxy into an (empty) JS object of respective type and 713 // Reinitialize a JSProxy into an (empty) JS object of respective type and
706 // size, but keeping the original prototype. The receiver must have at least 714 // size, but keeping the original prototype. The receiver must have at least
707 // the size of the new object. The object is reinitialized and behaves as an 715 // the size of the new object. The object is reinitialized and behaves as an
708 // object that has been freshly allocated. 716 // object that has been freshly allocated.
709 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); 717 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size);
710 }; 718 };
711 719
712 } } // namespace v8::internal 720 } } // namespace v8::internal
713 721
714 #endif // V8_FACTORY_H_ 722 #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