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

Side by Side Diff: test/cctest/cctest.h

Issue 1092353002: [strong] Disallow implicit conversions for binary arithmetic operations (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase :( 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
OLDNEW
1 // Copyright 2008 the V8 project authors. All rights reserved. 1 // Copyright 2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 19 matching lines...) Expand all
30 30
31 #include "src/v8.h" 31 #include "src/v8.h"
32 32
33 #ifndef TEST 33 #ifndef TEST
34 #define TEST(Name) \ 34 #define TEST(Name) \
35 static void Test##Name(); \ 35 static void Test##Name(); \
36 CcTest register_test_##Name(Test##Name, __FILE__, #Name, NULL, true, true); \ 36 CcTest register_test_##Name(Test##Name, __FILE__, #Name, NULL, true, true); \
37 static void Test##Name() 37 static void Test##Name()
38 #endif 38 #endif
39 39
40 #ifndef TEST_WITH_STRONG
rossberg 2015/04/23 13:29:37 I'd prefer to move this elsewhere, it is a bit too
conradw 2015/04/23 14:51:55 Done.
41 #define TEST_WITH_STRONG(Name) \
42 static void Test##Name(); \
43 static void TestWithStrong##Name(LanguageMode language_mode); \
44 CcTest register_test_##Name(Test##Name, __FILE__, #Name, NULL, true, true); \
45 static void Test##Name() { \
46 TestWithStrong##Name(LanguageMode::SLOPPY); \
47 TestWithStrong##Name(LanguageMode::STRONG); \
48 } \
49 static void TestWithStrong##Name(LanguageMode language_mode)
50 #endif
51
40 #ifndef UNINITIALIZED_TEST 52 #ifndef UNINITIALIZED_TEST
41 #define UNINITIALIZED_TEST(Name) \ 53 #define UNINITIALIZED_TEST(Name) \
42 static void Test##Name(); \ 54 static void Test##Name(); \
43 CcTest register_test_##Name(Test##Name, __FILE__, #Name, NULL, true, false); \ 55 CcTest register_test_##Name(Test##Name, __FILE__, #Name, NULL, true, false); \
44 static void Test##Name() 56 static void Test##Name()
45 #endif 57 #endif
46 58
47 #ifndef DEPENDENT_TEST 59 #ifndef DEPENDENT_TEST
48 #define DEPENDENT_TEST(Name, Dep) \ 60 #define DEPENDENT_TEST(Name, Dep) \
49 static void Test##Name(); \ 61 static void Test##Name(); \
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 HandleAndZoneScope() {} 618 HandleAndZoneScope() {}
607 619
608 // Prefixing the below with main_ reduces a lot of naming clashes. 620 // Prefixing the below with main_ reduces a lot of naming clashes.
609 i::Zone* main_zone() { return &main_zone_; } 621 i::Zone* main_zone() { return &main_zone_; }
610 622
611 private: 623 private:
612 i::Zone main_zone_; 624 i::Zone main_zone_;
613 }; 625 };
614 626
615 #endif // ifndef CCTEST_H_ 627 #endif // ifndef CCTEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698