| 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: \ | |
| 811 case TYPE##_ELEMENTS: | 810 case TYPE##_ELEMENTS: |
| 812 | 811 |
| 813 TYPED_ARRAYS(TYPED_ARRAY_CASE) | 812 TYPED_ARRAYS(TYPED_ARRAY_CASE) |
| 814 #undef TYPED_ARRAY_CASE | 813 #undef TYPED_ARRAY_CASE |
| 815 UNREACHABLE(); | 814 UNREACHABLE(); |
| 816 break; | 815 break; |
| 817 case DICTIONARY_ELEMENTS: | 816 case DICTIONARY_ELEMENTS: |
| 818 ElementHandlerCompiler::GenerateStoreSlow(masm); | 817 ElementHandlerCompiler::GenerateStoreSlow(masm); |
| 819 break; | 818 break; |
| 820 case FAST_SLOPPY_ARGUMENTS_ELEMENTS: | 819 case FAST_SLOPPY_ARGUMENTS_ELEMENTS: |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1072 | 1071 |
| 1073 if (type->Is(Type::UntaggedPointer())) { | 1072 if (type->Is(Type::UntaggedPointer())) { |
| 1074 return Representation::External(); | 1073 return Representation::External(); |
| 1075 } | 1074 } |
| 1076 | 1075 |
| 1077 DCHECK(!type->Is(Type::Untagged())); | 1076 DCHECK(!type->Is(Type::Untagged())); |
| 1078 return Representation::Tagged(); | 1077 return Representation::Tagged(); |
| 1079 } | 1078 } |
| 1080 } // namespace internal | 1079 } // namespace internal |
| 1081 } // namespace v8 | 1080 } // namespace v8 |
| OLD | NEW |