Chromium Code Reviews| 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; |