| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include <setjmp.h> // NOLINT | 5 #include <setjmp.h> // NOLINT |
| 6 #include <stdlib.h> | 6 #include <stdlib.h> |
| 7 | 7 |
| 8 #include "vm/globals.h" | 8 #include "vm/globals.h" |
| 9 #if defined(TARGET_ARCH_ARM) | 9 #if defined(TARGET_ARCH_ARM) |
| 10 | 10 |
| (...skipping 1119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1130 exclusive_access_state_[i].addr = 0; | 1130 exclusive_access_state_[i].addr = 0; |
| 1131 } | 1131 } |
| 1132 } | 1132 } |
| 1133 return result; | 1133 return result; |
| 1134 } | 1134 } |
| 1135 | 1135 |
| 1136 | 1136 |
| 1137 void Simulator::ClearExclusive() { | 1137 void Simulator::ClearExclusive() { |
| 1138 MutexLocker ml(exclusive_access_lock_); | 1138 MutexLocker ml(exclusive_access_lock_); |
| 1139 // Remove the reservation for this thread. | 1139 // Remove the reservation for this thread. |
| 1140 SetExclusiveAccess(NULL); | 1140 SetExclusiveAccess(0); |
| 1141 } | 1141 } |
| 1142 | 1142 |
| 1143 | 1143 |
| 1144 intptr_t Simulator::ReadExclusiveW(uword addr, Instr* instr) { | 1144 intptr_t Simulator::ReadExclusiveW(uword addr, Instr* instr) { |
| 1145 MutexLocker ml(exclusive_access_lock_); | 1145 MutexLocker ml(exclusive_access_lock_); |
| 1146 SetExclusiveAccess(addr); | 1146 SetExclusiveAccess(addr); |
| 1147 return ReadW(addr, instr); | 1147 return ReadW(addr, instr); |
| 1148 } | 1148 } |
| 1149 | 1149 |
| 1150 | 1150 |
| (...skipping 2757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3908 set_register(kExceptionObjectReg, bit_cast<int32_t>(raw_exception)); | 3908 set_register(kExceptionObjectReg, bit_cast<int32_t>(raw_exception)); |
| 3909 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace)); | 3909 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace)); |
| 3910 buf->Longjmp(); | 3910 buf->Longjmp(); |
| 3911 } | 3911 } |
| 3912 | 3912 |
| 3913 } // namespace dart | 3913 } // namespace dart |
| 3914 | 3914 |
| 3915 #endif // defined(USING_SIMULATOR) | 3915 #endif // defined(USING_SIMULATOR) |
| 3916 | 3916 |
| 3917 #endif // defined TARGET_ARCH_ARM | 3917 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |