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

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

Issue 207063002: Refactor to support multiple outputs in location summary (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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
« no previous file with comments | « runtime/vm/flow_graph_compiler_mips.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_X64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64.
6 #if defined(TARGET_ARCH_X64) 6 #if defined(TARGET_ARCH_X64)
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 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 __ popq(RCX); // Remove pushed instantiator. 708 __ popq(RCX); // Remove pushed instantiator.
709 } 709 }
710 710
711 711
712 void FlowGraphCompiler::EmitInstructionEpilogue(Instruction* instr) { 712 void FlowGraphCompiler::EmitInstructionEpilogue(Instruction* instr) {
713 if (is_optimizing()) { 713 if (is_optimizing()) {
714 return; 714 return;
715 } 715 }
716 Definition* defn = instr->AsDefinition(); 716 Definition* defn = instr->AsDefinition();
717 if ((defn != NULL) && defn->is_used()) { 717 if ((defn != NULL) && defn->is_used()) {
718 Location value = defn->locs()->out(); 718 Location value = defn->locs()->out(0);
719 if (value.IsRegister()) { 719 if (value.IsRegister()) {
720 __ pushq(value.reg()); 720 __ pushq(value.reg());
721 } else { 721 } else {
722 ASSERT(value.IsStackSlot()); 722 ASSERT(value.IsStackSlot());
723 __ pushq(value.ToStackSlotAddress()); 723 __ pushq(value.ToStackSlotAddress());
724 } 724 }
725 } 725 }
726 } 726 }
727 727
728 728
(...skipping 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after
1838 __ movups(reg, Address(RSP, 0)); 1838 __ movups(reg, Address(RSP, 0));
1839 __ AddImmediate(RSP, Immediate(kFpuRegisterSize), PP); 1839 __ AddImmediate(RSP, Immediate(kFpuRegisterSize), PP);
1840 } 1840 }
1841 1841
1842 1842
1843 #undef __ 1843 #undef __
1844 1844
1845 } // namespace dart 1845 } // namespace dart
1846 1846
1847 #endif // defined TARGET_ARCH_X64 1847 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_mips.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698