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

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

Issue 2468233004: [Turbofan] Reduce register allocation work when we can. (Closed)
Patch Set: Review comments. Created 4 years, 1 month 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/register-allocator.cc ('k') | no next file » | 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_MACHINE_TYPE_H_ 5 #ifndef V8_MACHINE_TYPE_H_
6 #define V8_MACHINE_TYPE_H_ 6 #define V8_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 11 matching lines...) Expand all
22 kWord16, 22 kWord16,
23 kWord32, 23 kWord32,
24 kWord64, 24 kWord64,
25 kTaggedSigned, 25 kTaggedSigned,
26 kTaggedPointer, 26 kTaggedPointer,
27 kTagged, 27 kTagged,
28 // FP representations must be last, and in order of increasing size. 28 // FP representations must be last, and in order of increasing size.
29 kFloat32, 29 kFloat32,
30 kFloat64, 30 kFloat64,
31 kSimd128, 31 kSimd128,
32 kFirstFPRepresentation = kFloat32 32 kFirstFPRepresentation = kFloat32,
33 kLastRepresentation = kSimd128
33 }; 34 };
34 35
36 static_assert(static_cast<int>(MachineRepresentation::kLastRepresentation) <
37 kIntSize * kBitsPerByte,
38 "Bit masks of MachineRepresentation should fit in an int");
39
35 const char* MachineReprToString(MachineRepresentation); 40 const char* MachineReprToString(MachineRepresentation);
36 41
37 enum class MachineSemantic : uint8_t { 42 enum class MachineSemantic : uint8_t {
38 kNone, 43 kNone,
39 kBool, 44 kBool,
40 kInt32, 45 kInt32,
41 kUint32, 46 kUint32,
42 kInt64, 47 kInt64,
43 kUint64, 48 kUint64,
44 kNumber, 49 kNumber,
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 UNREACHABLE(); 269 UNREACHABLE();
265 return -1; 270 return -1;
266 } 271 }
267 272
268 typedef Signature<MachineType> MachineSignature; 273 typedef Signature<MachineType> MachineSignature;
269 274
270 } // namespace internal 275 } // namespace internal
271 } // namespace v8 276 } // namespace v8
272 277
273 #endif // V8_MACHINE_TYPE_H_ 278 #endif // V8_MACHINE_TYPE_H_
OLDNEW
« no previous file with comments | « src/compiler/register-allocator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698