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

Unified Diff: runtime/vm/cpuinfo.h

Issue 311903004: Fixes to run "Hello, world!" on arm64 hardware. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/constants_arm64.h ('k') | runtime/vm/cpuinfo_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/cpuinfo.h
===================================================================
--- runtime/vm/cpuinfo.h (revision 36919)
+++ runtime/vm/cpuinfo.h (working copy)
@@ -58,8 +58,11 @@
// Returns the field describing the CPU model. Caller is responsible for
// freeing the result.
static const char* GetCpuModel() {
- ASSERT(HasField(FieldName(kCpuInfoHardware)));
- return ExtractField(kCpuInfoHardware);
+ if (HasField(FieldName(kCpuInfoHardware))) {
+ return ExtractField(kCpuInfoHardware);
+ } else {
+ return "";
+ }
}
private:
« no previous file with comments | « runtime/vm/constants_arm64.h ('k') | runtime/vm/cpuinfo_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698