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

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

Issue 11791051: Support immediate and memory operands for PushArgumentInstr in optimized code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: really handle constant operands Created 7 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
« no previous file with comments | « runtime/vm/assembler_x64.h ('k') | runtime/vm/flow_graph_compiler.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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" 5 #include "vm/globals.h"
6 #if defined(TARGET_ARCH_X64) 6 #if defined(TARGET_ARCH_X64)
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/heap.h" 9 #include "vm/heap.h"
10 #include "vm/memory_region.h" 10 #include "vm/memory_region.h"
(...skipping 1589 matching lines...) Expand 10 before | Expand all | Expand 10 after
1600 } 1600 }
1601 1601
1602 1602
1603 void Assembler::MoveRegister(Register to, Register from) { 1603 void Assembler::MoveRegister(Register to, Register from) {
1604 if (to != from) { 1604 if (to != from) {
1605 movq(to, from); 1605 movq(to, from);
1606 } 1606 }
1607 } 1607 }
1608 1608
1609 1609
1610 void Assembler::PushRegister(Register r) {
1611 pushq(r);
1612 }
1613
1614
1615 void Assembler::PopRegister(Register r) { 1610 void Assembler::PopRegister(Register r) {
1616 popq(r); 1611 popq(r);
1617 } 1612 }
1618 1613
1619 1614
1620 void Assembler::AddImmediate(Register reg, const Immediate& imm) { 1615 void Assembler::AddImmediate(Register reg, const Immediate& imm) {
1621 int64_t value = imm.value(); 1616 int64_t value = imm.value();
1622 if (value > 0) { 1617 if (value > 0) {
1623 if (value == 1) { 1618 if (value == 1) {
1624 incq(reg); 1619 incq(reg);
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
2110 2105
2111 const char* Assembler::XmmRegisterName(XmmRegister reg) { 2106 const char* Assembler::XmmRegisterName(XmmRegister reg) {
2112 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); 2107 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters));
2113 return xmm_reg_names[reg]; 2108 return xmm_reg_names[reg];
2114 } 2109 }
2115 2110
2116 2111
2117 } // namespace dart 2112 } // namespace dart
2118 2113
2119 #endif // defined TARGET_ARCH_X64 2114 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/assembler_x64.h ('k') | runtime/vm/flow_graph_compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698