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

Unified Diff: test/cctest/interpreter/generate-bytecode-expectations.cc

Issue 1742723003: [Interpreter] Silence runtime errors in generate-bytecode-expectations. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/interpreter/generate-bytecode-expectations.cc
diff --git a/test/cctest/interpreter/generate-bytecode-expectations.cc b/test/cctest/interpreter/generate-bytecode-expectations.cc
index 0c9874020bdb5a2a138348941591c7c7695839e3..a45688eda9c8992398578156607fae0e88584bd4 100644
--- a/test/cctest/interpreter/generate-bytecode-expectations.cc
+++ b/test/cctest/interpreter/generate-bytecode-expectations.cc
@@ -484,6 +484,12 @@ bool WriteExpectationsFile(const std::vector<std::string>& snippet_list,
return true;
}
+void PrintMessage(v8::Local<v8::Message> message, v8::Local<v8::Value>) {
+ std::cerr << "INFO: " << *v8::String::Utf8Value(message->Get()) << '\n';
+}
+
+void DiscardMessage(v8::Local<v8::Message>, v8::Local<v8::Value>) {}
+
void PrintUsage(const char* exec_path) {
std::cerr
<< "\nUsage: " << exec_path
@@ -528,6 +534,9 @@ int main(int argc, char** argv) {
}
V8InitializationScope platform(argv[0]);
+ platform.isolate()->AddMessageListener(
+ options.rebaseline() && !options.verbose() ? PrintMessage
rmcilroy 2016/02/26 16:57:58 Could you pull the "options.rebaseline() && !optio
Stefano Sanfilippo 2016/02/26 17:01:06 Done.
+ : DiscardMessage);
std::vector<std::string> snippet_list;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698