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

Side by Side Diff: src/factory.cc

Issue 11411005: Rename SeqAsciiString (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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/factory.h ('k') | src/heap.h » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 String); 171 String);
172 } 172 }
173 173
174 Handle<String> Factory::LookupAsciiSymbol(Vector<const char> string) { 174 Handle<String> Factory::LookupAsciiSymbol(Vector<const char> string) {
175 CALL_HEAP_FUNCTION(isolate(), 175 CALL_HEAP_FUNCTION(isolate(),
176 isolate()->heap()->LookupAsciiSymbol(string), 176 isolate()->heap()->LookupAsciiSymbol(string),
177 String); 177 String);
178 } 178 }
179 179
180 180
181 Handle<String> Factory::LookupAsciiSymbol(Handle<SeqAsciiString> string, 181 Handle<String> Factory::LookupAsciiSymbol(Handle<SeqOneByteString> string,
182 int from, 182 int from,
183 int length) { 183 int length) {
184 CALL_HEAP_FUNCTION(isolate(), 184 CALL_HEAP_FUNCTION(isolate(),
185 isolate()->heap()->LookupAsciiSymbol(string, 185 isolate()->heap()->LookupAsciiSymbol(string,
186 from, 186 from,
187 length), 187 length),
188 String); 188 String);
189 } 189 }
190 190
191 191
(...skipping 23 matching lines...) Expand all
215 215
216 Handle<String> Factory::NewStringFromTwoByte(Vector<const uc16> string, 216 Handle<String> Factory::NewStringFromTwoByte(Vector<const uc16> string,
217 PretenureFlag pretenure) { 217 PretenureFlag pretenure) {
218 CALL_HEAP_FUNCTION( 218 CALL_HEAP_FUNCTION(
219 isolate(), 219 isolate(),
220 isolate()->heap()->AllocateStringFromTwoByte(string, pretenure), 220 isolate()->heap()->AllocateStringFromTwoByte(string, pretenure),
221 String); 221 String);
222 } 222 }
223 223
224 224
225 Handle<SeqAsciiString> Factory::NewRawAsciiString(int length, 225 Handle<SeqOneByteString> Factory::NewRawOneByteString(int length,
226 PretenureFlag pretenure) { 226 PretenureFlag pretenure) {
227 CALL_HEAP_FUNCTION( 227 CALL_HEAP_FUNCTION(
228 isolate(), 228 isolate(),
229 isolate()->heap()->AllocateRawAsciiString(length, pretenure), 229 isolate()->heap()->AllocateRawAsciiString(length, pretenure),
230 SeqAsciiString); 230 SeqOneByteString);
231 } 231 }
232 232
233 233
234 Handle<SeqTwoByteString> Factory::NewRawTwoByteString(int length, 234 Handle<SeqTwoByteString> Factory::NewRawTwoByteString(int length,
235 PretenureFlag pretenure) { 235 PretenureFlag pretenure) {
236 CALL_HEAP_FUNCTION( 236 CALL_HEAP_FUNCTION(
237 isolate(), 237 isolate(),
238 isolate()->heap()->AllocateRawTwoByteString(length, pretenure), 238 isolate()->heap()->AllocateRawTwoByteString(length, pretenure),
239 SeqTwoByteString); 239 SeqTwoByteString);
240 } 240 }
(...skipping 1199 matching lines...) Expand 10 before | Expand all | Expand 10 after
1440 1440
1441 1441
1442 Handle<Object> Factory::ToBoolean(bool value) { 1442 Handle<Object> Factory::ToBoolean(bool value) {
1443 return Handle<Object>(value 1443 return Handle<Object>(value
1444 ? isolate()->heap()->true_value() 1444 ? isolate()->heap()->true_value()
1445 : isolate()->heap()->false_value()); 1445 : isolate()->heap()->false_value());
1446 } 1446 }
1447 1447
1448 1448
1449 } } // namespace v8::internal 1449 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698