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

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

Issue 7350014: Remove the ability to compile without logging and profiling (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed review comments Created 9 years, 5 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 554 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 CHECK(result == -1 && errno == EINTR); // Signal caused spurious wakeup. 565 CHECK(result == -1 && errno == EINTR); // Signal caused spurious wakeup.
566 } 566 }
567 } 567 }
568 568
569 569
570 Semaphore* OS::CreateSemaphore(int count) { 570 Semaphore* OS::CreateSemaphore(int count) {
571 return new SolarisSemaphore(count); 571 return new SolarisSemaphore(count);
572 } 572 }
573 573
574 574
575 #ifdef ENABLE_LOGGING_AND_PROFILING
576
577 static pthread_t GetThreadID() { 575 static pthread_t GetThreadID() {
578 return pthread_self(); 576 return pthread_self();
579 } 577 }
580 578
581 static void ProfilerSignalHandler(int signal, siginfo_t* info, void* context) { 579 static void ProfilerSignalHandler(int signal, siginfo_t* info, void* context) {
582 USE(info); 580 USE(info);
583 if (signal != SIGPROF) return; 581 if (signal != SIGPROF) return;
584 Isolate* isolate = Isolate::UncheckedCurrent(); 582 Isolate* isolate = Isolate::UncheckedCurrent();
585 if (isolate == NULL || !isolate->IsInitialized() || !isolate->IsInUse()) { 583 if (isolate == NULL || !isolate->IsInitialized() || !isolate->IsInUse()) {
586 // We require a fully initialized and entered isolate. 584 // We require a fully initialized and entered isolate.
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
793 SignalSender::AddActiveSampler(this); 791 SignalSender::AddActiveSampler(this);
794 } 792 }
795 793
796 794
797 void Sampler::Stop() { 795 void Sampler::Stop() {
798 ASSERT(IsActive()); 796 ASSERT(IsActive());
799 SignalSender::RemoveActiveSampler(this); 797 SignalSender::RemoveActiveSampler(this);
800 SetActive(false); 798 SetActive(false);
801 } 799 }
802 800
803 #endif // ENABLE_LOGGING_AND_PROFILING
804
805 } } // namespace v8::internal 801 } } // 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