| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
| 8 #include "src/compiler/code-generator-impl.h" | 8 #include "src/compiler/code-generator-impl.h" |
| 9 #include "src/compiler/gap-resolver.h" | 9 #include "src/compiler/gap-resolver.h" |
| 10 #include "src/compiler/node-matchers.h" | 10 #include "src/compiler/node-matchers.h" |
| (...skipping 1639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1650 break; | 1650 break; |
| 1651 case kAtomicLoadInt16: | 1651 case kAtomicLoadInt16: |
| 1652 __ LoadHalfWordP(i.OutputRegister(), i.MemoryOperand()); | 1652 __ LoadHalfWordP(i.OutputRegister(), i.MemoryOperand()); |
| 1653 break; | 1653 break; |
| 1654 case kAtomicLoadUint16: | 1654 case kAtomicLoadUint16: |
| 1655 __ LoadLogicalHalfWordP(i.OutputRegister(), i.MemoryOperand()); | 1655 __ LoadLogicalHalfWordP(i.OutputRegister(), i.MemoryOperand()); |
| 1656 break; | 1656 break; |
| 1657 case kAtomicLoadWord32: | 1657 case kAtomicLoadWord32: |
| 1658 __ LoadlW(i.OutputRegister(), i.MemoryOperand()); | 1658 __ LoadlW(i.OutputRegister(), i.MemoryOperand()); |
| 1659 break; | 1659 break; |
| 1660 case kAtomicStoreWord8: |
| 1661 __ StoreByte(i.InputRegister(0), i.MemoryOperand(NULL, 1)); |
| 1662 break; |
| 1663 case kAtomicStoreWord16: |
| 1664 __ StoreHalfWord(i.InputRegister(0), i.MemoryOperand(NULL, 1)); |
| 1665 break; |
| 1666 case kAtomicStoreWord32: |
| 1667 __ StoreW(i.InputRegister(0), i.MemoryOperand(NULL, 1)); |
| 1668 break; |
| 1660 default: | 1669 default: |
| 1661 UNREACHABLE(); | 1670 UNREACHABLE(); |
| 1662 break; | 1671 break; |
| 1663 } | 1672 } |
| 1664 return kSuccess; | 1673 return kSuccess; |
| 1665 } // NOLINT(readability/fn_size) | 1674 } // NOLINT(readability/fn_size) |
| 1666 | 1675 |
| 1667 // Assembles branches after an instruction. | 1676 // Assembles branches after an instruction. |
| 1668 void CodeGenerator::AssembleArchBranch(Instruction* instr, BranchInfo* branch) { | 1677 void CodeGenerator::AssembleArchBranch(Instruction* instr, BranchInfo* branch) { |
| 1669 S390OperandConverter i(this, instr); | 1678 S390OperandConverter i(this, instr); |
| (...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2111 padding_size -= 2; | 2120 padding_size -= 2; |
| 2112 } | 2121 } |
| 2113 } | 2122 } |
| 2114 } | 2123 } |
| 2115 | 2124 |
| 2116 #undef __ | 2125 #undef __ |
| 2117 | 2126 |
| 2118 } // namespace compiler | 2127 } // namespace compiler |
| 2119 } // namespace internal | 2128 } // namespace internal |
| 2120 } // namespace v8 | 2129 } // namespace v8 |
| OLD | NEW |