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

Unified Diff: src/disassembler.cc

Issue 2109613004: Remove position info from relocation info. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@turbosourcepos
Patch Set: fix 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
« no previous file with comments | « src/deoptimizer.cc ('k') | src/ia32/assembler-ia32.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/disassembler.cc
diff --git a/src/disassembler.cc b/src/disassembler.cc
index 8fe1e7feddb69a8e73d95627d71dd574e5861442..bd4c66e5f68f2f6a02a7c1f4e051d5d6efe4cf02 100644
--- a/src/disassembler.cc
+++ b/src/disassembler.cc
@@ -170,14 +170,9 @@ static int DecodeIt(Isolate* isolate, std::ostream* os,
}
RelocInfo::Mode rmode = relocinfo.rmode();
- if (RelocInfo::IsPosition(rmode)) {
- if (RelocInfo::IsStatementPosition(rmode)) {
- out.AddFormatted(" ;; debug: statement %" V8PRIdPTR,
- relocinfo.data());
- } else {
- out.AddFormatted(" ;; debug: position %" V8PRIdPTR,
- relocinfo.data());
- }
+ if (rmode == RelocInfo::DEOPT_POSITION) {
+ out.AddFormatted(" ;; debug: deopt position '%d'",
+ static_cast<int>(relocinfo.data()));
} else if (rmode == RelocInfo::DEOPT_REASON) {
Deoptimizer::DeoptReason reason =
static_cast<Deoptimizer::DeoptReason>(relocinfo.data());
« no previous file with comments | « src/deoptimizer.cc ('k') | src/ia32/assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698