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

Side by Side Diff: src/factory.cc

Issue 11759008: Introduce ENABLE_LATIN_1 compile flag (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix FilterASCII Created 7 years, 11 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 | « src/factory.h ('k') | src/globals.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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 String); 164 String);
165 } 165 }
166 166
167 // Symbols are created in the old generation (data space). 167 // Symbols are created in the old generation (data space).
168 Handle<String> Factory::LookupSymbol(Handle<String> string) { 168 Handle<String> Factory::LookupSymbol(Handle<String> string) {
169 CALL_HEAP_FUNCTION(isolate(), 169 CALL_HEAP_FUNCTION(isolate(),
170 isolate()->heap()->LookupSymbol(*string), 170 isolate()->heap()->LookupSymbol(*string),
171 String); 171 String);
172 } 172 }
173 173
174 Handle<String> Factory::LookupOneByteSymbol(Vector<const char> string) { 174 Handle<String> Factory::LookupOneByteSymbol(Vector<const uint8_t> string) {
175 CALL_HEAP_FUNCTION(isolate(), 175 CALL_HEAP_FUNCTION(isolate(),
176 isolate()->heap()->LookupOneByteSymbol(string), 176 isolate()->heap()->LookupOneByteSymbol(string),
177 String); 177 String);
178 } 178 }
179 179
180 180
181 Handle<String> Factory::LookupOneByteSymbol(Handle<SeqOneByteString> string, 181 Handle<String> Factory::LookupOneByteSymbol(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()->LookupOneByteSymbol(string, 185 isolate()->heap()->LookupOneByteSymbol(string,
186 from, 186 from,
187 length), 187 length),
188 String); 188 String);
189 } 189 }
190 190
191 191
192 Handle<String> Factory::LookupTwoByteSymbol(Vector<const uc16> string) { 192 Handle<String> Factory::LookupTwoByteSymbol(Vector<const uc16> string) {
193 CALL_HEAP_FUNCTION(isolate(), 193 CALL_HEAP_FUNCTION(isolate(),
194 isolate()->heap()->LookupTwoByteSymbol(string), 194 isolate()->heap()->LookupTwoByteSymbol(string),
195 String); 195 String);
196 } 196 }
197 197
198 198
199 Handle<String> Factory::NewStringFromAscii(Vector<const char> string, 199 Handle<String> Factory::NewStringFromOneByte(Vector<const uint8_t> string,
200 PretenureFlag pretenure) { 200 PretenureFlag pretenure) {
201 CALL_HEAP_FUNCTION( 201 CALL_HEAP_FUNCTION(
202 isolate(), 202 isolate(),
203 isolate()->heap()->AllocateStringFromOneByte(string, pretenure), 203 isolate()->heap()->AllocateStringFromOneByte(string, pretenure),
204 String); 204 String);
205 } 205 }
206 206
207 Handle<String> Factory::NewStringFromUtf8(Vector<const char> string, 207 Handle<String> Factory::NewStringFromUtf8(Vector<const char> string,
208 PretenureFlag pretenure) { 208 PretenureFlag pretenure) {
209 CALL_HEAP_FUNCTION( 209 CALL_HEAP_FUNCTION(
210 isolate(), 210 isolate(),
(...skipping 1236 matching lines...) Expand 10 before | Expand all | Expand 10 after
1447 1447
1448 1448
1449 Handle<Object> Factory::ToBoolean(bool value) { 1449 Handle<Object> Factory::ToBoolean(bool value) {
1450 return Handle<Object>(value 1450 return Handle<Object>(value
1451 ? isolate()->heap()->true_value() 1451 ? isolate()->heap()->true_value()
1452 : isolate()->heap()->false_value()); 1452 : isolate()->heap()->false_value());
1453 } 1453 }
1454 1454
1455 1455
1456 } } // namespace v8::internal 1456 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698