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 profiler-related functions from log.h | 3 // Tests of profiler-related functions from log.h |
4 | 4 |
5 #ifdef ENABLE_LOGGING_AND_PROFILING | 5 #ifdef ENABLE_LOGGING_AND_PROFILING |
6 | 6 |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 | 8 |
9 #include "v8.h" | 9 #include "v8.h" |
10 | 10 |
11 #include "codegen.h" | 11 #include "codegen.h" |
12 #include "log.h" | 12 #include "log.h" |
13 #include "top.h" | 13 #include "top.h" |
14 #include "cctest.h" | 14 #include "cctest.h" |
15 #include "disassembler.h" | 15 #include "disassembler.h" |
| 16 #include "register-allocator-inl.h" |
16 | 17 |
17 using v8::Function; | 18 using v8::Function; |
18 using v8::Local; | 19 using v8::Local; |
19 using v8::Object; | 20 using v8::Object; |
20 using v8::Script; | 21 using v8::Script; |
21 using v8::String; | 22 using v8::String; |
22 using v8::Value; | 23 using v8::Value; |
23 | 24 |
24 using v8::internal::byte; | 25 using v8::internal::byte; |
25 using v8::internal::Address; | 26 using v8::internal::Address; |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 TEST(PureCStackTrace) { | 323 TEST(PureCStackTrace) { |
323 TickSample sample; | 324 TickSample sample; |
324 StackTracer tracer(reinterpret_cast<uintptr_t>(&sample)); | 325 StackTracer tracer(reinterpret_cast<uintptr_t>(&sample)); |
325 InitTraceEnv(&tracer, &sample); | 326 InitTraceEnv(&tracer, &sample); |
326 // Check that sampler doesn't crash | 327 // Check that sampler doesn't crash |
327 CHECK_EQ(10, CFunc(10)); | 328 CHECK_EQ(10, CFunc(10)); |
328 } | 329 } |
329 | 330 |
330 | 331 |
331 #endif // ENABLE_LOGGING_AND_PROFILING | 332 #endif // ENABLE_LOGGING_AND_PROFILING |
OLD | NEW |