| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 } | 65 } |
| 66 | 66 |
| 67 // TODO(dcarney): fix frame to allow frame accesses to half size location. | 67 // TODO(dcarney): fix frame to allow frame accesses to half size location. |
| 68 int GetByteWidth(MachineRepresentation rep) { | 68 int GetByteWidth(MachineRepresentation rep) { |
| 69 switch (rep) { | 69 switch (rep) { |
| 70 case MachineRepresentation::kBit: | 70 case MachineRepresentation::kBit: |
| 71 case MachineRepresentation::kWord8: | 71 case MachineRepresentation::kWord8: |
| 72 case MachineRepresentation::kWord16: | 72 case MachineRepresentation::kWord16: |
| 73 case MachineRepresentation::kWord32: | 73 case MachineRepresentation::kWord32: |
| 74 case MachineRepresentation::kTagged: | 74 case MachineRepresentation::kTagged: |
| 75 case MachineRepresentation::kFloat32: |
| 75 return kPointerSize; | 76 return kPointerSize; |
| 76 case MachineRepresentation::kFloat32: | |
| 77 case MachineRepresentation::kWord64: | 77 case MachineRepresentation::kWord64: |
| 78 case MachineRepresentation::kFloat64: | 78 case MachineRepresentation::kFloat64: |
| 79 return 8; | 79 return 8; |
| 80 case MachineRepresentation::kSimd128: | 80 case MachineRepresentation::kSimd128: |
| 81 return 16; | 81 return 16; |
| 82 case MachineRepresentation::kNone: | 82 case MachineRepresentation::kNone: |
| 83 break; | 83 break; |
| 84 } | 84 } |
| 85 UNREACHABLE(); | 85 UNREACHABLE(); |
| 86 return 0; | 86 return 0; |
| (...skipping 3693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3780 } | 3780 } |
| 3781 } | 3781 } |
| 3782 } | 3782 } |
| 3783 } | 3783 } |
| 3784 } | 3784 } |
| 3785 | 3785 |
| 3786 | 3786 |
| 3787 } // namespace compiler | 3787 } // namespace compiler |
| 3788 } // namespace internal | 3788 } // namespace internal |
| 3789 } // namespace v8 | 3789 } // namespace v8 |
| OLD | NEW |