Review URL: http://codereview.chromium.org/42276

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1522 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
erik.corry@gmail.com 2009-03-17 10:46:53 +00:00
parent 608a99a90c
commit 223ea84e56
2 changed files with 3 additions and 2 deletions

View File

@ -4190,7 +4190,8 @@ bool String::SlowEquals(String* other) {
if (Hash() != other->Hash()) return false;
}
if (StringShape(this).IsSequentialAscii() && StringShape(other).IsSequentialAscii()) {
if (StringShape(this).IsSequentialAscii() &&
StringShape(other).IsSequentialAscii()) {
const char* str1 = SeqAsciiString::cast(this)->GetChars();
const char* str2 = SeqAsciiString::cast(other)->GetChars();
return CompareRawStringContents(Vector<const char>(str1, len),

View File

@ -3084,7 +3084,7 @@ static Object* ConvertCaseHelper(String* s,
unibrow::uchar chars[Converter::kMaxWidth];
// We can assume that the string is not empty
uc32 current = buffer->GetNext();
for (int i = 0; i < length; ) {
for (int i = 0; i < length;) {
bool has_next = buffer->has_more();
uc32 next = has_next ? buffer->GetNext() : 0;
int char_length = mapping->get(current, next, chars);