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 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-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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 #include <errno.h> 45 #include <errno.h>
46 #include <ieeefp.h> // finite() 46 #include <ieeefp.h> // finite()
47 #include <signal.h> // sigemptyset(), etc 47 #include <signal.h> // sigemptyset(), etc
48 48
49 49
50 #undef MAP_TYPE 50 #undef MAP_TYPE
51 51
52 #include "v8.h" 52 #include "v8.h"
53 53
54 #include "platform.h" 54 #include "platform.h"
55 #include "vm-state-inl.h"
55 56
56 57
57 // It seems there is a bug in some Solaris distributions (experienced in 58 // It seems there is a bug in some Solaris distributions (experienced in
58 // SunOS 5.10 Generic_141445-09) which make it difficult or impossible to 59 // SunOS 5.10 Generic_141445-09) which make it difficult or impossible to
59 // access signbit() despite the availability of other C99 math functions. 60 // access signbit() despite the availability of other C99 math functions.
60 #ifndef signbit 61 #ifndef signbit
61 // Test sign - usually defined in math.h 62 // Test sign - usually defined in math.h
62 int signbit(double x) { 63 int signbit(double x) {
63 // We need to take care of the special case of both positive and negative 64 // We need to take care of the special case of both positive and negative
64 // versions of zero. 65 // versions of zero.
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 PlatformData() { 598 PlatformData() {
598 signal_handler_installed_ = false; 599 signal_handler_installed_ = false;
599 } 600 }
600 601
601 bool signal_handler_installed_; 602 bool signal_handler_installed_;
602 struct sigaction old_signal_handler_; 603 struct sigaction old_signal_handler_;
603 struct itimerval old_timer_value_; 604 struct itimerval old_timer_value_;
604 }; 605 };
605 606
606 607
607 Sampler::Sampler(Isolate* isolate, int interval, bool profiling) 608 Sampler::Sampler(Isolate* isolate, int interval)
608 : isolate_(isolate), 609 : isolate_(isolate),
609 interval_(interval), 610 interval_(interval),
610 profiling_(profiling), 611 profiling_(false),
611 synchronous_(profiling),
612 active_(false), 612 active_(false),
613 samples_taken_(0) { 613 samples_taken_(0) {
614 data_ = new PlatformData(); 614 data_ = new PlatformData();
615 } 615 }
616 616
617 617
618 Sampler::~Sampler() { 618 Sampler::~Sampler() {
619 delete data_; 619 delete data_;
620 } 620 }
621 621
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 } 656 }
657 657
658 // This sampler is no longer the active sampler. 658 // This sampler is no longer the active sampler.
659 active_sampler_ = NULL; 659 active_sampler_ = NULL;
660 active_ = false; 660 active_ = false;
661 } 661 }
662 662
663 #endif // ENABLE_LOGGING_AND_PROFILING 663 #endif // ENABLE_LOGGING_AND_PROFILING
664 664
665 } } // namespace v8::internal 665 } } // 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