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

Unified Diff: test/cctest/test-debug.cc

Issue 14638003: deprecate WriteAscii and MayContainNonAscii (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 8 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
« no previous file with comments | « test/cctest/test-api.cc ('k') | test/cctest/test-log.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-debug.cc
diff --git a/test/cctest/test-debug.cc b/test/cctest/test-debug.cc
index 3cc35e75f0f91f887ecdfe11d495f01159ad76a6..add555531b3447ed377d7548b14ce4c6cab569a2 100644
--- a/test/cctest/test-debug.cc
+++ b/test/cctest/test-debug.cc
@@ -675,7 +675,7 @@ static void DebugEventBreakPointHitCount(v8::DebugEvent event,
} else {
CHECK(result->IsString());
v8::Handle<v8::String> function_name(result->ToString());
- function_name->WriteAscii(last_function_hit);
+ function_name->WriteUtf8(last_function_hit);
}
}
@@ -710,7 +710,7 @@ static void DebugEventBreakPointHitCount(v8::DebugEvent event,
} else {
CHECK(result->IsString());
v8::Handle<v8::String> script_name(result->ToString());
- script_name->WriteAscii(last_script_name_hit);
+ script_name->WriteUtf8(last_script_name_hit);
}
}
@@ -726,7 +726,7 @@ static void DebugEventBreakPointHitCount(v8::DebugEvent event,
result = result->ToString();
CHECK(result->IsString());
v8::Handle<v8::String> script_data(result->ToString());
- script_data->WriteAscii(last_script_data_hit);
+ script_data->WriteUtf8(last_script_data_hit);
}
}
@@ -746,7 +746,7 @@ static void DebugEventBreakPointHitCount(v8::DebugEvent event,
result = result->ToString();
CHECK(result->IsString());
v8::Handle<v8::String> script_data(result->ToString());
- script_data->WriteAscii(last_script_data_hit);
+ script_data->WriteUtf8(last_script_data_hit);
}
}
}
@@ -6376,7 +6376,7 @@ static void DebugEventDebugBreak(
} else {
CHECK(result->IsString());
v8::Handle<v8::String> function_name(result->ToString());
- function_name->WriteAscii(last_function_hit);
+ function_name->WriteUtf8(last_function_hit);
}
}
@@ -7176,7 +7176,7 @@ static void DebugEventBreakDeoptimize(v8::DebugEvent event,
char fn[80];
CHECK(result->IsString());
v8::Handle<v8::String> function_name(result->ToString());
- function_name->WriteAscii(fn);
+ function_name->WriteUtf8(fn);
if (strcmp(fn, "bar") == 0) {
i::Deoptimizer::DeoptimizeAll(v8::internal::Isolate::Current());
debug_event_break_deoptimize_done = true;
« no previous file with comments | « test/cctest/test-api.cc ('k') | test/cctest/test-log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698