| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 sample.pc = mcontext->__ss.__eip; | 500 sample.pc = mcontext->__ss.__eip; |
| 501 sample.sp = mcontext->__ss.__esp; | 501 sample.sp = mcontext->__ss.__esp; |
| 502 sample.fp = mcontext->__ss.__ebp; | 502 sample.fp = mcontext->__ss.__ebp; |
| 503 #else // !__DARWIN_UNIX03 | 503 #else // !__DARWIN_UNIX03 |
| 504 sample.pc = mcontext->ss.eip; | 504 sample.pc = mcontext->ss.eip; |
| 505 sample.sp = mcontext->ss.esp; | 505 sample.sp = mcontext->ss.esp; |
| 506 sample.fp = mcontext->ss.ebp; | 506 sample.fp = mcontext->ss.ebp; |
| 507 #endif // __DARWIN_UNIX03 | 507 #endif // __DARWIN_UNIX03 |
| 508 #else | 508 #else |
| 509 #error Unsupported Mac OS X host architecture. | 509 #error Unsupported Mac OS X host architecture. |
| 510 #endif // V8_TARGET_ARCH_IA32 | 510 #endif // V8_HOST_ARCH_IA32 |
| 511 } | 511 } |
| 512 | 512 |
| 513 // We always sample the VM state. | 513 // We always sample the VM state. |
| 514 sample.state = Logger::state(); | 514 sample.state = Logger::state(); |
| 515 | 515 |
| 516 active_sampler_->Tick(&sample); | 516 active_sampler_->Tick(&sample); |
| 517 } | 517 } |
| 518 | 518 |
| 519 | 519 |
| 520 class Sampler::PlatformData : public Malloced { | 520 class Sampler::PlatformData : public Malloced { |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 576 } | 576 } |
| 577 | 577 |
| 578 // This sampler is no longer the active sampler. | 578 // This sampler is no longer the active sampler. |
| 579 active_sampler_ = NULL; | 579 active_sampler_ = NULL; |
| 580 active_ = false; | 580 active_ = false; |
| 581 } | 581 } |
| 582 | 582 |
| 583 #endif // ENABLE_LOGGING_AND_PROFILING | 583 #endif // ENABLE_LOGGING_AND_PROFILING |
| 584 | 584 |
| 585 } } // namespace v8::internal | 585 } } // namespace v8::internal |
| OLD | NEW |