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

Side by Side Diff: runtime/vm/flow_graph_compiler_arm.cc

Issue 290993003: VM: Remove unnecessary field use_kind from IL instructions. (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 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 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 // Restore instantiator (R2) and its type arguments (R1). 713 // Restore instantiator (R2) and its type arguments (R1).
714 __ PopList((1 << R1) | (1 << R2)); 714 __ PopList((1 << R1) | (1 << R2));
715 } 715 }
716 716
717 717
718 void FlowGraphCompiler::EmitInstructionEpilogue(Instruction* instr) { 718 void FlowGraphCompiler::EmitInstructionEpilogue(Instruction* instr) {
719 if (is_optimizing()) { 719 if (is_optimizing()) {
720 return; 720 return;
721 } 721 }
722 Definition* defn = instr->AsDefinition(); 722 Definition* defn = instr->AsDefinition();
723 if ((defn != NULL) && defn->is_used()) { 723 if ((defn != NULL) && defn->HasTemp()) {
724 __ Push(defn->locs()->out(0).reg()); 724 __ Push(defn->locs()->out(0).reg());
725 } 725 }
726 } 726 }
727 727
728 728
729 // Input parameters: 729 // Input parameters:
730 // R4: arguments descriptor array. 730 // R4: arguments descriptor array.
731 void FlowGraphCompiler::CopyParameters() { 731 void FlowGraphCompiler::CopyParameters() {
732 __ Comment("Copy parameters"); 732 __ Comment("Copy parameters");
733 const Function& function = parsed_function().function(); 733 const Function& function = parsed_function().function();
(...skipping 1083 matching lines...) Expand 10 before | Expand all | Expand 10 after
1817 DRegister dreg = EvenDRegisterOf(reg); 1817 DRegister dreg = EvenDRegisterOf(reg);
1818 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); 1818 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex));
1819 } 1819 }
1820 1820
1821 1821
1822 #undef __ 1822 #undef __
1823 1823
1824 } // namespace dart 1824 } // namespace dart
1825 1825
1826 #endif // defined TARGET_ARCH_ARM 1826 #endif // defined TARGET_ARCH_ARM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698