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

Unified Diff: src/objects.cc

Issue 943503003: Emit exception handler table in TurboFan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_trycatch-4
Patch Set: Fix Win64 compilation failure. Created 5 years, 10 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/compiler/x64/instruction-selector-x64.cc ('k') | no next file » | 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 0eda4912e63902939c8efd1effdc71953670f307..575757bd34cc9b4b3abbeda5464ac7e17652128a 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -11804,6 +11804,19 @@ void Code::Disassemble(const char* name, std::ostream& os) { // NOLINT
#endif
}
+ if (handler_table()->length() > 0 && is_turbofanned()) {
+ os << "Handler Table (size = " << handler_table()->Size() << ")\n";
+ for (int i = 0; i < handler_table()->length(); i += 2) {
+ int pc_offset = Smi::cast(handler_table()->get(i))->value();
+ int handler = Smi::cast(handler_table()->get(i + 1))->value();
+ os << static_cast<const void*>(instruction_start() + pc_offset) << " ";
+ Vector<char> buf = Vector<char>::New(20);
+ SNPrintF(buf, "%4d %4d\n", pc_offset, handler);
+ os << buf.start();
+ }
+ os << "\n";
+ }
+
os << "RelocInfo (size = " << relocation_size() << ")\n";
for (RelocIterator it(this); !it.done(); it.next()) {
it.rinfo()->Print(GetIsolate(), os);
« no previous file with comments | « src/compiler/x64/instruction-selector-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698