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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 break; | 142 break; |
143 case kArchDeoptimize: { | 143 case kArchDeoptimize: { |
144 int deoptimization_id = MiscField::decode(instr->opcode()); | 144 int deoptimization_id = MiscField::decode(instr->opcode()); |
145 BuildTranslation(instr, deoptimization_id); | 145 BuildTranslation(instr, deoptimization_id); |
146 | 146 |
147 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( | 147 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( |
148 isolate(), deoptimization_id, Deoptimizer::LAZY); | 148 isolate(), deoptimization_id, Deoptimizer::LAZY); |
149 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); | 149 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); |
150 break; | 150 break; |
151 } | 151 } |
| 152 case kArchTruncateDoubleToI: |
| 153 __ TruncateDoubleToI(i.OutputRegister(), i.InputDoubleRegister(0)); |
| 154 break; |
152 case kArm64Add: | 155 case kArm64Add: |
153 __ Add(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); | 156 __ Add(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); |
154 break; | 157 break; |
155 case kArm64Add32: | 158 case kArm64Add32: |
156 if (FlagsModeField::decode(opcode) != kFlags_none) { | 159 if (FlagsModeField::decode(opcode) != kFlags_none) { |
157 __ Adds(i.OutputRegister32(), i.InputRegister32(0), | 160 __ Adds(i.OutputRegister32(), i.InputRegister32(0), |
158 i.InputOperand32(1)); | 161 i.InputOperand32(1)); |
159 } else { | 162 } else { |
160 __ Add(i.OutputRegister32(), i.InputRegister32(0), i.InputOperand32(1)); | 163 __ Add(i.OutputRegister32(), i.InputRegister32(0), i.InputOperand32(1)); |
161 } | 164 } |
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
832 } | 835 } |
833 | 836 |
834 | 837 |
835 void CodeGenerator::AddNopForSmiCodeInlining() { __ movz(xzr, 0); } | 838 void CodeGenerator::AddNopForSmiCodeInlining() { __ movz(xzr, 0); } |
836 | 839 |
837 #undef __ | 840 #undef __ |
838 | 841 |
839 } // namespace compiler | 842 } // namespace compiler |
840 } // namespace internal | 843 } // namespace internal |
841 } // namespace v8 | 844 } // namespace v8 |
OLD | NEW |