OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 the V8 project authors. All rights reserved. |
2 // | 2 // |
3 // Tests of logging functions from log.h | 3 // Tests of logging functions from log.h |
4 | 4 |
5 #ifdef ENABLE_LOGGING_AND_PROFILING | |
6 | |
7 #ifdef __linux__ | 5 #ifdef __linux__ |
8 #include <math.h> | 6 #include <math.h> |
9 #include <pthread.h> | 7 #include <pthread.h> |
10 #include <signal.h> | 8 #include <signal.h> |
11 #include <unistd.h> | 9 #include <unistd.h> |
12 #endif // __linux__ | 10 #endif // __linux__ |
13 | 11 |
14 #include "v8.h" | 12 #include "v8.h" |
15 #include "log.h" | 13 #include "log.h" |
16 #include "cpu-profiler.h" | 14 #include "cpu-profiler.h" |
(...skipping 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1082 iter = iter->get_next(); | 1080 iter = iter->get_next(); |
1083 } | 1081 } |
1084 // Make sure that all log data is written prior crash due to CHECK failure. | 1082 // Make sure that all log data is written prior crash due to CHECK failure. |
1085 fflush(stdout); | 1083 fflush(stdout); |
1086 CHECK(results_equal); | 1084 CHECK(results_equal); |
1087 | 1085 |
1088 env->Exit(); | 1086 env->Exit(); |
1089 LOGGER->TearDown(); | 1087 LOGGER->TearDown(); |
1090 i::FLAG_always_compact = saved_always_compact; | 1088 i::FLAG_always_compact = saved_always_compact; |
1091 } | 1089 } |
1092 | |
1093 #endif // ENABLE_LOGGING_AND_PROFILING | |
OLD | NEW |