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/base/bits.h" | 5 #include "src/base/bits.h" |
6 #include "src/compiler/instruction-selector-impl.h" | 6 #include "src/compiler/instruction-selector-impl.h" |
7 #include "src/compiler/node-matchers.h" | 7 #include "src/compiler/node-matchers.h" |
8 | 8 |
9 namespace v8 { | 9 namespace v8 { |
10 namespace internal { | 10 namespace internal { |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 Emit(kMipsSub | AddressingModeField::encode(kMode_None), | 293 Emit(kMipsSub | AddressingModeField::encode(kMode_None), |
294 g.DefineAsRegister(node), temp, g.UseRegister(m.left().node())); | 294 g.DefineAsRegister(node), temp, g.UseRegister(m.left().node())); |
295 return; | 295 return; |
296 } | 296 } |
297 } | 297 } |
298 Emit(kMipsMul, g.DefineAsRegister(node), g.UseRegister(m.left().node()), | 298 Emit(kMipsMul, g.DefineAsRegister(node), g.UseRegister(m.left().node()), |
299 g.UseRegister(m.right().node())); | 299 g.UseRegister(m.right().node())); |
300 } | 300 } |
301 | 301 |
302 | 302 |
| 303 void InstructionSelector::VisitInt32MulHigh(Node* node) { |
| 304 MipsOperandGenerator g(this); |
| 305 Emit(kMipsMulHigh, g.DefineAsRegister(node), g.UseRegister(node->InputAt(0)), |
| 306 g.UseRegister(node->InputAt(1))); |
| 307 } |
| 308 |
| 309 |
303 void InstructionSelector::VisitInt32Div(Node* node) { | 310 void InstructionSelector::VisitInt32Div(Node* node) { |
304 MipsOperandGenerator g(this); | 311 MipsOperandGenerator g(this); |
305 Int32BinopMatcher m(node); | 312 Int32BinopMatcher m(node); |
306 Emit(kMipsDiv, g.DefineAsRegister(node), g.UseRegister(m.left().node()), | 313 Emit(kMipsDiv, g.DefineAsRegister(node), g.UseRegister(m.left().node()), |
307 g.UseRegister(m.right().node())); | 314 g.UseRegister(m.right().node())); |
308 } | 315 } |
309 | 316 |
310 | 317 |
311 void InstructionSelector::VisitUint32Div(Node* node) { | 318 void InstructionSelector::VisitUint32Div(Node* node) { |
312 MipsOperandGenerator g(this); | 319 MipsOperandGenerator g(this); |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
634 | 641 |
635 | 642 |
636 void InstructionSelector::VisitFloat64LessThanOrEqual(Node* node) { | 643 void InstructionSelector::VisitFloat64LessThanOrEqual(Node* node) { |
637 FlagsContinuation cont(kUnorderedLessThanOrEqual, node); | 644 FlagsContinuation cont(kUnorderedLessThanOrEqual, node); |
638 VisitFloat64Compare(this, node, &cont); | 645 VisitFloat64Compare(this, node, &cont); |
639 } | 646 } |
640 | 647 |
641 } // namespace compiler | 648 } // namespace compiler |
642 } // namespace internal | 649 } // namespace internal |
643 } // namespace v8 | 650 } // namespace v8 |
OLD | NEW |