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

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

Issue 2018723002: Make Android gyp flags more like Linux gyp flags. Fix cases of -Wconversion-null. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | runtime/vm/simulator_mips.cc » ('j') | 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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_ARM64) 9 #if defined(TARGET_ARCH_ARM64)
10 10
(...skipping 1200 matching lines...) Expand 10 before | Expand all | Expand 10 after
1211 exclusive_access_state_[i].addr = 0; 1211 exclusive_access_state_[i].addr = 0;
1212 } 1212 }
1213 } 1213 }
1214 return result; 1214 return result;
1215 } 1215 }
1216 1216
1217 1217
1218 void Simulator::ClearExclusive() { 1218 void Simulator::ClearExclusive() {
1219 MutexLocker ml(exclusive_access_lock_); 1219 MutexLocker ml(exclusive_access_lock_);
1220 // Remove the reservation for this thread. 1220 // Remove the reservation for this thread.
1221 SetExclusiveAccess(NULL); 1221 SetExclusiveAccess(0);
1222 } 1222 }
1223 1223
1224 1224
1225 intptr_t Simulator::ReadExclusiveX(uword addr, Instr* instr) { 1225 intptr_t Simulator::ReadExclusiveX(uword addr, Instr* instr) {
1226 MutexLocker ml(exclusive_access_lock_); 1226 MutexLocker ml(exclusive_access_lock_);
1227 SetExclusiveAccess(addr); 1227 SetExclusiveAccess(addr);
1228 return ReadX(addr, instr); 1228 return ReadX(addr, instr);
1229 } 1229 }
1230 1230
1231 1231
(...skipping 2373 matching lines...) Expand 10 before | Expand all | Expand 10 after
3605 set_register(NULL, kExceptionObjectReg, bit_cast<int64_t>(raw_exception)); 3605 set_register(NULL, kExceptionObjectReg, bit_cast<int64_t>(raw_exception));
3606 set_register(NULL, kStackTraceObjectReg, bit_cast<int64_t>(raw_stacktrace)); 3606 set_register(NULL, kStackTraceObjectReg, bit_cast<int64_t>(raw_stacktrace));
3607 buf->Longjmp(); 3607 buf->Longjmp();
3608 } 3608 }
3609 3609
3610 } // namespace dart 3610 } // namespace dart
3611 3611
3612 #endif // !defined(USING_SIMULATOR) 3612 #endif // !defined(USING_SIMULATOR)
3613 3613
3614 #endif // defined TARGET_ARCH_ARM64 3614 #endif // defined TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/simulator_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698