| OLD | NEW | 
|---|
| 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  Loading... | 
| 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_ | 
| OLD | NEW | 
|---|