OLD | NEW |
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 static void Test##Name() | 46 static void Test##Name() |
47 #endif | 47 #endif |
48 | 48 |
49 #ifndef DEPENDENT_TEST | 49 #ifndef DEPENDENT_TEST |
50 #define DEPENDENT_TEST(Name, Dep) \ | 50 #define DEPENDENT_TEST(Name, Dep) \ |
51 static void Test##Name(); \ | 51 static void Test##Name(); \ |
52 CcTest register_test_##Name(Test##Name, __FILE__, #Name, #Dep, true, true); \ | 52 CcTest register_test_##Name(Test##Name, __FILE__, #Name, #Dep, true, true); \ |
53 static void Test##Name() | 53 static void Test##Name() |
54 #endif | 54 #endif |
55 | 55 |
56 #ifndef UNINITIALIZED_DEPENDENT_TEST | |
57 #define UNINITIALIZED_DEPENDENT_TEST(Name, Dep) \ | |
58 static void Test##Name(); \ | |
59 CcTest register_test_##Name(Test##Name, __FILE__, #Name, #Dep, true, false); \ | |
60 static void Test##Name() | |
61 #endif | |
62 | |
63 #ifndef DISABLED_TEST | 56 #ifndef DISABLED_TEST |
64 #define DISABLED_TEST(Name) \ | 57 #define DISABLED_TEST(Name) \ |
65 static void Test##Name(); \ | 58 static void Test##Name(); \ |
66 CcTest register_test_##Name(Test##Name, __FILE__, #Name, NULL, false, true); \ | 59 CcTest register_test_##Name(Test##Name, __FILE__, #Name, NULL, false, true); \ |
67 static void Test##Name() | 60 static void Test##Name() |
68 #endif | 61 #endif |
69 | 62 |
70 #define EXTENSION_LIST(V) \ | 63 #define EXTENSION_LIST(V) \ |
71 V(GC_EXTENSION, "v8/gc") \ | 64 V(GC_EXTENSION, "v8/gc") \ |
72 V(PRINT_EXTENSION, "v8/print") \ | 65 V(PRINT_EXTENSION, "v8/print") \ |
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
563 HandleAndZoneScope() : main_zone_(main_isolate()) {} | 556 HandleAndZoneScope() : main_zone_(main_isolate()) {} |
564 | 557 |
565 // Prefixing the below with main_ reduces a lot of naming clashes. | 558 // Prefixing the below with main_ reduces a lot of naming clashes. |
566 i::Zone* main_zone() { return &main_zone_; } | 559 i::Zone* main_zone() { return &main_zone_; } |
567 | 560 |
568 private: | 561 private: |
569 i::Zone main_zone_; | 562 i::Zone main_zone_; |
570 }; | 563 }; |
571 | 564 |
572 #endif // ifndef CCTEST_H_ | 565 #endif // ifndef CCTEST_H_ |
OLD | NEW |