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

Side by Side Diff: src/platform-solaris.cc

Issue 12475016: Maintain API compatibility with older versions of V8. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 9 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 | « src/platform-openbsd.cc ('k') | src/platform-win32.cc » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 664 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 } 675 }
676 if (v8::Locker::IsActive() && 676 if (v8::Locker::IsActive() &&
677 !isolate->thread_manager()->IsLockedByCurrentThread()) { 677 !isolate->thread_manager()->IsLockedByCurrentThread()) {
678 return; 678 return;
679 } 679 }
680 680
681 Sampler* sampler = isolate->logger()->sampler(); 681 Sampler* sampler = isolate->logger()->sampler();
682 if (sampler == NULL || !sampler->IsActive()) return; 682 if (sampler == NULL || !sampler->IsActive()) return;
683 683
684 TickSample sample_obj; 684 TickSample sample_obj;
685 TickSample* sample = isolate->cpu_profiler()->TickSampleEvent(); 685 TickSample* sample = CpuProfiler::TickSampleEvent(isolate);
686 if (sample == NULL) sample = &sample_obj; 686 if (sample == NULL) sample = &sample_obj;
687 687
688 // Extracting the sample from the context is extremely machine dependent. 688 // Extracting the sample from the context is extremely machine dependent.
689 ucontext_t* ucontext = reinterpret_cast<ucontext_t*>(context); 689 ucontext_t* ucontext = reinterpret_cast<ucontext_t*>(context);
690 mcontext_t& mcontext = ucontext->uc_mcontext; 690 mcontext_t& mcontext = ucontext->uc_mcontext;
691 sample->state = isolate->current_vm_state(); 691 sample->state = isolate->current_vm_state();
692 692
693 sample->pc = reinterpret_cast<Address>(mcontext.gregs[REG_PC]); 693 sample->pc = reinterpret_cast<Address>(mcontext.gregs[REG_PC]);
694 sample->sp = reinterpret_cast<Address>(mcontext.gregs[REG_SP]); 694 sample->sp = reinterpret_cast<Address>(mcontext.gregs[REG_SP]);
695 sample->fp = reinterpret_cast<Address>(mcontext.gregs[REG_FP]); 695 sample->fp = reinterpret_cast<Address>(mcontext.gregs[REG_FP]);
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
866 } 866 }
867 867
868 868
869 void Sampler::Stop() { 869 void Sampler::Stop() {
870 ASSERT(IsActive()); 870 ASSERT(IsActive());
871 SignalSender::RemoveActiveSampler(this); 871 SignalSender::RemoveActiveSampler(this);
872 SetActive(false); 872 SetActive(false);
873 } 873 }
874 874
875 } } // namespace v8::internal 875 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform-openbsd.cc ('k') | src/platform-win32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698