Index: src/deoptimizer.cc |
diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc |
index bc0c61c74ec646bba99c1e99c22eb0a1f666fc26..3a0e418eef86b3cebbd01667f5a752229ac503a7 100644 |
--- a/src/deoptimizer.cc |
+++ b/src/deoptimizer.cc |
@@ -540,7 +540,10 @@ Deoptimizer::Deoptimizer(Isolate* isolate, |
ASSERT(HEAP->allow_allocation(false)); |
unsigned size = ComputeInputFrameSize(); |
input_ = new(size) FrameDescription(size, function); |
- input_->SetFrameType(StackFrame::JAVA_SCRIPT); |
+ StackFrame::Type frame_type = function == NULL |
+ ? StackFrame::STUB |
+ : StackFrame::JAVA_SCRIPT; |
+ input_->SetFrameType(frame_type); |
} |
@@ -1651,6 +1654,8 @@ int FrameDescription::ComputeParametersCount() { |
// Can't use GetExpression(0) because it would cause infinite recursion. |
return reinterpret_cast<Smi*>(*GetFrameSlotPointer(0))->value(); |
} |
+ case StackFrame::STUB: |
+ return 0; |
default: |
UNREACHABLE(); |
return 0; |