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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 | 202 |
203 static void SetUp(PartOfTest part); | 203 static void SetUp(PartOfTest part); |
204 static void RunAllTests(); | 204 static void RunAllTests(); |
205 static void TearDown(); | 205 static void TearDown(); |
206 // This method switches threads if we are running the Threading test. | 206 // This method switches threads if we are running the Threading test. |
207 // Otherwise it does nothing. | 207 // Otherwise it does nothing. |
208 static void Fuzz(); | 208 static void Fuzz(); |
209 | 209 |
210 private: | 210 private: |
211 explicit ApiTestFuzzer(int num) | 211 explicit ApiTestFuzzer(int num) |
212 : Thread("ApiTestFuzzer"), | 212 : Thread(Options("ApiTestFuzzer")), |
213 test_number_(num), | 213 test_number_(num), |
214 gate_(0), | 214 gate_(0), |
215 active_(true) { | 215 active_(true) {} |
216 } | |
217 ~ApiTestFuzzer() {} | 216 ~ApiTestFuzzer() {} |
218 | 217 |
219 static bool fuzzing_; | 218 static bool fuzzing_; |
220 static int tests_being_run_; | 219 static int tests_being_run_; |
221 static int current_; | 220 static int current_; |
222 static int active_tests_; | 221 static int active_tests_; |
223 static bool NextThread(); | 222 static bool NextThread(); |
224 int test_number_; | 223 int test_number_; |
225 v8::base::Semaphore gate_; | 224 v8::base::Semaphore gate_; |
226 bool active_; | 225 bool active_; |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
557 HandleAndZoneScope() : main_zone_(main_isolate()) {} | 556 HandleAndZoneScope() : main_zone_(main_isolate()) {} |
558 | 557 |
559 // Prefixing the below with main_ reduces a lot of naming clashes. | 558 // Prefixing the below with main_ reduces a lot of naming clashes. |
560 i::Zone* main_zone() { return &main_zone_; } | 559 i::Zone* main_zone() { return &main_zone_; } |
561 | 560 |
562 private: | 561 private: |
563 i::Zone main_zone_; | 562 i::Zone main_zone_; |
564 }; | 563 }; |
565 | 564 |
566 #endif // ifndef CCTEST_H_ | 565 #endif // ifndef CCTEST_H_ |
OLD | NEW |