| Index: src/lithium.cc
|
| diff --git a/src/lithium.cc b/src/lithium.cc
|
| index 1920646cd1a3254278cb1b4dd61de00e1d702fb4..38e880ef6a0ef61d09f4db764f93f5eb447d9e36 100644
|
| --- a/src/lithium.cc
|
| +++ b/src/lithium.cc
|
| @@ -236,36 +236,6 @@ void LPointerMap::PrintTo(StringStream* stream) {
|
| }
|
|
|
|
|
| -int ElementsKindToShiftSize(ElementsKind elements_kind) {
|
| - switch (elements_kind) {
|
| - case EXTERNAL_BYTE_ELEMENTS:
|
| - case EXTERNAL_PIXEL_ELEMENTS:
|
| - case EXTERNAL_UNSIGNED_BYTE_ELEMENTS:
|
| - return 0;
|
| - case EXTERNAL_SHORT_ELEMENTS:
|
| - case EXTERNAL_UNSIGNED_SHORT_ELEMENTS:
|
| - return 1;
|
| - case EXTERNAL_INT_ELEMENTS:
|
| - case EXTERNAL_UNSIGNED_INT_ELEMENTS:
|
| - case EXTERNAL_FLOAT_ELEMENTS:
|
| - return 2;
|
| - case EXTERNAL_DOUBLE_ELEMENTS:
|
| - case FAST_DOUBLE_ELEMENTS:
|
| - case FAST_HOLEY_DOUBLE_ELEMENTS:
|
| - return 3;
|
| - case FAST_SMI_ELEMENTS:
|
| - case FAST_ELEMENTS:
|
| - case FAST_HOLEY_SMI_ELEMENTS:
|
| - case FAST_HOLEY_ELEMENTS:
|
| - case DICTIONARY_ELEMENTS:
|
| - case NON_STRICT_ARGUMENTS_ELEMENTS:
|
| - return kPointerSizeLog2;
|
| - }
|
| - UNREACHABLE();
|
| - return 0;
|
| -}
|
| -
|
| -
|
| int StackSlotOffset(int index) {
|
| if (index >= 0) {
|
| // Local or spill slot. Skip the frame pointer, function, and
|
| @@ -375,7 +345,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;
|
| }
|
|
|