| Index: src/frames-inl.h
|
| diff --git a/src/frames-inl.h b/src/frames-inl.h
|
| index 7901a5e591c85f8d85431d7dbbecd426e64ab08d..f2b75ba7cc2d2527902a024efedb78dfae2c93c9 100644
|
| --- a/src/frames-inl.h
|
| +++ b/src/frames-inl.h
|
| @@ -216,8 +216,9 @@ Object* JavaScriptFrame::GetParameter(int index) const {
|
| inline Address JavaScriptFrame::GetOperandSlot(int index) const {
|
| Address base = fp() + JavaScriptFrameConstants::kLocal0Offset;
|
| ASSERT(IsAddressAligned(base, kPointerSize));
|
| - ASSERT(type() == JAVA_SCRIPT);
|
| - ASSERT(index < ComputeOperandsCount());
|
| + ASSERT_EQ(type(), JAVA_SCRIPT);
|
| + ASSERT_LT(index, ComputeOperandsCount());
|
| + ASSERT_LE(0, index);
|
| // Operand stack grows down.
|
| return base - index * kPointerSize;
|
| }
|
|
|