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

Side by Side Diff: runtime/vm/assembler_ia32.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_ia32.h ('k') | runtime/vm/assembler_x64.h » ('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_IA32) 6 #if defined(TARGET_ARCH_IA32)
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/code_generator.h" 9 #include "vm/code_generator.h"
10 #include "vm/heap.h" 10 #include "vm/heap.h"
(...skipping 1497 matching lines...) Expand 10 before | Expand all | Expand 10 after
1508 } 1508 }
1509 1509
1510 1510
1511 void Assembler::MoveRegister(Register to, Register from) { 1511 void Assembler::MoveRegister(Register to, Register from) {
1512 if (to != from) { 1512 if (to != from) {
1513 movl(to, from); 1513 movl(to, from);
1514 } 1514 }
1515 } 1515 }
1516 1516
1517 1517
1518 void Assembler::PushRegister(Register r) {
1519 pushl(r);
1520 }
1521
1522
1523 void Assembler::PopRegister(Register r) { 1518 void Assembler::PopRegister(Register r) {
1524 popl(r); 1519 popl(r);
1525 } 1520 }
1526 1521
1527 1522
1528 void Assembler::AddImmediate(Register reg, const Immediate& imm) { 1523 void Assembler::AddImmediate(Register reg, const Immediate& imm) {
1529 int value = imm.value(); 1524 int value = imm.value();
1530 if (value > 0) { 1525 if (value > 0) {
1531 if (value == 1) { 1526 if (value == 1) {
1532 incl(reg); 1527 incl(reg);
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
2057 2052
2058 const char* Assembler::XmmRegisterName(XmmRegister reg) { 2053 const char* Assembler::XmmRegisterName(XmmRegister reg) {
2059 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); 2054 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters));
2060 return xmm_reg_names[reg]; 2055 return xmm_reg_names[reg];
2061 } 2056 }
2062 2057
2063 2058
2064 } // namespace dart 2059 } // namespace dart
2065 2060
2066 #endif // defined TARGET_ARCH_IA32 2061 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/assembler_ia32.h ('k') | runtime/vm/assembler_x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698