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

Side by Side Diff: src/factory.h

Issue 10857030: Add basic support for Latin1 to the API. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments. Created 8 years, 4 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/api.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 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 // 113 //
114 // ASCII strings are pretenured when used as keys in the SourceCodeCache. 114 // ASCII strings are pretenured when used as keys in the SourceCodeCache.
115 Handle<String> NewStringFromAscii( 115 Handle<String> NewStringFromAscii(
116 Vector<const char> str, 116 Vector<const char> str,
117 PretenureFlag pretenure = NOT_TENURED); 117 PretenureFlag pretenure = NOT_TENURED);
118 118
119 // UTF8 strings are pretenured when used for regexp literal patterns and 119 // UTF8 strings are pretenured when used for regexp literal patterns and
120 // flags in the parser. 120 // flags in the parser.
121 Handle<String> NewStringFromUtf8( 121 Handle<String> NewStringFromUtf8(
122 Vector<const char> str, 122 Vector<const char> str,
123 PretenureFlag pretenure = NOT_TENURED); 123 PretenureFlag pretenure = NOT_TENURED,
124 String::AsciiHint ascii_hint = String::MAYBE_ASCII);
125
126 Handle<String> NewStringFromLatin1(
127 Vector<const char> str,
128 PretenureFlag pretenure = NOT_TENURED,
129 String::AsciiHint ascii_hint = String::MAYBE_ASCII);
124 130
125 Handle<String> NewStringFromTwoByte( 131 Handle<String> NewStringFromTwoByte(
126 Vector<const uc16> str, 132 Vector<const uc16> str,
127 PretenureFlag pretenure = NOT_TENURED); 133 PretenureFlag pretenure = NOT_TENURED);
128 134
129 // Allocates and partially initializes an ASCII or TwoByte String. The 135 // Allocates and partially initializes an ASCII or TwoByte String. The
130 // characters of the string are uninitialized. Currently used in regexp code 136 // characters of the string are uninitialized. Currently used in regexp code
131 // only, where they are pretenured. 137 // only, where they are pretenured.
132 Handle<SeqAsciiString> NewRawAsciiString( 138 Handle<SeqAsciiString> NewRawAsciiString(
133 int length, 139 int length,
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 // Update the map cache in the global context with (keys, map) 508 // Update the map cache in the global context with (keys, map)
503 Handle<MapCache> AddToMapCache(Handle<Context> context, 509 Handle<MapCache> AddToMapCache(Handle<Context> context,
504 Handle<FixedArray> keys, 510 Handle<FixedArray> keys,
505 Handle<Map> map); 511 Handle<Map> map);
506 }; 512 };
507 513
508 514
509 } } // namespace v8::internal 515 } } // namespace v8::internal
510 516
511 #endif // V8_FACTORY_H_ 517 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698