Index: src/code-stubs.cc |
diff --git a/src/code-stubs.cc b/src/code-stubs.cc |
index a8fd60844efd1d46e56060d3f4c9bcf64b770fc3..8b65b2a329a05cef3355643c575c155b5b234ee7 100644 |
--- a/src/code-stubs.cc |
+++ b/src/code-stubs.cc |
@@ -804,28 +804,8 @@ void CreateWeakCellStub::GenerateAheadOfTime(Isolate* isolate) { |
void StoreElementStub::Generate(MacroAssembler* masm) { |
- switch (elements_kind()) { |
- case FAST_ELEMENTS: |
- case FAST_HOLEY_ELEMENTS: |
- case FAST_SMI_ELEMENTS: |
- case FAST_HOLEY_SMI_ELEMENTS: |
- case FAST_DOUBLE_ELEMENTS: |
- case FAST_HOLEY_DOUBLE_ELEMENTS: |
-#define TYPED_ARRAY_CASE(Type, type, TYPE, ctype, size) \ |
- case TYPE##_ELEMENTS: |
- |
- TYPED_ARRAYS(TYPED_ARRAY_CASE) |
-#undef TYPED_ARRAY_CASE |
- UNREACHABLE(); |
- break; |
- case DICTIONARY_ELEMENTS: |
- ElementHandlerCompiler::GenerateStoreSlow(masm); |
- break; |
- case FAST_SLOPPY_ARGUMENTS_ELEMENTS: |
- case SLOW_SLOPPY_ARGUMENTS_ELEMENTS: |
- UNREACHABLE(); |
- break; |
- } |
+ DCHECK_EQ(DICTIONARY_ELEMENTS, elements_kind()); |
+ ElementHandlerCompiler::GenerateStoreSlow(masm); |
} |