Chromium Code Reviews| Index: src/lithium.cc |
| diff --git a/src/lithium.cc b/src/lithium.cc |
| index fa837c7edef2fbbd23f5f7d9f983bd107b76998c..14aa7629aa22b6c1eb95352c8cdea23bd46da64e 100644 |
| --- a/src/lithium.cc |
| +++ b/src/lithium.cc |
| @@ -372,7 +372,8 @@ int LChunk::GetParameterStackSlot(int index) const { |
| // shift all parameter indexes down by the number of parameters, and |
| // make sure they end up negative so they are distinguishable from |
| // spill slots. |
| - int result = index - info()->scope()->num_parameters() - 1; |
| + int result = index - info()->num_parameters() - 1; |
| + |
| ASSERT(result < 0); |
| return result; |
| } |