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

Unified Diff: runtime/vm/flow_graph_compiler_arm.cc

Issue 120723003: Refactors CPU feature detection. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 10 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
Index: runtime/vm/flow_graph_compiler_arm.cc
===================================================================
--- runtime/vm/flow_graph_compiler_arm.cc (revision 32467)
+++ runtime/vm/flow_graph_compiler_arm.cc (working copy)
@@ -9,6 +9,7 @@
#include "vm/ast_printer.h"
#include "vm/compiler.h"
+#include "vm/cpu.h"
#include "vm/dart_entry.h"
#include "vm/deopt_instructions.h"
#include "vm/il_printer.h"
@@ -44,7 +45,7 @@
bool FlowGraphCompiler::SupportsUnboxedFloat32x4() {
- return CPUFeatures::neon_supported() && FLAG_enable_simd_inline;
+ return TargetCPUFeatures::neon_supported() && FLAG_enable_simd_inline;
}
@@ -718,7 +719,9 @@
void FlowGraphCompiler::EmitInstructionEpilogue(Instruction* instr) {
- if (is_optimizing()) return;
+ if (is_optimizing()) {
+ return;
+ }
Definition* defn = instr->AsDefinition();
if ((defn != NULL) && defn->is_used()) {
__ Push(defn->locs()->out().reg());

Powered by Google App Engine
This is Rietveld 408576698