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 29 matching lines...) Expand all Loading... |
40 #include <crtdbg.h> | 40 #include <crtdbg.h> |
41 #endif | 41 #endif |
42 #endif | 42 #endif |
43 | 43 |
44 enum InitializationState {kUnset, kUnintialized, kInitialized}; | 44 enum InitializationState {kUnset, kUnintialized, kInitialized}; |
45 static InitializationState initialization_state_ = kUnset; | 45 static InitializationState initialization_state_ = kUnset; |
46 static bool disable_automatic_dispose_ = false; | 46 static bool disable_automatic_dispose_ = false; |
47 | 47 |
48 CcTest* CcTest::last_ = NULL; | 48 CcTest* CcTest::last_ = NULL; |
49 bool CcTest::initialize_called_ = false; | 49 bool CcTest::initialize_called_ = false; |
| 50 |
| 51 // Don't generate simulator test traces by default. |
| 52 bool CcTest::sim_test_trace_ = false; |
| 53 |
50 v8::base::Atomic32 CcTest::isolate_used_ = 0; | 54 v8::base::Atomic32 CcTest::isolate_used_ = 0; |
51 v8::ArrayBuffer::Allocator* CcTest::allocator_ = NULL; | 55 v8::ArrayBuffer::Allocator* CcTest::allocator_ = NULL; |
52 v8::Isolate* CcTest::isolate_ = NULL; | 56 v8::Isolate* CcTest::isolate_ = NULL; |
53 | 57 |
54 CcTest::CcTest(TestFunction* callback, const char* file, const char* name, | 58 CcTest::CcTest(TestFunction* callback, const char* file, const char* name, |
55 bool enabled, bool initialize) | 59 bool enabled, bool initialize) |
56 : callback_(callback), | 60 : callback_(callback), |
57 name_(name), | 61 name_(name), |
58 enabled_(enabled), | 62 enabled_(enabled), |
59 initialize_(initialize), | 63 initialize_(initialize), |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 CcTest::TearDown(); | 331 CcTest::TearDown(); |
328 // TODO(svenpanne) See comment above. | 332 // TODO(svenpanne) See comment above. |
329 // if (!disable_automatic_dispose_) v8::V8::Dispose(); | 333 // if (!disable_automatic_dispose_) v8::V8::Dispose(); |
330 v8::V8::ShutdownPlatform(); | 334 v8::V8::ShutdownPlatform(); |
331 delete platform; | 335 delete platform; |
332 return 0; | 336 return 0; |
333 } | 337 } |
334 | 338 |
335 RegisterThreadedTest *RegisterThreadedTest::first_ = NULL; | 339 RegisterThreadedTest *RegisterThreadedTest::first_ = NULL; |
336 int RegisterThreadedTest::count_ = 0; | 340 int RegisterThreadedTest::count_ = 0; |
OLD | NEW |