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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 break; | 122 break; |
123 case kArchDeoptimize: { | 123 case kArchDeoptimize: { |
124 int deoptimization_id = MiscField::decode(instr->opcode()); | 124 int deoptimization_id = MiscField::decode(instr->opcode()); |
125 BuildTranslation(instr, deoptimization_id); | 125 BuildTranslation(instr, deoptimization_id); |
126 | 126 |
127 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( | 127 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( |
128 isolate(), deoptimization_id, Deoptimizer::LAZY); | 128 isolate(), deoptimization_id, Deoptimizer::LAZY); |
129 __ call(deopt_entry, RelocInfo::RUNTIME_ENTRY); | 129 __ call(deopt_entry, RelocInfo::RUNTIME_ENTRY); |
130 break; | 130 break; |
131 } | 131 } |
| 132 case kArchTruncateDoubleToI: |
| 133 __ TruncateDoubleToI(i.OutputRegister(), i.InputDoubleRegister(0)); |
| 134 break; |
132 case kIA32Add: | 135 case kIA32Add: |
133 if (HasImmediateInput(instr, 1)) { | 136 if (HasImmediateInput(instr, 1)) { |
134 __ add(i.InputOperand(0), i.InputImmediate(1)); | 137 __ add(i.InputOperand(0), i.InputImmediate(1)); |
135 } else { | 138 } else { |
136 __ add(i.InputRegister(0), i.InputOperand(1)); | 139 __ add(i.InputRegister(0), i.InputOperand(1)); |
137 } | 140 } |
138 break; | 141 break; |
139 case kIA32And: | 142 case kIA32And: |
140 if (HasImmediateInput(instr, 1)) { | 143 if (HasImmediateInput(instr, 1)) { |
141 __ and_(i.InputOperand(0), i.InputImmediate(1)); | 144 __ and_(i.InputOperand(0), i.InputImmediate(1)); |
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
941 } | 944 } |
942 | 945 |
943 | 946 |
944 void CodeGenerator::AddNopForSmiCodeInlining() { __ nop(); } | 947 void CodeGenerator::AddNopForSmiCodeInlining() { __ nop(); } |
945 | 948 |
946 #undef __ | 949 #undef __ |
947 | 950 |
948 } | 951 } |
949 } | 952 } |
950 } // namespace v8::internal::compiler | 953 } // namespace v8::internal::compiler |
OLD | NEW |