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

Unified Diff: src/jsregexp.cc

Issue 11818025: Continues Latin-1 support. All tests pass with ENABLE_LATIN_1 flag. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: ARM fix 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 side-by-side diff with in-line comments
Download patch
Index: src/jsregexp.cc
diff --git a/src/jsregexp.cc b/src/jsregexp.cc
index 347fc03e7b26d96751bc0e270296bf828a0a41e3..a3efb859ac66867d6931f9f1f8affb84254a9e44 100644
--- a/src/jsregexp.cc
+++ b/src/jsregexp.cc
@@ -309,16 +309,16 @@ int RegExpImpl::AtomExecRaw(Handle<JSRegExp> regexp,
index = (needle_content.IsAscii()
? (subject_content.IsAscii()
? SearchString(isolate,
- subject_content.ToAsciiVector(),
- needle_content.ToAsciiVector(),
+ subject_content.ToOneByteVector(),
+ needle_content.ToOneByteVector(),
index)
: SearchString(isolate,
subject_content.ToUC16Vector(),
- needle_content.ToAsciiVector(),
+ needle_content.ToOneByteVector(),
index))
: (subject_content.IsAscii()
? SearchString(isolate,
- subject_content.ToAsciiVector(),
+ subject_content.ToOneByteVector(),
needle_content.ToUC16Vector(),
index)
: SearchString(isolate,

Powered by Google App Engine
This is Rietveld 408576698