OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/arm64/macro-assembler-arm64.h" | 7 #include "src/arm64/macro-assembler-arm64.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 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
839 } | 839 } |
840 | 840 |
841 | 841 |
842 // Assemble boolean materializations after this instruction. | 842 // Assemble boolean materializations after this instruction. |
843 void CodeGenerator::AssembleArchBoolean(Instruction* instr, | 843 void CodeGenerator::AssembleArchBoolean(Instruction* instr, |
844 FlagsCondition condition) { | 844 FlagsCondition condition) { |
845 Arm64OperandConverter i(this, instr); | 845 Arm64OperandConverter i(this, instr); |
846 | 846 |
847 // Materialize a full 64-bit 1 or 0 value. The result register is always the | 847 // Materialize a full 64-bit 1 or 0 value. The result register is always the |
848 // last output of the instruction. | 848 // last output of the instruction. |
849 DCHECK_NE(0, instr->OutputCount()); | 849 DCHECK_NE(0u, instr->OutputCount()); |
850 Register reg = i.OutputRegister(instr->OutputCount() - 1); | 850 Register reg = i.OutputRegister(instr->OutputCount() - 1); |
851 Condition cc = FlagsConditionToCondition(condition); | 851 Condition cc = FlagsConditionToCondition(condition); |
852 __ Cset(reg, cc); | 852 __ Cset(reg, cc); |
853 } | 853 } |
854 | 854 |
855 | 855 |
856 void CodeGenerator::AssembleDeoptimizerCall(int deoptimization_id) { | 856 void CodeGenerator::AssembleDeoptimizerCall(int deoptimization_id) { |
857 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( | 857 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( |
858 isolate(), deoptimization_id, Deoptimizer::LAZY); | 858 isolate(), deoptimization_id, Deoptimizer::LAZY); |
859 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); | 859 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1110 } | 1110 } |
1111 } | 1111 } |
1112 MarkLazyDeoptSite(); | 1112 MarkLazyDeoptSite(); |
1113 } | 1113 } |
1114 | 1114 |
1115 #undef __ | 1115 #undef __ |
1116 | 1116 |
1117 } // namespace compiler | 1117 } // namespace compiler |
1118 } // namespace internal | 1118 } // namespace internal |
1119 } // namespace v8 | 1119 } // namespace v8 |
OLD | NEW |