| 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/compilation-info.h" | 7 #include "src/compilation-info.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 1654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1665 } | 1665 } |
| 1666 // Add a jump if not falling through to the next block. | 1666 // Add a jump if not falling through to the next block. |
| 1667 if (!branch->fallthru) __ jmp(flabel); | 1667 if (!branch->fallthru) __ jmp(flabel); |
| 1668 } | 1668 } |
| 1669 | 1669 |
| 1670 | 1670 |
| 1671 void CodeGenerator::AssembleArchJump(RpoNumber target) { | 1671 void CodeGenerator::AssembleArchJump(RpoNumber target) { |
| 1672 if (!IsNextInAssemblyOrder(target)) __ jmp(GetLabel(target)); | 1672 if (!IsNextInAssemblyOrder(target)) __ jmp(GetLabel(target)); |
| 1673 } | 1673 } |
| 1674 | 1674 |
| 1675 void CodeGenerator::AssembleArchTrap(Instruction* instr, |
| 1676 FlagsCondition condition) { |
| 1677 UNREACHABLE(); |
| 1678 } |
| 1675 | 1679 |
| 1676 // Assembles boolean materializations after an instruction. | 1680 // Assembles boolean materializations after an instruction. |
| 1677 void CodeGenerator::AssembleArchBoolean(Instruction* instr, | 1681 void CodeGenerator::AssembleArchBoolean(Instruction* instr, |
| 1678 FlagsCondition condition) { | 1682 FlagsCondition condition) { |
| 1679 IA32OperandConverter i(this, instr); | 1683 IA32OperandConverter i(this, instr); |
| 1680 Label done; | 1684 Label done; |
| 1681 | 1685 |
| 1682 // Materialize a full 32-bit 1 or 0 value. The result register is always the | 1686 // Materialize a full 32-bit 1 or 0 value. The result register is always the |
| 1683 // last output of the instruction. | 1687 // last output of the instruction. |
| 1684 Label check; | 1688 Label check; |
| (...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2274 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 2278 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
| 2275 __ Nop(padding_size); | 2279 __ Nop(padding_size); |
| 2276 } | 2280 } |
| 2277 } | 2281 } |
| 2278 | 2282 |
| 2279 #undef __ | 2283 #undef __ |
| 2280 | 2284 |
| 2281 } // namespace compiler | 2285 } // namespace compiler |
| 2282 } // namespace internal | 2286 } // namespace internal |
| 2283 } // namespace v8 | 2287 } // namespace v8 |
| OLD | NEW |