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/arm/macro-assembler-arm.h" | 7 #include "src/arm/macro-assembler-arm.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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 case kArchDeoptimize: { | 151 case kArchDeoptimize: { |
152 int deoptimization_id = MiscField::decode(instr->opcode()); | 152 int deoptimization_id = MiscField::decode(instr->opcode()); |
153 BuildTranslation(instr, deoptimization_id); | 153 BuildTranslation(instr, deoptimization_id); |
154 | 154 |
155 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( | 155 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( |
156 isolate(), deoptimization_id, Deoptimizer::LAZY); | 156 isolate(), deoptimization_id, Deoptimizer::LAZY); |
157 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); | 157 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); |
158 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 158 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
159 break; | 159 break; |
160 } | 160 } |
| 161 case kArchTruncateDoubleToI: |
| 162 __ TruncateDoubleToI(i.OutputRegister(), i.InputDoubleRegister(0)); |
| 163 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
| 164 break; |
161 case kArmAdd: | 165 case kArmAdd: |
162 __ add(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1), | 166 __ add(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1), |
163 i.OutputSBit()); | 167 i.OutputSBit()); |
164 break; | 168 break; |
165 case kArmAnd: | 169 case kArmAnd: |
166 __ and_(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1), | 170 __ and_(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1), |
167 i.OutputSBit()); | 171 i.OutputSBit()); |
168 break; | 172 break; |
169 case kArmBic: | 173 case kArmBic: |
170 __ bic(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1), | 174 __ bic(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1), |
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
826 | 830 |
827 void CodeGenerator::AddNopForSmiCodeInlining() { | 831 void CodeGenerator::AddNopForSmiCodeInlining() { |
828 // On 32-bit ARM we do not insert nops for inlined Smi code. | 832 // On 32-bit ARM we do not insert nops for inlined Smi code. |
829 UNREACHABLE(); | 833 UNREACHABLE(); |
830 } | 834 } |
831 | 835 |
832 #undef __ | 836 #undef __ |
833 } | 837 } |
834 } | 838 } |
835 } // namespace v8::internal::compiler | 839 } // namespace v8::internal::compiler |
OLD | NEW |