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

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

Issue 6529055: [Isolates] Merge crankshaft (r5922 from bleeding_edge). (Closed)
Patch Set: Win32 port Created 9 years, 10 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
« no previous file with comments | « src/platform.h ('k') | src/platform-linux.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 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 #include <strings.h> // index 46 #include <strings.h> // index
47 #include <errno.h> 47 #include <errno.h>
48 #include <stdarg.h> 48 #include <stdarg.h>
49 #include <limits.h> 49 #include <limits.h>
50 50
51 #undef MAP_TYPE 51 #undef MAP_TYPE
52 52
53 #include "v8.h" 53 #include "v8.h"
54 54
55 #include "platform.h" 55 #include "platform.h"
56 #include "vm-state-inl.h"
56 57
57 58
58 namespace v8 { 59 namespace v8 {
59 namespace internal { 60 namespace internal {
60 61
61 // 0 is never a valid thread id on FreeBSD since tids and pids share a 62 // 0 is never a valid thread id on FreeBSD since tids and pids share a
62 // name space and pid 0 is used to kill the group (see man 2 kill). 63 // name space and pid 0 is used to kill the group (see man 2 kill).
63 static const pthread_t kNoThread = (pthread_t) 0; 64 static const pthread_t kNoThread = (pthread_t) 0;
64 65
65 66
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 PlatformData() { 613 PlatformData() {
613 signal_handler_installed_ = false; 614 signal_handler_installed_ = false;
614 } 615 }
615 616
616 bool signal_handler_installed_; 617 bool signal_handler_installed_;
617 struct sigaction old_signal_handler_; 618 struct sigaction old_signal_handler_;
618 struct itimerval old_timer_value_; 619 struct itimerval old_timer_value_;
619 }; 620 };
620 621
621 622
622 Sampler::Sampler(Isolate* isolate, int interval, bool profiling) 623 Sampler::Sampler(Isolate* isolate, int interval)
623 : isolate_(isolate), 624 : isolate_(isolate),
624 interval_(interval), 625 interval_(interval),
625 profiling_(profiling), 626 profiling_(false),
626 synchronous_(profiling),
627 active_(false), 627 active_(false),
628 samples_taken_(0) { 628 samples_taken_(0) {
629 data_ = new PlatformData(); 629 data_ = new PlatformData();
630 } 630 }
631 631
632 632
633 Sampler::~Sampler() { 633 Sampler::~Sampler() {
634 delete data_; 634 delete data_;
635 } 635 }
636 636
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 } 671 }
672 672
673 // This sampler is no longer the active sampler. 673 // This sampler is no longer the active sampler.
674 active_sampler_ = NULL; 674 active_sampler_ = NULL;
675 active_ = false; 675 active_ = false;
676 } 676 }
677 677
678 #endif // ENABLE_LOGGING_AND_PROFILING 678 #endif // ENABLE_LOGGING_AND_PROFILING
679 679
680 } } // namespace v8::internal 680 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform.h ('k') | src/platform-linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698