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 789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
800 | 800 |
801 void StoreElementStub::Generate(MacroAssembler* masm) { | 801 void StoreElementStub::Generate(MacroAssembler* masm) { |
802 switch (elements_kind()) { | 802 switch (elements_kind()) { |
803 case FAST_ELEMENTS: | 803 case FAST_ELEMENTS: |
804 case FAST_HOLEY_ELEMENTS: | 804 case FAST_HOLEY_ELEMENTS: |
805 case FAST_SMI_ELEMENTS: | 805 case FAST_SMI_ELEMENTS: |
806 case FAST_HOLEY_SMI_ELEMENTS: | 806 case FAST_HOLEY_SMI_ELEMENTS: |
807 case FAST_DOUBLE_ELEMENTS: | 807 case FAST_DOUBLE_ELEMENTS: |
808 case FAST_HOLEY_DOUBLE_ELEMENTS: | 808 case FAST_HOLEY_DOUBLE_ELEMENTS: |
809 #define TYPED_ARRAY_CASE(Type, type, TYPE, ctype, size) \ | 809 #define TYPED_ARRAY_CASE(Type, type, TYPE, ctype, size) \ |
| 810 case EXTERNAL_##TYPE##_ELEMENTS: \ |
810 case TYPE##_ELEMENTS: | 811 case TYPE##_ELEMENTS: |
811 | 812 |
812 TYPED_ARRAYS(TYPED_ARRAY_CASE) | 813 TYPED_ARRAYS(TYPED_ARRAY_CASE) |
813 #undef TYPED_ARRAY_CASE | 814 #undef TYPED_ARRAY_CASE |
814 UNREACHABLE(); | 815 UNREACHABLE(); |
815 break; | 816 break; |
816 case DICTIONARY_ELEMENTS: | 817 case DICTIONARY_ELEMENTS: |
817 ElementHandlerCompiler::GenerateStoreSlow(masm); | 818 ElementHandlerCompiler::GenerateStoreSlow(masm); |
818 break; | 819 break; |
819 case FAST_SLOPPY_ARGUMENTS_ELEMENTS: | 820 case FAST_SLOPPY_ARGUMENTS_ELEMENTS: |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1071 | 1072 |
1072 if (type->Is(Type::UntaggedPointer())) { | 1073 if (type->Is(Type::UntaggedPointer())) { |
1073 return Representation::External(); | 1074 return Representation::External(); |
1074 } | 1075 } |
1075 | 1076 |
1076 DCHECK(!type->Is(Type::Untagged())); | 1077 DCHECK(!type->Is(Type::Untagged())); |
1077 return Representation::Tagged(); | 1078 return Representation::Tagged(); |
1078 } | 1079 } |
1079 } // namespace internal | 1080 } // namespace internal |
1080 } // namespace v8 | 1081 } // namespace v8 |
OLD | NEW |