Index: src/deoptimizer.cc |
diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc |
index e8c659718f769a6ec5d2dd6129b2b4bb0ad7c16c..1151449eadb9277165f31d50eb550b75c22f806e 100644 |
--- a/src/deoptimizer.cc |
+++ b/src/deoptimizer.cc |
@@ -1415,6 +1415,7 @@ void SlotRef::ComputeSlotMappingForArguments(JavaScriptFrame* frame, |
DeoptimizedFrameInfo::DeoptimizedFrameInfo( |
Deoptimizer* deoptimizer, int frame_index) { |
FrameDescription* output_frame = deoptimizer->output_[frame_index]; |
+ SetFunction(output_frame->GetFunction()); |
expression_count_ = output_frame->GetExpressionCount(deoptimizer); |
expression_stack_ = new Object*[expression_count_]; |
for (int i = 0; i < expression_count_; i++) { |
@@ -1428,6 +1429,7 @@ DeoptimizedFrameInfo::~DeoptimizedFrameInfo() { |
} |
void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) { |
+ v->VisitPointer(reinterpret_cast<Object**>(&function_)); |
v->VisitPointers(expression_stack_, expression_stack_ + expression_count_); |
} |