OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |