OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/base/adapters.h" | 5 #include "src/base/adapters.h" |
6 #include "src/compiler/linkage.h" | 6 #include "src/compiler/linkage.h" |
7 #include "src/compiler/register-allocator.h" | 7 #include "src/compiler/register-allocator.h" |
8 #include "src/string-stream.h" | 8 #include "src/string-stream.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 case MachineRepresentation::kTaggedSigned: | 79 case MachineRepresentation::kTaggedSigned: |
80 case MachineRepresentation::kTaggedPointer: | 80 case MachineRepresentation::kTaggedPointer: |
81 case MachineRepresentation::kTagged: | 81 case MachineRepresentation::kTagged: |
82 case MachineRepresentation::kFloat32: | 82 case MachineRepresentation::kFloat32: |
83 return kPointerSize; | 83 return kPointerSize; |
84 case MachineRepresentation::kWord64: | 84 case MachineRepresentation::kWord64: |
85 case MachineRepresentation::kFloat64: | 85 case MachineRepresentation::kFloat64: |
86 return kDoubleSize; | 86 return kDoubleSize; |
87 case MachineRepresentation::kSimd128: | 87 case MachineRepresentation::kSimd128: |
88 return kSimd128Size; | 88 return kSimd128Size; |
| 89 case MachineRepresentation::kSimd1x4: |
| 90 case MachineRepresentation::kSimd1x8: |
| 91 case MachineRepresentation::kSimd1x16: |
| 92 return kSimdMaskRegisters ? kPointerSize : kSimd128Size; |
89 case MachineRepresentation::kNone: | 93 case MachineRepresentation::kNone: |
90 break; | 94 break; |
91 } | 95 } |
92 UNREACHABLE(); | 96 UNREACHABLE(); |
93 return 0; | 97 return 0; |
94 } | 98 } |
95 | 99 |
96 } // namespace | 100 } // namespace |
97 | 101 |
98 class LiveRangeBound { | 102 class LiveRangeBound { |
(...skipping 3907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4006 } | 4010 } |
4007 } | 4011 } |
4008 } | 4012 } |
4009 } | 4013 } |
4010 } | 4014 } |
4011 | 4015 |
4012 | 4016 |
4013 } // namespace compiler | 4017 } // namespace compiler |
4014 } // namespace internal | 4018 } // namespace internal |
4015 } // namespace v8 | 4019 } // namespace v8 |
OLD | NEW |