Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(466)

Side by Side Diff: runtime/vm/simulator_arm.cc

Issue 1809743002: Fix Android build warnings (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/profiler_test.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/profiler_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698