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

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

Issue 285403004: Adds intrinsics for arm64. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/intrinsifier_x64.cc ('k') | tests/co19/co19-runtime.status » ('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 <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 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 } 604 }
605 } 605 }
606 606
607 607
608 // Get the register from the architecture state. 608 // Get the register from the architecture state.
609 int32_t Simulator::get_wregister(Register reg, R31Type r31t) const { 609 int32_t Simulator::get_wregister(Register reg, R31Type r31t) const {
610 ASSERT((reg >= 0) && (reg < kNumberOfCpuRegisters)); 610 ASSERT((reg >= 0) && (reg < kNumberOfCpuRegisters));
611 if ((reg == R31) && (r31t == R31IsZR)) { 611 if ((reg == R31) && (r31t == R31IsZR)) {
612 return 0; 612 return 0;
613 } else { 613 } else {
614 return registers_[reg]; 614 return static_cast<int32_t>(registers_[reg]);
615 } 615 }
616 } 616 }
617 617
618 618
619 int64_t Simulator::get_vregisterd(VRegister reg) const { 619 int64_t Simulator::get_vregisterd(VRegister reg) const {
620 ASSERT((reg >= 0) && (reg < kNumberOfVRegisters)); 620 ASSERT((reg >= 0) && (reg < kNumberOfVRegisters));
621 return vregisters_[reg].lo; 621 return vregisters_[reg].lo;
622 } 622 }
623 623
624 624
(...skipping 1848 matching lines...) Expand 10 before | Expand all | Expand 10 after
2473 set_register(kExceptionObjectReg, bit_cast<int64_t>(raw_exception)); 2473 set_register(kExceptionObjectReg, bit_cast<int64_t>(raw_exception));
2474 set_register(kStackTraceObjectReg, bit_cast<int64_t>(raw_stacktrace)); 2474 set_register(kStackTraceObjectReg, bit_cast<int64_t>(raw_stacktrace));
2475 buf->Longjmp(); 2475 buf->Longjmp();
2476 } 2476 }
2477 2477
2478 } // namespace dart 2478 } // namespace dart
2479 2479
2480 #endif // !defined(HOST_ARCH_ARM64) 2480 #endif // !defined(HOST_ARCH_ARM64)
2481 2481
2482 #endif // defined TARGET_ARCH_ARM64 2482 #endif // defined TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « runtime/vm/intrinsifier_x64.cc ('k') | tests/co19/co19-runtime.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698