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 #ifndef V8_ARM64_DECODER_ARM64_INL_H_ | 5 #ifndef V8_ARM64_DECODER_ARM64_INL_H_ |
6 #define V8_ARM64_DECODER_ARM64_INL_H_ | 6 #define V8_ARM64_DECODER_ARM64_INL_H_ |
7 | 7 |
8 #include "src/arm64/decoder-arm64.h" | 8 #include "src/arm64/decoder-arm64.h" |
9 #include "src/globals.h" | 9 #include "src/globals.h" |
10 #include "src/utils.h" | 10 #include "src/utils.h" |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 void Decoder<V>::DecodeLoadStore(Instruction* instr) { | 210 void Decoder<V>::DecodeLoadStore(Instruction* instr) { |
211 DCHECK((instr->Bits(27, 24) == 0x8) || | 211 DCHECK((instr->Bits(27, 24) == 0x8) || |
212 (instr->Bits(27, 24) == 0x9) || | 212 (instr->Bits(27, 24) == 0x9) || |
213 (instr->Bits(27, 24) == 0xC) || | 213 (instr->Bits(27, 24) == 0xC) || |
214 (instr->Bits(27, 24) == 0xD) ); | 214 (instr->Bits(27, 24) == 0xD) ); |
215 | 215 |
216 if (instr->Bit(24) == 0) { | 216 if (instr->Bit(24) == 0) { |
217 if (instr->Bit(28) == 0) { | 217 if (instr->Bit(28) == 0) { |
218 if (instr->Bit(29) == 0) { | 218 if (instr->Bit(29) == 0) { |
219 if (instr->Bit(26) == 0) { | 219 if (instr->Bit(26) == 0) { |
220 // TODO(all): VisitLoadStoreExclusive. | 220 if (instr->Bits(23, 22) == 0) { |
221 V::VisitUnimplemented(instr); | 221 V::VisitStoreReleaseExclusive(instr); |
| 222 } else { |
| 223 V::VisitLoadStoreAcquireRelease(instr); |
| 224 } |
222 } else { | 225 } else { |
223 DecodeAdvSIMDLoadStore(instr); | 226 DecodeAdvSIMDLoadStore(instr); |
224 } | 227 } |
225 } else { | 228 } else { |
226 if ((instr->Bits(31, 30) == 0x3) || | 229 if ((instr->Bits(31, 30) == 0x3) || |
227 (instr->Mask(0xC4400000) == 0x40000000)) { | 230 (instr->Mask(0xC4400000) == 0x40000000)) { |
228 V::VisitUnallocated(instr); | 231 V::VisitUnallocated(instr); |
229 } else { | 232 } else { |
230 if (instr->Bit(23) == 0) { | 233 if (instr->Bit(23) == 0) { |
231 if (instr->Mask(0xC4400000) == 0xC0400000) { | 234 if (instr->Mask(0xC4400000) == 0xC0400000) { |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
641 // TODO(all): Implement Advanced SIMD data processing instruction decode. | 644 // TODO(all): Implement Advanced SIMD data processing instruction decode. |
642 DCHECK(instr->Bits(27, 25) == 0x7); | 645 DCHECK(instr->Bits(27, 25) == 0x7); |
643 V::VisitUnimplemented(instr); | 646 V::VisitUnimplemented(instr); |
644 } | 647 } |
645 | 648 |
646 | 649 |
647 } // namespace internal | 650 } // namespace internal |
648 } // namespace v8 | 651 } // namespace v8 |
649 | 652 |
650 #endif // V8_ARM64_DECODER_ARM64_INL_H_ | 653 #endif // V8_ARM64_DECODER_ARM64_INL_H_ |
OLD | NEW |