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

Side by Side Diff: runtime/vm/flow_graph_compiler_arm64.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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_ARM64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64.
6 #if defined(TARGET_ARCH_ARM64) 6 #if defined(TARGET_ARCH_ARM64)
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 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 __ Pop(R1); 710 __ Pop(R1);
711 __ Pop(R2); 711 __ Pop(R2);
712 } 712 }
713 713
714 714
715 void FlowGraphCompiler::EmitInstructionEpilogue(Instruction* instr) { 715 void FlowGraphCompiler::EmitInstructionEpilogue(Instruction* instr) {
716 if (is_optimizing()) { 716 if (is_optimizing()) {
717 return; 717 return;
718 } 718 }
719 Definition* defn = instr->AsDefinition(); 719 Definition* defn = instr->AsDefinition();
720 if ((defn != NULL) && defn->is_used()) { 720 if ((defn != NULL) && defn->HasTemp()) {
721 __ Push(defn->locs()->out(0).reg()); 721 __ Push(defn->locs()->out(0).reg());
722 } 722 }
723 } 723 }
724 724
725 725
726 // Input parameters: 726 // Input parameters:
727 // R4: arguments descriptor array. 727 // R4: arguments descriptor array.
728 void FlowGraphCompiler::CopyParameters() { 728 void FlowGraphCompiler::CopyParameters() {
729 __ Comment("Copy parameters"); 729 __ Comment("Copy parameters");
730 const Function& function = parsed_function().function(); 730 const Function& function = parsed_function().function();
(...skipping 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after
1777 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { 1777 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) {
1778 UNIMPLEMENTED(); 1778 UNIMPLEMENTED();
1779 } 1779 }
1780 1780
1781 1781
1782 #undef __ 1782 #undef __
1783 1783
1784 } // namespace dart 1784 } // namespace dart
1785 1785
1786 #endif // defined TARGET_ARCH_ARM64 1786 #endif // defined TARGET_ARCH_ARM64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698