| 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/linkage.h" | 8 #include "src/compiler/linkage.h" |
| 9 #include "src/compiler/pipeline.h" | 9 #include "src/compiler/pipeline.h" |
| 10 | 10 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 safepoint.DefinePointerRegister(reg, zone()); | 126 safepoint.DefinePointerRegister(reg, zone()); |
| 127 } | 127 } |
| 128 } | 128 } |
| 129 } | 129 } |
| 130 | 130 |
| 131 | 131 |
| 132 void CodeGenerator::AssembleInstruction(Instruction* instr) { | 132 void CodeGenerator::AssembleInstruction(Instruction* instr) { |
| 133 if (instr->IsGapMoves()) { | 133 if (instr->IsGapMoves()) { |
| 134 // Handle parallel moves associated with the gap instruction. | 134 // Handle parallel moves associated with the gap instruction. |
| 135 AssembleGap(GapInstruction::cast(instr)); | 135 AssembleGap(GapInstruction::cast(instr)); |
| 136 } else if (instr->IsBlockStart()) { |
| 137 return; |
| 136 } else if (instr->IsSourcePosition()) { | 138 } else if (instr->IsSourcePosition()) { |
| 137 AssembleSourcePosition(SourcePositionInstruction::cast(instr)); | 139 AssembleSourcePosition(SourcePositionInstruction::cast(instr)); |
| 138 } else { | 140 } else { |
| 139 // Assemble architecture-specific code for the instruction. | 141 // Assemble architecture-specific code for the instruction. |
| 140 AssembleArchInstruction(instr); | 142 AssembleArchInstruction(instr); |
| 141 | 143 |
| 142 // Assemble branches or boolean materializations after this instruction. | 144 // Assemble branches or boolean materializations after this instruction. |
| 143 FlagsMode mode = FlagsModeField::decode(instr->opcode()); | 145 FlagsMode mode = FlagsModeField::decode(instr->opcode()); |
| 144 FlagsCondition condition = FlagsConditionField::decode(instr->opcode()); | 146 FlagsCondition condition = FlagsConditionField::decode(instr->opcode()); |
| 145 switch (mode) { | 147 switch (mode) { |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 } | 527 } |
| 526 | 528 |
| 527 | 529 |
| 528 void CodeGenerator::AddNopForSmiCodeInlining() { UNIMPLEMENTED(); } | 530 void CodeGenerator::AddNopForSmiCodeInlining() { UNIMPLEMENTED(); } |
| 529 | 531 |
| 530 #endif // !V8_TURBOFAN_BACKEND | 532 #endif // !V8_TURBOFAN_BACKEND |
| 531 | 533 |
| 532 } // namespace compiler | 534 } // namespace compiler |
| 533 } // namespace internal | 535 } // namespace internal |
| 534 } // namespace v8 | 536 } // namespace v8 |
| OLD | NEW |