| OLD | NEW | 
|---|
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 HEAP_HEAP_TESTER_H_ | 5 #ifndef HEAP_HEAP_TESTER_H_ | 
| 6 #define HEAP_HEAP_TESTER_H_ | 6 #define HEAP_HEAP_TESTER_H_ | 
| 7 | 7 | 
| 8 #include "src/handles.h" | 8 #include "src/handles.h" | 
| 9 #include "src/heap/spaces.h" | 9 #include "src/heap/spaces.h" | 
| 10 | 10 | 
| (...skipping 14 matching lines...) Expand all  Loading... | 
| 25   V(ObjectGroups)                                         \ | 25   V(ObjectGroups)                                         \ | 
| 26   V(Promotion)                                            \ | 26   V(Promotion)                                            \ | 
| 27   V(Regression39128)                                      \ | 27   V(Regression39128)                                      \ | 
| 28   V(ResetWeakHandle)                                      \ | 28   V(ResetWeakHandle)                                      \ | 
| 29   V(StressHandles)                                        \ | 29   V(StressHandles)                                        \ | 
| 30   V(TestMemoryReducerSampleJsCalls)                       \ | 30   V(TestMemoryReducerSampleJsCalls)                       \ | 
| 31   V(TestSizeOfObjects)                                    \ | 31   V(TestSizeOfObjects)                                    \ | 
| 32   V(Regress587004)                                        \ | 32   V(Regress587004)                                        \ | 
| 33   V(Regress538257)                                        \ | 33   V(Regress538257)                                        \ | 
| 34   V(Regress589413)                                        \ | 34   V(Regress589413)                                        \ | 
|  | 35   V(Regress658718)                                        \ | 
| 35   V(WriteBarriersInCopyJSObject) | 36   V(WriteBarriersInCopyJSObject) | 
| 36 | 37 | 
| 37 #define HEAP_TEST(Name)                                                       \ | 38 #define HEAP_TEST(Name)                                                       \ | 
| 38   CcTest register_test_##Name(v8::internal::HeapTester::Test##Name, __FILE__, \ | 39   CcTest register_test_##Name(v8::internal::HeapTester::Test##Name, __FILE__, \ | 
| 39                               #Name, true, true);                             \ | 40                               #Name, true, true);                             \ | 
| 40   void v8::internal::HeapTester::Test##Name() | 41   void v8::internal::HeapTester::Test##Name() | 
| 41 | 42 | 
|  | 43 #define UNINITIALIZED_HEAP_TEST(Name)                                         \ | 
|  | 44   CcTest register_test_##Name(v8::internal::HeapTester::Test##Name, __FILE__, \ | 
|  | 45                               #Name, true, false);                            \ | 
|  | 46   void v8::internal::HeapTester::Test##Name() | 
|  | 47 | 
| 42 #define THREADED_HEAP_TEST(Name)                                             \ | 48 #define THREADED_HEAP_TEST(Name)                                             \ | 
| 43   RegisterThreadedTest register_##Name(v8::internal::HeapTester::Test##Name, \ | 49   RegisterThreadedTest register_##Name(v8::internal::HeapTester::Test##Name, \ | 
| 44                                        #Name);                               \ | 50                                        #Name);                               \ | 
| 45   /* */ HEAP_TEST(Name) | 51   /* */ HEAP_TEST(Name) | 
| 46 | 52 | 
| 47 | 53 | 
| 48 namespace v8 { | 54 namespace v8 { | 
| 49 namespace internal { | 55 namespace internal { | 
| 50 | 56 | 
| 51 class HeapTester { | 57 class HeapTester { | 
| 52  public: | 58  public: | 
| 53 #define DECLARE_STATIC(Name) static void Test##Name(); | 59 #define DECLARE_STATIC(Name) static void Test##Name(); | 
| 54 | 60 | 
| 55   HEAP_TEST_METHODS(DECLARE_STATIC) | 61   HEAP_TEST_METHODS(DECLARE_STATIC) | 
| 56 #undef HEAP_TEST_METHODS | 62 #undef HEAP_TEST_METHODS | 
| 57 | 63 | 
| 58   /* test-alloc.cc */ | 64   /* test-alloc.cc */ | 
| 59   static AllocationResult AllocateAfterFailures(); | 65   static AllocationResult AllocateAfterFailures(); | 
| 60   static Handle<Object> TestAllocateAfterFailures(); | 66   static Handle<Object> TestAllocateAfterFailures(); | 
| 61 | 67 | 
| 62   /* test-api.cc */ | 68   /* test-api.cc */ | 
| 63   static void ResetWeakHandle(bool global_gc); | 69   static void ResetWeakHandle(bool global_gc); | 
| 64 }; | 70 }; | 
| 65 | 71 | 
| 66 }  // namespace internal | 72 }  // namespace internal | 
| 67 }  // namespace v8 | 73 }  // namespace v8 | 
| 68 | 74 | 
| 69 #endif  // HEAP_HEAP_TESTER_H_ | 75 #endif  // HEAP_HEAP_TESTER_H_ | 
| OLD | NEW | 
|---|