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

Side by Side Diff: src/base/flags.h

Issue 1559123003: [turbofan] Performance enhancements for escape analysis (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix fix Created 4 years, 11 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 | « no previous file | src/compiler/escape-analysis.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 V8_BASE_FLAGS_H_ 5 #ifndef V8_BASE_FLAGS_H_
6 #define V8_BASE_FLAGS_H_ 6 #define V8_BASE_FLAGS_H_
7 7
8 #include <cstddef> 8 #include <cstddef>
9 9
10 #include "src/base/compiler-specific.h" 10 #include "src/base/compiler-specific.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 inline Type operator|(Type::flag_type lhs, const Type& rhs) { \ 101 inline Type operator|(Type::flag_type lhs, const Type& rhs) { \
102 return rhs | lhs; \ 102 return rhs | lhs; \
103 } \ 103 } \
104 inline void operator|(Type::flag_type lhs, Type::mask_type rhs) \ 104 inline void operator|(Type::flag_type lhs, Type::mask_type rhs) \
105 ALLOW_UNUSED_TYPE; \ 105 ALLOW_UNUSED_TYPE; \
106 inline void operator|(Type::flag_type lhs, Type::mask_type rhs) {} \ 106 inline void operator|(Type::flag_type lhs, Type::mask_type rhs) {} \
107 inline Type operator^(Type::flag_type lhs, Type::flag_type rhs) \ 107 inline Type operator^(Type::flag_type lhs, Type::flag_type rhs) \
108 ALLOW_UNUSED_TYPE WARN_UNUSED_RESULT; \ 108 ALLOW_UNUSED_TYPE WARN_UNUSED_RESULT; \
109 inline Type operator^(Type::flag_type lhs, Type::flag_type rhs) { \ 109 inline Type operator^(Type::flag_type lhs, Type::flag_type rhs) { \
110 return Type(lhs) ^ rhs; \ 110 return Type(lhs) ^ rhs; \
111 } inline Type operator^(Type::flag_type lhs, const Type& rhs) \ 111 } inline Type \
112 operator^(Type::flag_type lhs, const Type& rhs) \
112 ALLOW_UNUSED_TYPE WARN_UNUSED_RESULT; \ 113 ALLOW_UNUSED_TYPE WARN_UNUSED_RESULT; \
113 inline Type operator^(Type::flag_type lhs, const Type& rhs) { \ 114 inline Type operator^(Type::flag_type lhs, const Type& rhs) { \
114 return rhs ^ lhs; \ 115 return rhs ^ lhs; \
115 } inline void operator^(Type::flag_type lhs, Type::mask_type rhs) \ 116 } inline void \
116 ALLOW_UNUSED_TYPE; \ 117 operator^(Type::flag_type lhs, Type::mask_type rhs) ALLOW_UNUSED_TYPE; \
117 inline void operator^(Type::flag_type lhs, Type::mask_type rhs) {} 118 inline void operator^(Type::flag_type lhs, Type::mask_type rhs) { \
119 } inline Type \
120 operator~(Type::flag_type val)ALLOW_UNUSED_TYPE; \
121 inline Type operator~(Type::flag_type val) { return ~Type(val); }
118 122
119 } // namespace base 123 } // namespace base
120 } // namespace v8 124 } // namespace v8
121 125
122 #endif // V8_BASE_FLAGS_H_ 126 #endif // V8_BASE_FLAGS_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/escape-analysis.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698