Index: src/codegen.cc |
diff --git a/src/codegen.cc b/src/codegen.cc |
index a365676ad6f933d751897a6415e9d52af921fcbf..afd8a6f592972da8bf5d9e150a4b7fa5566ae191 100644 |
--- a/src/codegen.cc |
+++ b/src/codegen.cc |
@@ -146,7 +146,8 @@ void CodeGenerator::PrintCode(Handle<Code> code, CompilationInfo* info) { |
isolate->bootstrapper()->IsActive() |
? FLAG_print_builtin_code |
: (FLAG_print_code || (info->IsStub() && FLAG_print_code_stubs) || |
- (info->IsOptimizing() && FLAG_print_opt_code)); |
+ (info->IsOptimizing() && FLAG_print_opt_code && |
+ info->shared_info()->PassesFilter(FLAG_print_opt_code_filter))); |
if (print_code) { |
std::unique_ptr<char[]> debug_name = info->GetDebugName(); |
CodeTracer::Scope tracing_scope(info->isolate()->GetCodeTracer()); |