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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 __ test(i.InputRegister(0), i.InputOperand(1)); | 237 __ test(i.InputRegister(0), i.InputOperand(1)); |
238 } | 238 } |
239 break; | 239 break; |
240 case kIA32Imul: | 240 case kIA32Imul: |
241 if (HasImmediateInput(instr, 1)) { | 241 if (HasImmediateInput(instr, 1)) { |
242 __ imul(i.OutputRegister(), i.InputOperand(0), i.InputInt32(1)); | 242 __ imul(i.OutputRegister(), i.InputOperand(0), i.InputInt32(1)); |
243 } else { | 243 } else { |
244 __ imul(i.OutputRegister(), i.InputOperand(1)); | 244 __ imul(i.OutputRegister(), i.InputOperand(1)); |
245 } | 245 } |
246 break; | 246 break; |
| 247 case kIA32ImulHigh: |
| 248 __ imul(i.InputRegister(1)); |
| 249 break; |
247 case kIA32Idiv: | 250 case kIA32Idiv: |
248 __ cdq(); | 251 __ cdq(); |
249 __ idiv(i.InputOperand(1)); | 252 __ idiv(i.InputOperand(1)); |
250 break; | 253 break; |
251 case kIA32Udiv: | 254 case kIA32Udiv: |
252 __ Move(edx, Immediate(0)); | 255 __ Move(edx, Immediate(0)); |
253 __ div(i.InputOperand(1)); | 256 __ div(i.InputOperand(1)); |
254 break; | 257 break; |
255 case kIA32Not: | 258 case kIA32Not: |
256 __ not_(i.OutputOperand()); | 259 __ not_(i.OutputOperand()); |
(...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1031 } | 1034 } |
1032 } | 1035 } |
1033 MarkLazyDeoptSite(); | 1036 MarkLazyDeoptSite(); |
1034 } | 1037 } |
1035 | 1038 |
1036 #undef __ | 1039 #undef __ |
1037 | 1040 |
1038 } // namespace compiler | 1041 } // namespace compiler |
1039 } // namespace internal | 1042 } // namespace internal |
1040 } // namespace v8 | 1043 } // namespace v8 |
OLD | NEW |