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

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: if => ifdef Created 4 years, 6 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
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index 646552810095c77a0fc430d8e82486dafaeaa1a8..b8c234e82b7ef7c9eb2921bb5618b5b860859b3f 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -60,6 +60,7 @@
#ifdef ENABLE_DISASSEMBLER
#include "src/disasm.h"
#include "src/disassembler.h"
+#include "src/eh-frame.h"
#endif
namespace v8 {
@@ -14434,6 +14435,13 @@ 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";
+ EhFrameWriter::DisassembleToStream(os, unwinding_info_start(),
+ unwinding_info_end());
+ os << "\n";
+ }
}
#endif // ENABLE_DISASSEMBLER

Powered by Google App Engine
This is Rietveld 408576698