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

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

Issue 616833002: [turbofan] ia32 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 | « no previous file | src/compiler/ia32/instruction-codes-ia32.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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 break; 429 break;
430 case kIA32Movss: 430 case kIA32Movss:
431 if (instr->HasOutput()) { 431 if (instr->HasOutput()) {
432 __ movss(i.OutputDoubleRegister(), i.MemoryOperand()); 432 __ movss(i.OutputDoubleRegister(), i.MemoryOperand());
433 } else { 433 } else {
434 int index = 0; 434 int index = 0;
435 Operand operand = i.MemoryOperand(&index); 435 Operand operand = i.MemoryOperand(&index);
436 __ movss(operand, i.InputDoubleRegister(index)); 436 __ movss(operand, i.InputDoubleRegister(index));
437 } 437 }
438 break; 438 break;
439 case kIA32Lea:
440 __ lea(i.OutputRegister(), i.MemoryOperand());
441 break;
439 case kIA32Push: 442 case kIA32Push:
440 if (HasImmediateInput(instr, 0)) { 443 if (HasImmediateInput(instr, 0)) {
441 __ push(i.InputImmediate(0)); 444 __ push(i.InputImmediate(0));
442 } else { 445 } else {
443 __ push(i.InputOperand(0)); 446 __ push(i.InputOperand(0));
444 } 447 }
445 break; 448 break;
446 case kIA32StoreWriteBarrier: { 449 case kIA32StoreWriteBarrier: {
447 Register object = i.InputRegister(0); 450 Register object = i.InputRegister(0);
448 Register index = i.InputRegister(1); 451 Register index = i.InputRegister(1);
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
1029 } 1032 }
1030 } 1033 }
1031 MarkLazyDeoptSite(); 1034 MarkLazyDeoptSite();
1032 } 1035 }
1033 1036
1034 #undef __ 1037 #undef __
1035 1038
1036 } // namespace compiler 1039 } // namespace compiler
1037 } // namespace internal 1040 } // namespace internal
1038 } // namespace v8 1041 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/ia32/instruction-codes-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698