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

Unified Diff: runtime/vm/os_linux.cc

Issue 221133002: Begins work on ARM64, first assembler test. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: adds files Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/object_test.cc ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/os_linux.cc
===================================================================
--- runtime/vm/os_linux.cc (revision 34648)
+++ runtime/vm/os_linux.cc (working copy)
@@ -59,6 +59,8 @@
const char arch[] = "x64";
#elif defined(TARGET_ARCH_ARM)
const char arch[] = "arm";
+#elif defined(TARGET_ARCH_ARM64)
+ const char arch[] = "arm64";
#elif defined(TARGET_ARCH_MIPS)
const char arch[] = "mips";
#else
@@ -355,6 +357,8 @@
static const uint32_t kElfMachIA32 = 3;
static const uint32_t kElfMachX64 = 62;
static const uint32_t kElfMachARM = 40;
+ // TODO(zra): Find the right ARM64 constant.
+ static const uint32_t kElfMachARM64 = 40;
static const uint32_t kElfMachMIPS = 10;
static const int kInvalidClockId = -1;
@@ -405,6 +409,8 @@
return kElfMachX64;
#elif defined(TARGET_ARCH_ARM)
return kElfMachARM;
+#elif defined(TARGET_ARCH_ARM64)
+ return kElfMachARM64;
#elif defined(TARGET_ARCH_MIPS)
return kElfMachMIPS;
#else
@@ -570,7 +576,9 @@
// TODO(5411554): May need to hoist these architecture dependent code
// into a architecture specific file e.g: os_ia32_linux.cc
word OS::ActivationFrameAlignment() {
-#if defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64)
+#if defined(TARGET_ARCH_IA32) || \
+ defined(TARGET_ARCH_X64) || \
+ defined(TARGET_ARCH_ARM64)
const int kMinimumAlignment = 16;
#elif defined(TARGET_ARCH_ARM) || defined(TARGET_ARCH_MIPS)
const int kMinimumAlignment = 8;
@@ -588,7 +596,9 @@
word OS::PreferredCodeAlignment() {
-#if defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64)
+#if defined(TARGET_ARCH_IA32) || \
+ defined(TARGET_ARCH_X64) || \
+ defined(TARGET_ARCH_ARM64)
const int kMinimumAlignment = 32;
#elif defined(TARGET_ARCH_ARM) || defined(TARGET_ARCH_MIPS)
const int kMinimumAlignment = 16;
« no previous file with comments | « runtime/vm/object_test.cc ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698