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

Side by Side Diff: src/compiler/raw-machine-assembler.h

Issue 2252863003: [turbofan] Add Float32(Max|Min) machine operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Type is number now. Created 4 years, 3 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
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/typer.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 #ifndef V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 5 #ifndef V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
6 #define V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 6 #define V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/compiler/common-operator.h" 9 #include "src/compiler/common-operator.h"
10 #include "src/compiler/graph.h" 10 #include "src/compiler/graph.h"
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 Node* Float32LessThan(Node* a, Node* b) { 451 Node* Float32LessThan(Node* a, Node* b) {
452 return AddNode(machine()->Float32LessThan(), a, b); 452 return AddNode(machine()->Float32LessThan(), a, b);
453 } 453 }
454 Node* Float32LessThanOrEqual(Node* a, Node* b) { 454 Node* Float32LessThanOrEqual(Node* a, Node* b) {
455 return AddNode(machine()->Float32LessThanOrEqual(), a, b); 455 return AddNode(machine()->Float32LessThanOrEqual(), a, b);
456 } 456 }
457 Node* Float32GreaterThan(Node* a, Node* b) { return Float32LessThan(b, a); } 457 Node* Float32GreaterThan(Node* a, Node* b) { return Float32LessThan(b, a); }
458 Node* Float32GreaterThanOrEqual(Node* a, Node* b) { 458 Node* Float32GreaterThanOrEqual(Node* a, Node* b) {
459 return Float32LessThanOrEqual(b, a); 459 return Float32LessThanOrEqual(b, a);
460 } 460 }
461 461 Node* Float32Max(Node* a, Node* b) {
462 return AddNode(machine()->Float32Max(), a, b);
463 }
464 Node* Float32Min(Node* a, Node* b) {
465 return AddNode(machine()->Float32Min(), a, b);
466 }
462 Node* Float64Add(Node* a, Node* b) { 467 Node* Float64Add(Node* a, Node* b) {
463 return AddNode(machine()->Float64Add(), a, b); 468 return AddNode(machine()->Float64Add(), a, b);
464 } 469 }
465 Node* Float64Sub(Node* a, Node* b) { 470 Node* Float64Sub(Node* a, Node* b) {
466 return AddNode(machine()->Float64Sub(), a, b); 471 return AddNode(machine()->Float64Sub(), a, b);
467 } 472 }
468 Node* Float64Mul(Node* a, Node* b) { 473 Node* Float64Mul(Node* a, Node* b) {
469 return AddNode(machine()->Float64Mul(), a, b); 474 return AddNode(machine()->Float64Mul(), a, b);
470 } 475 }
471 Node* Float64Div(Node* a, Node* b) { 476 Node* Float64Div(Node* a, Node* b) {
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 bool deferred_; 831 bool deferred_;
827 friend class RawMachineAssembler; 832 friend class RawMachineAssembler;
828 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); 833 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel);
829 }; 834 };
830 835
831 } // namespace compiler 836 } // namespace compiler
832 } // namespace internal 837 } // namespace internal
833 } // namespace v8 838 } // namespace v8
834 839
835 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 840 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/typer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698