Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Side by Side Diff: src/compiler/x64/instruction-selector-x64.cc

Issue 595963002: Extend JSBuiltinReducer to cover Math.sqrt as well. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comment by Benedikt. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/compiler/x64/instruction-codes-x64.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 7
8 namespace v8 { 8 namespace v8 {
9 namespace internal { 9 namespace internal {
10 namespace compiler { 10 namespace compiler {
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 552
553 void InstructionSelector::VisitFloat64Mod(Node* node) { 553 void InstructionSelector::VisitFloat64Mod(Node* node) {
554 X64OperandGenerator g(this); 554 X64OperandGenerator g(this);
555 InstructionOperand* temps[] = {g.TempRegister(rax)}; 555 InstructionOperand* temps[] = {g.TempRegister(rax)};
556 Emit(kSSEFloat64Mod, g.DefineSameAsFirst(node), 556 Emit(kSSEFloat64Mod, g.DefineSameAsFirst(node),
557 g.UseRegister(node->InputAt(0)), g.UseRegister(node->InputAt(1)), 1, 557 g.UseRegister(node->InputAt(0)), g.UseRegister(node->InputAt(1)), 1,
558 temps); 558 temps);
559 } 559 }
560 560
561 561
562 void InstructionSelector::VisitFloat64Sqrt(Node* node) {
563 X64OperandGenerator g(this);
564 Emit(kSSEFloat64Sqrt, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
565 }
566
567
562 void InstructionSelector::VisitInt32AddWithOverflow(Node* node, 568 void InstructionSelector::VisitInt32AddWithOverflow(Node* node,
563 FlagsContinuation* cont) { 569 FlagsContinuation* cont) {
564 VisitBinop(this, node, kX64Add32, cont); 570 VisitBinop(this, node, kX64Add32, cont);
565 } 571 }
566 572
567 573
568 void InstructionSelector::VisitInt32SubWithOverflow(Node* node, 574 void InstructionSelector::VisitInt32SubWithOverflow(Node* node,
569 FlagsContinuation* cont) { 575 FlagsContinuation* cont) {
570 VisitBinop(this, node, kX64Sub32, cont); 576 VisitBinop(this, node, kX64Sub32, cont);
571 } 577 }
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 call_instr->MarkAsCall(); 714 call_instr->MarkAsCall();
709 if (deoptimization != NULL) { 715 if (deoptimization != NULL) {
710 DCHECK(continuation != NULL); 716 DCHECK(continuation != NULL);
711 call_instr->MarkAsControl(); 717 call_instr->MarkAsControl();
712 } 718 }
713 } 719 }
714 720
715 } // namespace compiler 721 } // namespace compiler
716 } // namespace internal 722 } // namespace internal
717 } // namespace v8 723 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/x64/instruction-codes-x64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698