| 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/instruction-selector-impl.h" | 5 #include "src/compiler/instruction-selector-impl.h" |
| 6 #include "src/compiler/node-matchers.h" | 6 #include "src/compiler/node-matchers.h" |
| 7 #include "src/compiler/node-properties-inl.h" | 7 #include "src/compiler/node-properties-inl.h" |
| 8 | 8 |
| 9 namespace v8 { | 9 namespace v8 { |
| 10 namespace internal { | 10 namespace internal { |
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 | 410 |
| 411 void InstructionSelector::VisitFloat64Mod(Node* node) { | 411 void InstructionSelector::VisitFloat64Mod(Node* node) { |
| 412 IA32OperandGenerator g(this); | 412 IA32OperandGenerator g(this); |
| 413 InstructionOperand* temps[] = {g.TempRegister(eax)}; | 413 InstructionOperand* temps[] = {g.TempRegister(eax)}; |
| 414 Emit(kSSEFloat64Mod, g.DefineSameAsFirst(node), | 414 Emit(kSSEFloat64Mod, g.DefineSameAsFirst(node), |
| 415 g.UseRegister(node->InputAt(0)), g.UseRegister(node->InputAt(1)), 1, | 415 g.UseRegister(node->InputAt(0)), g.UseRegister(node->InputAt(1)), 1, |
| 416 temps); | 416 temps); |
| 417 } | 417 } |
| 418 | 418 |
| 419 | 419 |
| 420 void InstructionSelector::VisitFloat64Sqrt(Node* node) { |
| 421 IA32OperandGenerator g(this); |
| 422 Emit(kSSEFloat64Sqrt, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
| 423 } |
| 424 |
| 425 |
| 420 void InstructionSelector::VisitInt32AddWithOverflow(Node* node, | 426 void InstructionSelector::VisitInt32AddWithOverflow(Node* node, |
| 421 FlagsContinuation* cont) { | 427 FlagsContinuation* cont) { |
| 422 VisitBinop(this, node, kIA32Add, cont); | 428 VisitBinop(this, node, kIA32Add, cont); |
| 423 } | 429 } |
| 424 | 430 |
| 425 | 431 |
| 426 void InstructionSelector::VisitInt32SubWithOverflow(Node* node, | 432 void InstructionSelector::VisitInt32SubWithOverflow(Node* node, |
| 427 FlagsContinuation* cont) { | 433 FlagsContinuation* cont) { |
| 428 VisitBinop(this, node, kIA32Sub, cont); | 434 VisitBinop(this, node, kIA32Sub, cont); |
| 429 } | 435 } |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 548 call_instr->MarkAsCall(); | 554 call_instr->MarkAsCall(); |
| 549 if (deoptimization != NULL) { | 555 if (deoptimization != NULL) { |
| 550 DCHECK(continuation != NULL); | 556 DCHECK(continuation != NULL); |
| 551 call_instr->MarkAsControl(); | 557 call_instr->MarkAsControl(); |
| 552 } | 558 } |
| 553 } | 559 } |
| 554 | 560 |
| 555 } // namespace compiler | 561 } // namespace compiler |
| 556 } // namespace internal | 562 } // namespace internal |
| 557 } // namespace v8 | 563 } // namespace v8 |
| OLD | NEW |