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

Side by Side Diff: src/compiler/ia32/instruction-selector-ia32.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/ia32/instruction-codes-ia32.h ('k') | src/compiler/instruction-selector.cc » ('j') | 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 #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
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
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
OLDNEW
« no previous file with comments | « src/compiler/ia32/instruction-codes-ia32.h ('k') | src/compiler/instruction-selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698