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/gap-resolver.h" | 8 #include "src/compiler/gap-resolver.h" |
9 #include "src/compiler/node-matchers.h" | 9 #include "src/compiler/node-matchers.h" |
10 #include "src/compiler/node-properties-inl.h" | 10 #include "src/compiler/node-properties-inl.h" |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 break; | 215 break; |
216 case kArchDeoptimize: { | 216 case kArchDeoptimize: { |
217 int deoptimization_id = MiscField::decode(instr->opcode()); | 217 int deoptimization_id = MiscField::decode(instr->opcode()); |
218 BuildTranslation(instr, deoptimization_id); | 218 BuildTranslation(instr, deoptimization_id); |
219 | 219 |
220 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( | 220 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( |
221 isolate(), deoptimization_id, Deoptimizer::LAZY); | 221 isolate(), deoptimization_id, Deoptimizer::LAZY); |
222 __ call(deopt_entry, RelocInfo::RUNTIME_ENTRY); | 222 __ call(deopt_entry, RelocInfo::RUNTIME_ENTRY); |
223 break; | 223 break; |
224 } | 224 } |
| 225 case kArchTruncateDoubleToI: |
| 226 __ TruncateDoubleToI(i.OutputRegister(), i.InputDoubleRegister(0)); |
| 227 break; |
225 case kX64Add32: | 228 case kX64Add32: |
226 ASSEMBLE_BINOP(addl); | 229 ASSEMBLE_BINOP(addl); |
227 break; | 230 break; |
228 case kX64Add: | 231 case kX64Add: |
229 ASSEMBLE_BINOP(addq); | 232 ASSEMBLE_BINOP(addq); |
230 break; | 233 break; |
231 case kX64Sub32: | 234 case kX64Sub32: |
232 ASSEMBLE_BINOP(subl); | 235 ASSEMBLE_BINOP(subl); |
233 break; | 236 break; |
234 case kX64Sub: | 237 case kX64Sub: |
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
996 } | 999 } |
997 | 1000 |
998 | 1001 |
999 void CodeGenerator::AddNopForSmiCodeInlining() { __ nop(); } | 1002 void CodeGenerator::AddNopForSmiCodeInlining() { __ nop(); } |
1000 | 1003 |
1001 #undef __ | 1004 #undef __ |
1002 | 1005 |
1003 } // namespace internal | 1006 } // namespace internal |
1004 } // namespace compiler | 1007 } // namespace compiler |
1005 } // namespace v8 | 1008 } // namespace v8 |
OLD | NEW |