| 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 |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 *GetGlobalProperty("JSTrace"))))); | 221 *GetGlobalProperty("JSTrace"))))); |
| 222 v8::internal::Code* js_trace_code = js_trace->code(); | 222 v8::internal::Code* js_trace_code = js_trace->code(); |
| 223 CheckRetAddrIsInFunction( | 223 CheckRetAddrIsInFunction( |
| 224 reinterpret_cast<unsigned int>(sample.stack[0]), | 224 reinterpret_cast<unsigned int>(sample.stack[0]), |
| 225 reinterpret_cast<unsigned int>(js_trace_code->instruction_start()), | 225 reinterpret_cast<unsigned int>(js_trace_code->instruction_start()), |
| 226 js_trace_code->instruction_size()); | 226 js_trace_code->instruction_size()); |
| 227 CHECK_EQ(0, sample.stack[1]); | 227 CHECK_EQ(0, sample.stack[1]); |
| 228 } | 228 } |
| 229 | 229 |
| 230 #endif // ENABLE_LOGGING_AND_PROFILING | 230 #endif // ENABLE_LOGGING_AND_PROFILING |
| 231 |
| OLD | NEW |