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

Unified Diff: src/handles.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/handles.cc
diff --git a/src/handles.cc b/src/handles.cc
index 16fe0c795c0271d6be8711261925fc96db017445..ed92c414e37c1e8f3f423525dce17b603e4f1fe5 100644
--- a/src/handles.cc
+++ b/src/handles.cc
@@ -423,7 +423,7 @@ static void CalculateLineEnds(Isolate* isolate,
Vector<const SourceChar> src,
bool with_last_line) {
const int src_len = src.length();
- StringSearch<char, SourceChar> search(isolate, CStrVector("\n"));
+ StringSearch<uint8_t, SourceChar> search(isolate, STATIC_ASCII_VECTOR("\n"));
// Find and record line ends.
int position = 0;
@@ -457,7 +457,7 @@ Handle<FixedArray> CalculateLineEnds(Handle<String> src,
if (content.IsAscii()) {
CalculateLineEnds(isolate,
&line_ends,
- content.ToAsciiVector(),
+ content.ToOneByteVector(),
with_last_line);
} else {
CalculateLineEnds(isolate,
« no previous file with comments | « src/extensions/externalize-string-extension.cc ('k') | src/heap.cc » ('j') | src/isolate.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698