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

Unified Diff: src/frames.cc

Issue 1763783003: [Interpreter] Fixes translation from bailout id to code offset. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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/deoptimizer.cc ('k') | test/mjsunit/mjsunit.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/frames.cc
diff --git a/src/frames.cc b/src/frames.cc
index c4653c61e29f03ba0055841d99b0c862fca280ba..debd3ce69fee04d193c6e05420a5f78557bfa153 100644
--- a/src/frames.cc
+++ b/src/frames.cc
@@ -1013,7 +1013,7 @@ void OptimizedFrame::Summarize(List<FrameSummary>* frames) {
abstract_code = AbstractCode::cast(code);
} else {
DCHECK_EQ(frame_opcode, Translation::INTERPRETED_FRAME);
- code_offset = bailout_id.ToInt();
+ code_offset = bailout_id.ToInt() - 1;
mythria 2016/03/04 16:15:33 This is not a proper fix, but works. As Yang, poin
rmcilroy 2016/03/05 03:01:24 I'm not sure this is a problem, did you find anyth
abstract_code = AbstractCode::cast(shared_info->bytecode_array());
}
FrameSummary summary(receiver, function, abstract_code, code_offset,
« no previous file with comments | « src/deoptimizer.cc ('k') | test/mjsunit/mjsunit.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698