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 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 } else { | 448 } else { |
449 __ push(i.InputOperand(0)); | 449 __ push(i.InputOperand(0)); |
450 } | 450 } |
451 break; | 451 break; |
452 case kIA32StoreWriteBarrier: { | 452 case kIA32StoreWriteBarrier: { |
453 Register object = i.InputRegister(0); | 453 Register object = i.InputRegister(0); |
454 Register index = i.InputRegister(1); | 454 Register index = i.InputRegister(1); |
455 Register value = i.InputRegister(2); | 455 Register value = i.InputRegister(2); |
456 __ mov(Operand(object, index, times_1, 0), value); | 456 __ mov(Operand(object, index, times_1, 0), value); |
457 __ lea(index, Operand(object, index, times_1, 0)); | 457 __ lea(index, Operand(object, index, times_1, 0)); |
458 SaveFPRegsMode mode = code_->frame()->DidAllocateDoubleRegisters() | 458 SaveFPRegsMode mode = |
459 ? kSaveFPRegs | 459 frame()->DidAllocateDoubleRegisters() ? kSaveFPRegs : kDontSaveFPRegs; |
460 : kDontSaveFPRegs; | |
461 __ RecordWrite(object, index, value, mode); | 460 __ RecordWrite(object, index, value, mode); |
462 break; | 461 break; |
463 } | 462 } |
464 } | 463 } |
465 } | 464 } |
466 | 465 |
467 | 466 |
468 // Assembles branches after an instruction. | 467 // Assembles branches after an instruction. |
469 void CodeGenerator::AssembleArchBranch(Instruction* instr, | 468 void CodeGenerator::AssembleArchBranch(Instruction* instr, |
470 FlagsCondition condition) { | 469 FlagsCondition condition) { |
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1034 } | 1033 } |
1035 } | 1034 } |
1036 MarkLazyDeoptSite(); | 1035 MarkLazyDeoptSite(); |
1037 } | 1036 } |
1038 | 1037 |
1039 #undef __ | 1038 #undef __ |
1040 | 1039 |
1041 } // namespace compiler | 1040 } // namespace compiler |
1042 } // namespace internal | 1041 } // namespace internal |
1043 } // namespace v8 | 1042 } // namespace v8 |
OLD | NEW |