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

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

Issue 243433005: Fix SIMARM64 build on Mac. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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) 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 <math.h> // for isnan. 5 #include <math.h> // for isnan.
6 #include <setjmp.h> 6 #include <setjmp.h>
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include "vm/globals.h" 9 #include "vm/globals.h"
10 #if defined(TARGET_ARCH_ARM64) 10 #if defined(TARGET_ARCH_ARM64)
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 if (Simulator::IsIllegalAddress(start)) { 240 if (Simulator::IsIllegalAddress(start)) {
241 // If start isn't a valid address, warn and use PC instead 241 // If start isn't a valid address, warn and use PC instead
242 OS::Print("First argument yields invalid address: 0x%"Px64"\n", 242 OS::Print("First argument yields invalid address: 0x%"Px64"\n",
243 start); 243 start);
244 OS::Print("Using PC instead"); 244 OS::Print("Using PC instead");
245 start = sim_->get_pc(); 245 start = sim_->get_pc();
246 } 246 }
247 end = start + (10 * Instr::kInstrSize); 247 end = start + (10 * Instr::kInstrSize);
248 } 248 }
249 } else { 249 } else {
250 intptr_t length; 250 int64_t length;
251 if (GetValue(arg1, &start) && GetValue(arg2, &length)) { 251 if (GetValue(arg1, &start) && GetValue(arg2, &length)) {
252 if (Simulator::IsIllegalAddress(start)) { 252 if (Simulator::IsIllegalAddress(start)) {
253 // If start isn't a valid address, warn and use PC instead 253 // If start isn't a valid address, warn and use PC instead
254 OS::Print("First argument yields invalid address: 0x%"Px64"\n", 254 OS::Print("First argument yields invalid address: 0x%"Px64"\n",
255 start); 255 start);
256 OS::Print("Using PC instead\n"); 256 OS::Print("Using PC instead\n");
257 start = sim_->get_pc(); 257 start = sim_->get_pc();
258 } 258 }
259 end = start + (length * Instr::kInstrSize); 259 end = start + (length * Instr::kInstrSize);
260 } 260 }
(...skipping 1496 matching lines...) Expand 10 before | Expand all | Expand 10 after
1757 int64_t return_value; 1757 int64_t return_value;
1758 return_value = get_register(R0); 1758 return_value = get_register(R0);
1759 return return_value; 1759 return return_value;
1760 } 1760 }
1761 1761
1762 } // namespace dart 1762 } // namespace dart
1763 1763
1764 #endif // !defined(HOST_ARCH_ARM64) 1764 #endif // !defined(HOST_ARCH_ARM64)
1765 1765
1766 #endif // defined TARGET_ARCH_ARM64 1766 #endif // defined TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698