Commit 9cda962b authored by ofrobots's avatar ofrobots Committed by Commit bot

FLAG_print_code_stubs should respect FLAG_redirect_code_traces

Stub code traces should also be redirected to the file specified by the user.

R=yangguo@chromium.org
BUG=

Review URL: https://codereview.chromium.org/1795873002

Cr-Commit-Position: refs/heads/master@{#34792}
parent 2ca31b63
......@@ -18,7 +18,8 @@ Handle<Code> PropertyAccessCompiler::GetCodeWithFlags(Code::Flags flags,
if (code->IsCodeStubOrIC()) code->set_stub_key(CodeStub::NoCacheKey());
#ifdef ENABLE_DISASSEMBLER
if (FLAG_print_code_stubs) {
OFStream os(stdout);
CodeTracer::Scope trace_scope(isolate()->GetCodeTracer());
OFStream os(trace_scope.file());
code->Disassemble(name, os);
}
#endif
......
......@@ -14963,7 +14963,6 @@ void Code::Disassemble(const char* name, std::ostream& os) { // NOLINT
}
#ifdef OBJECT_PRINT
if (!type_feedback_info()->IsUndefined()) {
OFStream os(stdout);
TypeFeedbackInfo::cast(type_feedback_info())->TypeFeedbackInfoPrint(os);
os << "\n";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment