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

Side by Side Diff: src/code-stub-assembler.h

Issue 2461463003: [stubs] Add FLAG_enable_slow_asserts check to CSA_SLOW_ASSERT (Closed)
Patch Set: doing the semicolon thing I was told to 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 | « no previous file | 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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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_CODE_STUB_ASSEMBLER_H_ 5 #ifndef V8_CODE_STUB_ASSEMBLER_H_
6 #define V8_CODE_STUB_ASSEMBLER_H_ 6 #define V8_CODE_STUB_ASSEMBLER_H_
7 7
8 #include <functional> 8 #include <functional>
9 9
10 #include "src/compiler/code-assembler.h" 10 #include "src/compiler/code-assembler.h"
(...skipping 1180 matching lines...) Expand 10 before | Expand all | Expand 10 after
1191 compiler::Node* length, 1191 compiler::Node* length,
1192 compiler::Node* first, 1192 compiler::Node* first,
1193 compiler::Node* second, 1193 compiler::Node* second,
1194 AllocationFlags flags); 1194 AllocationFlags flags);
1195 1195
1196 static const int kElementLoopUnrollThreshold = 8; 1196 static const int kElementLoopUnrollThreshold = 8;
1197 }; 1197 };
1198 1198
1199 #define CSA_ASSERT(x) Assert((x), #x, __FILE__, __LINE__) 1199 #define CSA_ASSERT(x) Assert((x), #x, __FILE__, __LINE__)
1200 #ifdef ENABLE_SLOW_DCHECKS 1200 #ifdef ENABLE_SLOW_DCHECKS
1201 #define CSA_SLOW_ASSERT(x) Assert((x), #x, __FILE__, __LINE__) 1201 #define CSA_SLOW_ASSERT(x) \
1202 if (FLAG_enable_slow_asserts) { \
1203 Assert((x), #x, __FILE__, __LINE__); \
1204 }
1202 #else 1205 #else
1203 #define CSA_SLOW_ASSERT(x) 1206 #define CSA_SLOW_ASSERT(x)
1204 #endif 1207 #endif
1205 1208
1206 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); 1209 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags);
1207 1210
1208 } // namespace internal 1211 } // namespace internal
1209 } // namespace v8 1212 } // namespace v8
1210 #endif // V8_CODE_STUB_ASSEMBLER_H_ 1213 #endif // V8_CODE_STUB_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698