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

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

Issue 738073002: [turbofan]: More optimizations to add and subtract operations on x64 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Latest version Created 6 years 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
« no previous file with comments | « no previous file | 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 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 __ movsd(operand, i.InputDoubleRegister(index)); 590 __ movsd(operand, i.InputDoubleRegister(index));
591 } 591 }
592 break; 592 break;
593 case kX64Lea32: 593 case kX64Lea32:
594 __ leal(i.OutputRegister(), i.MemoryOperand()); 594 __ leal(i.OutputRegister(), i.MemoryOperand());
595 __ AssertZeroExtended(i.OutputRegister()); 595 __ AssertZeroExtended(i.OutputRegister());
596 break; 596 break;
597 case kX64Lea: 597 case kX64Lea:
598 __ leaq(i.OutputRegister(), i.MemoryOperand()); 598 __ leaq(i.OutputRegister(), i.MemoryOperand());
599 break; 599 break;
600 case kX64Dec32:
601 __ decl(i.OutputRegister());
602 break;
603 case kX64Inc32:
604 __ incl(i.OutputRegister());
605 break;
600 case kX64Push: 606 case kX64Push:
601 if (HasImmediateInput(instr, 0)) { 607 if (HasImmediateInput(instr, 0)) {
602 __ pushq(i.InputImmediate(0)); 608 __ pushq(i.InputImmediate(0));
603 } else { 609 } else {
604 if (instr->InputAt(0)->IsRegister()) { 610 if (instr->InputAt(0)->IsRegister()) {
605 __ pushq(i.InputRegister(0)); 611 __ pushq(i.InputRegister(0));
606 } else { 612 } else {
607 __ pushq(i.InputOperand(0)); 613 __ pushq(i.InputOperand(0));
608 } 614 }
609 } 615 }
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
1031 } 1037 }
1032 } 1038 }
1033 MarkLazyDeoptSite(); 1039 MarkLazyDeoptSite();
1034 } 1040 }
1035 1041
1036 #undef __ 1042 #undef __
1037 1043
1038 } // namespace internal 1044 } // namespace internal
1039 } // namespace compiler 1045 } // namespace compiler
1040 } // namespace v8 1046 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/x64/instruction-codes-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698