OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/code-stubs.h" | 5 #include "src/code-stubs.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/cpu-profiler.h" | 10 #include "src/cpu-profiler.h" |
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
812 | 812 |
813 void StoreElementStub::Generate(MacroAssembler* masm) { | 813 void StoreElementStub::Generate(MacroAssembler* masm) { |
814 switch (elements_kind()) { | 814 switch (elements_kind()) { |
815 case FAST_ELEMENTS: | 815 case FAST_ELEMENTS: |
816 case FAST_HOLEY_ELEMENTS: | 816 case FAST_HOLEY_ELEMENTS: |
817 case FAST_SMI_ELEMENTS: | 817 case FAST_SMI_ELEMENTS: |
818 case FAST_HOLEY_SMI_ELEMENTS: | 818 case FAST_HOLEY_SMI_ELEMENTS: |
819 case FAST_DOUBLE_ELEMENTS: | 819 case FAST_DOUBLE_ELEMENTS: |
820 case FAST_HOLEY_DOUBLE_ELEMENTS: | 820 case FAST_HOLEY_DOUBLE_ELEMENTS: |
821 #define TYPED_ARRAY_CASE(Type, type, TYPE, ctype, size) \ | 821 #define TYPED_ARRAY_CASE(Type, type, TYPE, ctype, size) \ |
822 case EXTERNAL_##TYPE##_ELEMENTS: \ | |
823 case TYPE##_ELEMENTS: | 822 case TYPE##_ELEMENTS: |
824 | 823 |
825 TYPED_ARRAYS(TYPED_ARRAY_CASE) | 824 TYPED_ARRAYS(TYPED_ARRAY_CASE) |
826 #undef TYPED_ARRAY_CASE | 825 #undef TYPED_ARRAY_CASE |
827 UNREACHABLE(); | 826 UNREACHABLE(); |
828 break; | 827 break; |
829 case DICTIONARY_ELEMENTS: | 828 case DICTIONARY_ELEMENTS: |
830 ElementHandlerCompiler::GenerateStoreSlow(masm); | 829 ElementHandlerCompiler::GenerateStoreSlow(masm); |
831 break; | 830 break; |
832 case FAST_SLOPPY_ARGUMENTS_ELEMENTS: | 831 case FAST_SLOPPY_ARGUMENTS_ELEMENTS: |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1084 | 1083 |
1085 if (type->Is(Type::UntaggedPointer())) { | 1084 if (type->Is(Type::UntaggedPointer())) { |
1086 return Representation::External(); | 1085 return Representation::External(); |
1087 } | 1086 } |
1088 | 1087 |
1089 DCHECK(!type->Is(Type::Untagged())); | 1088 DCHECK(!type->Is(Type::Untagged())); |
1090 return Representation::Tagged(); | 1089 return Representation::Tagged(); |
1091 } | 1090 } |
1092 } // namespace internal | 1091 } // namespace internal |
1093 } // namespace v8 | 1092 } // namespace v8 |
OLD | NEW |