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

Side by Side Diff: src/compiler/x64/code-generator-x64.cc

Issue 615483003: [turbofan] x64 lea multiplication matching (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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 | « src/compiler/node-matchers.cc ('k') | src/compiler/x64/instruction-codes-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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/compiler/code-generator-impl.h" 7 #include "src/compiler/code-generator-impl.h"
8 #include "src/compiler/gap-resolver.h" 8 #include "src/compiler/gap-resolver.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/node-properties-inl.h" 10 #include "src/compiler/node-properties-inl.h"
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 break; 512 break;
513 case kX64Movsd: 513 case kX64Movsd:
514 if (instr->HasOutput()) { 514 if (instr->HasOutput()) {
515 __ movsd(i.OutputDoubleRegister(), i.MemoryOperand()); 515 __ movsd(i.OutputDoubleRegister(), i.MemoryOperand());
516 } else { 516 } else {
517 int index = 0; 517 int index = 0;
518 Operand operand = i.MemoryOperand(&index); 518 Operand operand = i.MemoryOperand(&index);
519 __ movsd(operand, i.InputDoubleRegister(index)); 519 __ movsd(operand, i.InputDoubleRegister(index));
520 } 520 }
521 break; 521 break;
522 case kX64Lea32:
523 __ leal(i.OutputRegister(), i.MemoryOperand());
524 break;
525 case kX64Lea:
526 __ leaq(i.OutputRegister(), i.MemoryOperand());
527 break;
522 case kX64Push: 528 case kX64Push:
523 if (HasImmediateInput(instr, 0)) { 529 if (HasImmediateInput(instr, 0)) {
524 __ pushq(i.InputImmediate(0)); 530 __ pushq(i.InputImmediate(0));
525 } else { 531 } else {
526 if (instr->InputAt(0)->IsRegister()) { 532 if (instr->InputAt(0)->IsRegister()) {
527 __ pushq(i.InputRegister(0)); 533 __ pushq(i.InputRegister(0));
528 } else { 534 } else {
529 __ pushq(i.InputOperand(0)); 535 __ pushq(i.InputOperand(0));
530 } 536 }
531 } 537 }
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
969 } 975 }
970 } 976 }
971 MarkLazyDeoptSite(); 977 MarkLazyDeoptSite();
972 } 978 }
973 979
974 #undef __ 980 #undef __
975 981
976 } // namespace internal 982 } // namespace internal
977 } // namespace compiler 983 } // namespace compiler
978 } // namespace v8 984 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/node-matchers.cc ('k') | src/compiler/x64/instruction-codes-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698