Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(341)

Side by Side Diff: test/cctest/test-log.cc

Issue 6788009: Revert "Never use classic code generator." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « test/cctest/test-heap.cc ('k') | tools/test.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 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 5 #ifdef ENABLE_LOGGING_AND_PROFILING
6 6
7 #ifdef __linux__ 7 #ifdef __linux__
8 #include <math.h> 8 #include <math.h>
9 #include <pthread.h> 9 #include <pthread.h>
10 #include <signal.h> 10 #include <signal.h>
11 #include <unistd.h> 11 #include <unistd.h>
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 CHECK_NE(NULL, matcher->Find(code_creation)); 287 CHECK_NE(NULL, matcher->Find(code_creation));
288 const char* tick = "\ntick,"; 288 const char* tick = "\ntick,";
289 const bool ticks_found = matcher->Find(tick) != NULL; 289 const bool ticks_found = matcher->Find(tick) != NULL;
290 CHECK_EQ(LoggerTestHelper::has_samples_taken(), ticks_found); 290 CHECK_EQ(LoggerTestHelper::has_samples_taken(), ticks_found);
291 } 291 }
292 292
293 293
294 TEST(ProfLazyMode) { 294 TEST(ProfLazyMode) {
295 ScopedLoggerInitializer initialize_logger(true); 295 ScopedLoggerInitializer initialize_logger(true);
296 296
297 if (i::FLAG_always_full_compiler) return; 297 if (!i::V8::UseCrankshaft()) return;
298 298
299 // No sampling should happen prior to resuming profiler unless we 299 // No sampling should happen prior to resuming profiler unless we
300 // are runtime profiling. 300 // are runtime profiling.
301 CHECK(i::RuntimeProfiler::IsEnabled() || 301 CHECK(i::RuntimeProfiler::IsEnabled() ||
302 !LoggerTestHelper::IsSamplerActive()); 302 !LoggerTestHelper::IsSamplerActive());
303 303
304 LogBufferMatcher matcher; 304 LogBufferMatcher matcher;
305 // Nothing must be logged until profiling is resumed. 305 // Nothing must be logged until profiling is resumed.
306 CHECK_EQ(0, matcher.log_pos()); 306 CHECK_EQ(0, matcher.log_pos());
307 307
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after
1188 // Make sure that all log data is written prior crash due to CHECK failure. 1188 // Make sure that all log data is written prior crash due to CHECK failure.
1189 fflush(stdout); 1189 fflush(stdout);
1190 CHECK(results_equal); 1190 CHECK(results_equal);
1191 1191
1192 env->Exit(); 1192 env->Exit();
1193 LOGGER->TearDown(); 1193 LOGGER->TearDown();
1194 i::FLAG_always_compact = saved_always_compact; 1194 i::FLAG_always_compact = saved_always_compact;
1195 } 1195 }
1196 1196
1197 #endif // ENABLE_LOGGING_AND_PROFILING 1197 #endif // ENABLE_LOGGING_AND_PROFILING
OLDNEW
« no previous file with comments | « test/cctest/test-heap.cc ('k') | tools/test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698