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

Side by Side Diff: src/hydrogen-types.h

Issue 1088993003: Replace OVERRIDE->override and FINAL->final since we now require C++11. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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/hydrogen-instructions.h ('k') | src/ia32/code-stubs-ia32.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 #ifndef HYDROGEN_TYPES_H_ 5 #ifndef HYDROGEN_TYPES_H_
6 #define HYDROGEN_TYPES_H_ 6 #define HYDROGEN_TYPES_H_
7 7
8 #include <climits> 8 #include <climits>
9 #include <iosfwd> 9 #include <iosfwd>
10 10
(...skipping 17 matching lines...) Expand all
28 V(Null, 0x27) /* 0000 0000 0010 0111 */ \ 28 V(Null, 0x27) /* 0000 0000 0010 0111 */ \
29 V(HeapNumber, 0x2d) /* 0000 0000 0010 1101 */ \ 29 V(HeapNumber, 0x2d) /* 0000 0000 0010 1101 */ \
30 V(String, 0x65) /* 0000 0000 0110 0101 */ \ 30 V(String, 0x65) /* 0000 0000 0110 0101 */ \
31 V(Boolean, 0xa5) /* 0000 0000 1010 0101 */ \ 31 V(Boolean, 0xa5) /* 0000 0000 1010 0101 */ \
32 V(Undefined, 0x125) /* 0000 0001 0010 0101 */ \ 32 V(Undefined, 0x125) /* 0000 0001 0010 0101 */ \
33 V(JSReceiver, 0x221) /* 0000 0010 0010 0001 */ \ 33 V(JSReceiver, 0x221) /* 0000 0010 0010 0001 */ \
34 V(JSObject, 0x621) /* 0000 0110 0010 0001 */ \ 34 V(JSObject, 0x621) /* 0000 0110 0010 0001 */ \
35 V(JSArray, 0xe21) /* 0000 1110 0010 0001 */ \ 35 V(JSArray, 0xe21) /* 0000 1110 0010 0001 */ \
36 V(None, 0xfff) /* 0000 1111 1111 1111 */ 36 V(None, 0xfff) /* 0000 1111 1111 1111 */
37 37
38 class HType FINAL { 38 class HType final {
39 public: 39 public:
40 #define DECLARE_CONSTRUCTOR(Name, mask) \ 40 #define DECLARE_CONSTRUCTOR(Name, mask) \
41 static HType Name() WARN_UNUSED_RESULT { return HType(k##Name); } 41 static HType Name() WARN_UNUSED_RESULT { return HType(k##Name); }
42 HTYPE_LIST(DECLARE_CONSTRUCTOR) 42 HTYPE_LIST(DECLARE_CONSTRUCTOR)
43 #undef DECLARE_CONSTRUCTOR 43 #undef DECLARE_CONSTRUCTOR
44 44
45 // Return the weakest (least precise) common type. 45 // Return the weakest (least precise) common type.
46 HType Combine(HType other) const WARN_UNUSED_RESULT { 46 HType Combine(HType other) const WARN_UNUSED_RESULT {
47 return HType(static_cast<Kind>(kind_ & other.kind_)); 47 return HType(static_cast<Kind>(kind_ & other.kind_));
48 } 48 }
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 explicit HType(Kind kind) : kind_(kind) { } 82 explicit HType(Kind kind) : kind_(kind) { }
83 83
84 int16_t kind_; 84 int16_t kind_;
85 }; 85 };
86 86
87 87
88 std::ostream& operator<<(std::ostream& os, const HType& t); 88 std::ostream& operator<<(std::ostream& os, const HType& t);
89 } } // namespace v8::internal 89 } } // namespace v8::internal
90 90
91 #endif // HYDROGEN_TYPES_H_ 91 #endif // HYDROGEN_TYPES_H_
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/code-stubs-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698