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

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: Improve disassembler, get rid of PatchProcedureBoundariesInEhFrame. 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 2ec9afca87df686b3ee069baa46b2b2c1aa21ffb..00a05a828fffcea49a63594cb749b312df2df979 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 {
@@ -14355,6 +14356,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
« src/eh-frame.cc ('K') | « src/full-codegen/full-codegen.cc ('k') | src/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698