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

Side by Side 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: Fixed cpu service field names. Created 6 years, 11 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
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM.
6 #if defined(TARGET_ARCH_ARM) 6 #if defined(TARGET_ARCH_ARM)
7 7
8 #include "vm/flow_graph_compiler.h" 8 #include "vm/flow_graph_compiler.h"
9 9
10 #include "vm/ast_printer.h" 10 #include "vm/ast_printer.h"
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 __ Drop(6); 712 __ Drop(6);
713 __ Pop(R0); 713 __ Pop(R0);
714 714
715 __ Bind(&is_assignable); 715 __ Bind(&is_assignable);
716 // Restore instantiator (R2) and its type arguments (R1). 716 // Restore instantiator (R2) and its type arguments (R1).
717 __ PopList((1 << R1) | (1 << R2)); 717 __ PopList((1 << R1) | (1 << R2));
718 } 718 }
719 719
720 720
721 void FlowGraphCompiler::EmitInstructionEpilogue(Instruction* instr) { 721 void FlowGraphCompiler::EmitInstructionEpilogue(Instruction* instr) {
722 if (is_optimizing()) return; 722 if (is_optimizing()) {
723 return;
724 }
723 Definition* defn = instr->AsDefinition(); 725 Definition* defn = instr->AsDefinition();
724 if ((defn != NULL) && defn->is_used()) { 726 if ((defn != NULL) && defn->is_used()) {
725 __ Push(defn->locs()->out().reg()); 727 __ Push(defn->locs()->out().reg());
726 } 728 }
727 } 729 }
728 730
729 731
730 // Input parameters: 732 // Input parameters:
731 // R4: arguments descriptor array. 733 // R4: arguments descriptor array.
732 void FlowGraphCompiler::CopyParameters() { 734 void FlowGraphCompiler::CopyParameters() {
(...skipping 1083 matching lines...) Expand 10 before | Expand all | Expand 10 after
1816 DRegister dreg = EvenDRegisterOf(reg); 1818 DRegister dreg = EvenDRegisterOf(reg);
1817 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); 1819 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex));
1818 } 1820 }
1819 1821
1820 1822
1821 #undef __ 1823 #undef __
1822 1824
1823 } // namespace dart 1825 } // namespace dart
1824 1826
1825 #endif // defined TARGET_ARCH_ARM 1827 #endif // defined TARGET_ARCH_ARM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698