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

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

Issue 664123002: [turbofan] cleanup InstructionSequence (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/register-allocator.cc ('k') | test/cctest/compiler/test-codegen-deopt.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 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 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 } 562 }
563 } 563 }
564 break; 564 break;
565 case kX64StoreWriteBarrier: { 565 case kX64StoreWriteBarrier: {
566 Register object = i.InputRegister(0); 566 Register object = i.InputRegister(0);
567 Register index = i.InputRegister(1); 567 Register index = i.InputRegister(1);
568 Register value = i.InputRegister(2); 568 Register value = i.InputRegister(2);
569 __ movsxlq(index, index); 569 __ movsxlq(index, index);
570 __ movq(Operand(object, index, times_1, 0), value); 570 __ movq(Operand(object, index, times_1, 0), value);
571 __ leaq(index, Operand(object, index, times_1, 0)); 571 __ leaq(index, Operand(object, index, times_1, 0));
572 SaveFPRegsMode mode = code_->frame()->DidAllocateDoubleRegisters() 572 SaveFPRegsMode mode =
573 ? kSaveFPRegs 573 frame()->DidAllocateDoubleRegisters() ? kSaveFPRegs : kDontSaveFPRegs;
574 : kDontSaveFPRegs;
575 __ RecordWrite(object, index, value, mode); 574 __ RecordWrite(object, index, value, mode);
576 break; 575 break;
577 } 576 }
578 } 577 }
579 } 578 }
580 579
581 580
582 // Assembles branches after this instruction. 581 // Assembles branches after this instruction.
583 void CodeGenerator::AssembleArchBranch(Instruction* instr, 582 void CodeGenerator::AssembleArchBranch(Instruction* instr,
584 FlagsCondition condition) { 583 FlagsCondition condition) {
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
1003 } 1002 }
1004 } 1003 }
1005 MarkLazyDeoptSite(); 1004 MarkLazyDeoptSite();
1006 } 1005 }
1007 1006
1008 #undef __ 1007 #undef __
1009 1008
1010 } // namespace internal 1009 } // namespace internal
1011 } // namespace compiler 1010 } // namespace compiler
1012 } // namespace v8 1011 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/register-allocator.cc ('k') | test/cctest/compiler/test-codegen-deopt.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698