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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 return code->InstructionAt(block->last_instruction_index()); | 64 return code->InstructionAt(block->last_instruction_index()); |
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::kTaggedSigned: |
| 75 case MachineRepresentation::kTaggedPointer: |
74 case MachineRepresentation::kTagged: | 76 case MachineRepresentation::kTagged: |
75 return kPointerSize; | 77 return kPointerSize; |
76 case MachineRepresentation::kFloat32: | 78 case MachineRepresentation::kFloat32: |
77 // TODO(bbudge) Eliminate this when FP register aliasing works. | 79 // TODO(bbudge) Eliminate this when FP register aliasing works. |
78 #if V8_TARGET_ARCH_ARM | 80 #if V8_TARGET_ARCH_ARM |
79 return kDoubleSize; | 81 return kDoubleSize; |
80 #else | 82 #else |
81 return kPointerSize; | 83 return kPointerSize; |
82 #endif | 84 #endif |
83 case MachineRepresentation::kWord64: | 85 case MachineRepresentation::kWord64: |
(...skipping 3535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3619 } | 3621 } |
3620 } | 3622 } |
3621 } | 3623 } |
3622 } | 3624 } |
3623 } | 3625 } |
3624 | 3626 |
3625 | 3627 |
3626 } // namespace compiler | 3628 } // namespace compiler |
3627 } // namespace internal | 3629 } // namespace internal |
3628 } // namespace v8 | 3630 } // namespace v8 |
OLD | NEW |