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

Unified Diff: src/cpu.cc

Issue 322423003: ARM: add AArch32 support and new vcvt instructions (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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 | « src/base/build_config.h ('k') | src/flag-definitions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/cpu.cc
diff --git a/src/cpu.cc b/src/cpu.cc
index 2eb00c4ac43fe24ac8815c3ec2ee8dcabf22fdf1..802f74046afb1193b3df56c963adce2badf73949 100644
--- a/src/cpu.cc
+++ b/src/cpu.cc
@@ -352,10 +352,14 @@ CPU::CPU() : stepping_(0),
// same file.
char* architecture = cpu_info.ExtractField("CPU architecture");
if (architecture != NULL) {
- char* end;
- architecture_ = strtol(architecture, &end, 10);
- if (end == architecture) {
- architecture_ = 0;
+ if (strcmp(architecture, "AArch64") == 0) {
+ architecture_ = 8;
+ } else {
+ char* end;
+ architecture_ = strtol(architecture, &end, 10);
+ if (end == architecture) {
+ architecture_ = 0;
+ }
}
delete[] architecture;
« no previous file with comments | « src/base/build_config.h ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698