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