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

Unified Diff: src/log.cc

Issue 121173009: String:WriteUtf8: Add REPLACE_INVALID_UTF8 option (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Abandon refactoring, get core behavior change done Created 6 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/log.cc
diff --git a/src/log.cc b/src/log.cc
index 95362c0910d28163fb1d72d0f47c38c262fe289c..6e4b401227d47f416ddf196a392a48e752cd0dab 100644
--- a/src/log.cc
+++ b/src/log.cc
@@ -120,7 +120,7 @@ class CodeEventLogger::NameBuffer {
} else {
int char_length = unibrow::Utf8::Length(c, previous);
if (utf8_pos_ + char_length > kUtf8BufferSize) break;
- unibrow::Utf8::Encode(utf8_buffer_ + utf8_pos_, c, previous);
+ unibrow::Utf8::Encode(utf8_buffer_ + utf8_pos_, c, previous, true);
utf8_pos_ += char_length;
}
previous = c;

Powered by Google App Engine
This is Rietveld 408576698