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

Side by Side Diff: test/cctest/compiler/codegen-tester.h

Issue 888613002: Initial switch to Chromium-style CHECK_* and DCHECK_* macros. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: CHECK_NULL/NOT_NULL is back. Created 5 years, 10 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 | « test/cctest/cctest.gyp ('k') | test/cctest/compiler/codegen-tester.cc » ('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_CCTEST_COMPILER_CODEGEN_TESTER_H_ 5 #ifndef V8_CCTEST_COMPILER_CODEGEN_TESTER_H_
6 #define V8_CCTEST_COMPILER_CODEGEN_TESTER_H_ 6 #define V8_CCTEST_COMPILER_CODEGEN_TESTER_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/compiler/instruction-selector.h" 10 #include "src/compiler/instruction-selector.h"
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 325
326 private: 326 private:
327 BinopGen<int32_t>* gen; 327 BinopGen<int32_t>* gen;
328 int32_t input_a; 328 int32_t input_a;
329 int32_t input_b; 329 int32_t input_b;
330 330
331 void Run(RawMachineAssemblerTester<int32_t>* m); 331 void Run(RawMachineAssemblerTester<int32_t>* m);
332 void RunLeft(RawMachineAssemblerTester<int32_t>* m); 332 void RunLeft(RawMachineAssemblerTester<int32_t>* m);
333 void RunRight(RawMachineAssemblerTester<int32_t>* m); 333 void RunRight(RawMachineAssemblerTester<int32_t>* m);
334 }; 334 };
335
336 // TODO(bmeurer): Drop this crap once we switch to GTest/Gmock.
337 static inline void CheckDoubleEq(volatile double x, volatile double y) {
338 if (std::isnan(x)) {
339 CHECK(std::isnan(y));
340 } else {
341 CHECK_EQ(x, y);
342 }
343 }
344
335 } // namespace compiler 345 } // namespace compiler
336 } // namespace internal 346 } // namespace internal
337 } // namespace v8 347 } // namespace v8
338 348
339 #endif // V8_CCTEST_COMPILER_CODEGEN_TESTER_H_ 349 #endif // V8_CCTEST_COMPILER_CODEGEN_TESTER_H_
OLDNEW
« no previous file with comments | « test/cctest/cctest.gyp ('k') | test/cctest/compiler/codegen-tester.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698