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

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

Issue 1512023002: [turbofan] Change TruncateFloat32ToUint64 to TryTruncateFloat32ToUint64. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Added better mips64 code. Created 5 years 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/ppc/instruction-selector-ppc.cc ('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 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 } 437 }
438 Node* TruncateFloat64ToInt64(Node* a) { 438 Node* TruncateFloat64ToInt64(Node* a) {
439 // TODO(ahaas): Remove this function as soon as it is not used anymore in 439 // TODO(ahaas): Remove this function as soon as it is not used anymore in
440 // WebAssembly. 440 // WebAssembly.
441 return AddNode(machine()->TryTruncateFloat64ToInt64(), a); 441 return AddNode(machine()->TryTruncateFloat64ToInt64(), a);
442 } 442 }
443 Node* TryTruncateFloat64ToInt64(Node* a) { 443 Node* TryTruncateFloat64ToInt64(Node* a) {
444 return AddNode(machine()->TryTruncateFloat64ToInt64(), a); 444 return AddNode(machine()->TryTruncateFloat64ToInt64(), a);
445 } 445 }
446 Node* TruncateFloat32ToUint64(Node* a) { 446 Node* TruncateFloat32ToUint64(Node* a) {
447 return AddNode(machine()->TruncateFloat32ToUint64(), a); 447 // TODO(ahaas): Remove this function as soon as it is not used anymore in
448 // WebAssembly.
449 return AddNode(machine()->TryTruncateFloat32ToUint64(), a);
450 }
451 Node* TryTruncateFloat32ToUint64(Node* a) {
452 return AddNode(machine()->TryTruncateFloat32ToUint64(), a);
448 } 453 }
449 Node* TruncateFloat64ToUint64(Node* a) { 454 Node* TruncateFloat64ToUint64(Node* a) {
450 // TODO(ahaas): Remove this function as soon as it is not used anymore in 455 // TODO(ahaas): Remove this function as soon as it is not used anymore in
451 // WebAssembly. 456 // WebAssembly.
452 return AddNode(machine()->TryTruncateFloat64ToUint64(), a); 457 return AddNode(machine()->TryTruncateFloat64ToUint64(), a);
453 } 458 }
454 Node* TryTruncateFloat64ToUint64(Node* a) { 459 Node* TryTruncateFloat64ToUint64(Node* a) {
455 return AddNode(machine()->TryTruncateFloat64ToUint64(), a); 460 return AddNode(machine()->TryTruncateFloat64ToUint64(), a);
456 } 461 }
457 Node* ChangeInt32ToInt64(Node* a) { 462 Node* ChangeInt32ToInt64(Node* a) {
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 bool bound_; 679 bool bound_;
675 friend class RawMachineAssembler; 680 friend class RawMachineAssembler;
676 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); 681 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel);
677 }; 682 };
678 683
679 } // namespace compiler 684 } // namespace compiler
680 } // namespace internal 685 } // namespace internal
681 } // namespace v8 686 } // namespace v8
682 687
683 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 688 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/compiler/ppc/instruction-selector-ppc.cc ('k') | src/compiler/typer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698