OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 <stdlib.h> | 5 #include <stdlib.h> |
6 #include <cmath> | 6 #include <cmath> |
7 #include <cstdarg> | 7 #include <cstdarg> |
8 | 8 |
9 #if V8_TARGET_ARCH_ARM64 | 9 #if V8_TARGET_ARCH_ARM64 |
10 | 10 |
(...skipping 1882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1893 void Simulator::LoadStoreWriteBack(unsigned addr_reg, | 1893 void Simulator::LoadStoreWriteBack(unsigned addr_reg, |
1894 int64_t offset, | 1894 int64_t offset, |
1895 AddrMode addrmode) { | 1895 AddrMode addrmode) { |
1896 if ((addrmode == PreIndex) || (addrmode == PostIndex)) { | 1896 if ((addrmode == PreIndex) || (addrmode == PostIndex)) { |
1897 DCHECK(offset != 0); | 1897 DCHECK(offset != 0); |
1898 uint64_t address = xreg(addr_reg, Reg31IsStackPointer); | 1898 uint64_t address = xreg(addr_reg, Reg31IsStackPointer); |
1899 set_reg(addr_reg, address + offset, Reg31IsStackPointer); | 1899 set_reg(addr_reg, address + offset, Reg31IsStackPointer); |
1900 } | 1900 } |
1901 } | 1901 } |
1902 | 1902 |
| 1903 void Simulator::VisitLoadStoreAcquireRelease(Instruction* instr) { |
| 1904 // TODO(binji) |
| 1905 } |
1903 | 1906 |
1904 void Simulator::CheckMemoryAccess(uintptr_t address, uintptr_t stack) { | 1907 void Simulator::CheckMemoryAccess(uintptr_t address, uintptr_t stack) { |
1905 if ((address >= stack_limit_) && (address < stack)) { | 1908 if ((address >= stack_limit_) && (address < stack)) { |
1906 fprintf(stream_, "ACCESS BELOW STACK POINTER:\n"); | 1909 fprintf(stream_, "ACCESS BELOW STACK POINTER:\n"); |
1907 fprintf(stream_, " sp is here: 0x%016" PRIx64 "\n", | 1910 fprintf(stream_, " sp is here: 0x%016" PRIx64 "\n", |
1908 static_cast<uint64_t>(stack)); | 1911 static_cast<uint64_t>(stack)); |
1909 fprintf(stream_, " access was here: 0x%016" PRIx64 "\n", | 1912 fprintf(stream_, " access was here: 0x%016" PRIx64 "\n", |
1910 static_cast<uint64_t>(address)); | 1913 static_cast<uint64_t>(address)); |
1911 fprintf(stream_, " stack limit is here: 0x%016" PRIx64 "\n", | 1914 fprintf(stream_, " stack limit is here: 0x%016" PRIx64 "\n", |
1912 static_cast<uint64_t>(stack_limit_)); | 1915 static_cast<uint64_t>(stack_limit_)); |
(...skipping 1955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3868 delete[] format; | 3871 delete[] format; |
3869 } | 3872 } |
3870 | 3873 |
3871 | 3874 |
3872 #endif // USE_SIMULATOR | 3875 #endif // USE_SIMULATOR |
3873 | 3876 |
3874 } // namespace internal | 3877 } // namespace internal |
3875 } // namespace v8 | 3878 } // namespace v8 |
3876 | 3879 |
3877 #endif // V8_TARGET_ARCH_ARM64 | 3880 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |