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

Side by Side Diff: src/compiler/arm64/instruction-selector-arm64.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/arm64/instruction-codes-arm64.h ('k') | src/compiler/graph-unittest.h » ('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 7
8 namespace v8 { 8 namespace v8 {
9 namespace internal { 9 namespace internal {
10 namespace compiler { 10 namespace compiler {
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 499
500 500
501 void InstructionSelector::VisitFloat64Mod(Node* node) { 501 void InstructionSelector::VisitFloat64Mod(Node* node) {
502 Arm64OperandGenerator g(this); 502 Arm64OperandGenerator g(this);
503 Emit(kArm64Float64Mod, g.DefineAsFixed(node, d0), 503 Emit(kArm64Float64Mod, g.DefineAsFixed(node, d0),
504 g.UseFixed(node->InputAt(0), d0), 504 g.UseFixed(node->InputAt(0), d0),
505 g.UseFixed(node->InputAt(1), d1))->MarkAsCall(); 505 g.UseFixed(node->InputAt(1), d1))->MarkAsCall();
506 } 506 }
507 507
508 508
509 void InstructionSelector::VisitFloat64Sqrt(Node* node) {
510 Arm64OperandGenerator g(this);
511 Emit(kArm64Float64Sqrt, g.DefineAsRegister(node),
512 g.UseRegister(node->InputAt(0)));
513 }
514
515
509 void InstructionSelector::VisitInt32AddWithOverflow(Node* node, 516 void InstructionSelector::VisitInt32AddWithOverflow(Node* node,
510 FlagsContinuation* cont) { 517 FlagsContinuation* cont) {
511 VisitBinop<Int32BinopMatcher>(this, node, kArm64Add32, kArithmeticImm, cont); 518 VisitBinop<Int32BinopMatcher>(this, node, kArm64Add32, kArithmeticImm, cont);
512 } 519 }
513 520
514 521
515 void InstructionSelector::VisitInt32SubWithOverflow(Node* node, 522 void InstructionSelector::VisitInt32SubWithOverflow(Node* node,
516 FlagsContinuation* cont) { 523 FlagsContinuation* cont) {
517 VisitBinop<Int32BinopMatcher>(this, node, kArm64Sub32, kArithmeticImm, cont); 524 VisitBinop<Int32BinopMatcher>(this, node, kArm64Sub32, kArithmeticImm, cont);
518 } 525 }
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
681 call_instr->MarkAsCall(); 688 call_instr->MarkAsCall();
682 if (deoptimization != NULL) { 689 if (deoptimization != NULL) {
683 DCHECK(continuation != NULL); 690 DCHECK(continuation != NULL);
684 call_instr->MarkAsControl(); 691 call_instr->MarkAsControl();
685 } 692 }
686 } 693 }
687 694
688 } // namespace compiler 695 } // namespace compiler
689 } // namespace internal 696 } // namespace internal
690 } // namespace v8 697 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/arm64/instruction-codes-arm64.h ('k') | src/compiler/graph-unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698