Index: src/assembler.cc |
diff --git a/src/assembler.cc b/src/assembler.cc |
index 676a9febdbff695b79db82dadfa5a1958125d143..d41c13830776367cd80ab2e58cdd4f73bf332145 100644 |
--- a/src/assembler.cc |
+++ b/src/assembler.cc |
@@ -1891,11 +1891,12 @@ int ConstantPoolBuilder::Emit(Assembler* assm) { |
// Platform specific but identical code for all the platforms. |
-void Assembler::RecordDeoptReason(DeoptimizeReason reason, int raw_position, |
- int id) { |
+void Assembler::RecordDeoptReason(DeoptimizeReason reason, |
+ SourcePosition position, int id) { |
if (FLAG_trace_deopt || isolate()->is_profiling()) { |
EnsureSpace ensure_space(this); |
- RecordRelocInfo(RelocInfo::DEOPT_POSITION, raw_position); |
+ RecordRelocInfo(RelocInfo::DEOPT_POSITION, position.ScriptOffset()); |
+ RecordRelocInfo(RelocInfo::DEOPT_POSITION, position.InliningId()); |
alph
2016/11/07 22:38:39
Hmm, looks hacky. How about adding a new tag for i
|
RecordRelocInfo(RelocInfo::DEOPT_REASON, static_cast<int>(reason)); |
RecordRelocInfo(RelocInfo::DEOPT_ID, id); |
} |