| Index: src/factory.h
|
| diff --git a/src/factory.h b/src/factory.h
|
| index 54933355eb3c84af4702dba85b437051a11bc3b3..522639dd64669e9ad704d54d4f36195ec61d1bc6 100644
|
| --- a/src/factory.h
|
| +++ b/src/factory.h
|
| @@ -84,7 +84,7 @@ class Factory {
|
| return LookupUtf8Symbol(CStrVector(str));
|
| }
|
| Handle<String> LookupSymbol(Handle<String> str);
|
| - Handle<String> LookupOneByteSymbol(Vector<const char> str);
|
| + Handle<String> LookupOneByteSymbol(Vector<const uint8_t> str);
|
| Handle<String> LookupOneByteSymbol(Handle<SeqOneByteString>,
|
| int from,
|
| int length);
|
| @@ -113,9 +113,15 @@ class Factory {
|
| // two byte.
|
| //
|
| // ASCII strings are pretenured when used as keys in the SourceCodeCache.
|
| - Handle<String> NewStringFromAscii(
|
| - Vector<const char> str,
|
| + Handle<String> NewStringFromOneByte(
|
| + Vector<const uint8_t> str,
|
| PretenureFlag pretenure = NOT_TENURED);
|
| + // TODO(dcarney): remove this function.
|
| + inline Handle<String> NewStringFromAscii(
|
| + Vector<const char> str,
|
| + PretenureFlag pretenure = NOT_TENURED) {
|
| + return NewStringFromOneByte(Vector<const uint8_t>::cast(str), pretenure);
|
| + }
|
|
|
| // UTF8 strings are pretenured when used for regexp literal patterns and
|
| // flags in the parser.
|
|
|