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

Unified Diff: src/objects.cc

Issue 2023503002: Reland Implement .eh_frame writer and disassembler. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@eh-frame-base
Patch Set: Rebase on master. Created 4 years, 5 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 | « src/full-codegen/full-codegen.cc ('k') | src/perf-jit.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index b64ae2c1e7b30d506db1a691eb13d56a2553d6a1..d374bdad2603c43fec0014d68a72e55b35506568 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -61,6 +61,7 @@
#ifdef ENABLE_DISASSEMBLER
#include "src/disasm.h"
#include "src/disassembler.h"
+#include "src/eh-frame.h"
#endif
namespace v8 {
@@ -14349,6 +14350,14 @@ void Code::Disassemble(const char* name, std::ostream& os) { // NOLINT
it.rinfo()->Print(GetIsolate(), os);
}
os << "\n";
+
+ if (has_unwinding_info()) {
+ os << "UnwindingInfo (size = " << unwinding_info_size() << ")\n";
+ EhFrameDisassembler eh_frame_disassembler(unwinding_info_start(),
+ unwinding_info_end());
+ eh_frame_disassembler.DisassembleToStream(os);
+ os << "\n";
+ }
}
#endif // ENABLE_DISASSEMBLER
« no previous file with comments | « src/full-codegen/full-codegen.cc ('k') | src/perf-jit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698