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

Side by Side Diff: src/compiler/machine-type.h

Issue 1284853002: Revert of [turbofan] Various fixes to allow unboxed doubles as arguments in registers... (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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/linkage.cc ('k') | src/compiler/mips/code-generator-mips.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_MACHINE_TYPE_H_ 5 #ifndef V8_COMPILER_MACHINE_TYPE_H_
6 #define V8_COMPILER_MACHINE_TYPE_H_ 6 #define V8_COMPILER_MACHINE_TYPE_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 return -1; 109 return -1;
110 } 110 }
111 111
112 // Gets the element size in bytes of the machine type. 112 // Gets the element size in bytes of the machine type.
113 inline int ElementSizeOf(MachineType machine_type) { 113 inline int ElementSizeOf(MachineType machine_type) {
114 const int shift = ElementSizeLog2Of(machine_type); 114 const int shift = ElementSizeLog2Of(machine_type);
115 DCHECK_NE(-1, shift); 115 DCHECK_NE(-1, shift);
116 return 1 << shift; 116 return 1 << shift;
117 } 117 }
118 118
119 inline bool IsFloatingPoint(MachineType type) {
120 MachineType rep = RepresentationOf(type);
121 return rep == kRepFloat32 || rep == kRepFloat64;
122 }
123
124 typedef Signature<MachineType> MachineSignature; 119 typedef Signature<MachineType> MachineSignature;
125 120
126 } // namespace compiler 121 } // namespace compiler
127 } // namespace internal 122 } // namespace internal
128 } // namespace v8 123 } // namespace v8
129 124
130 #endif // V8_COMPILER_MACHINE_TYPE_H_ 125 #endif // V8_COMPILER_MACHINE_TYPE_H_
OLDNEW
« no previous file with comments | « src/compiler/linkage.cc ('k') | src/compiler/mips/code-generator-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698