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

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

Issue 9959093: Merged r11194, r11198, r11201, r11214 into trunk branch. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 8 years, 8 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-posix.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 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 #include <sys/regset.h> 48 #include <sys/regset.h>
49 49
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-posix.h"
55 #include "platform.h" 56 #include "platform.h"
56 #include "v8threads.h" 57 #include "v8threads.h"
57 #include "vm-state-inl.h" 58 #include "vm-state-inl.h"
58 59
59 60
60 // It seems there is a bug in some Solaris distributions (experienced in 61 // It seems there is a bug in some Solaris distributions (experienced in
61 // SunOS 5.10 Generic_141445-09) which make it difficult or impossible to 62 // SunOS 5.10 Generic_141445-09) which make it difficult or impossible to
62 // access signbit() despite the availability of other C99 math functions. 63 // access signbit() despite the availability of other C99 math functions.
63 #ifndef signbit 64 #ifndef signbit
64 // Test sign - usually defined in math.h 65 // Test sign - usually defined in math.h
(...skipping 30 matching lines...) Expand all
95 // Convert the current time to a 64-bit integer first, before converting it 96 // Convert the current time to a 64-bit integer first, before converting it
96 // to an unsigned. Going directly will cause an overflow and the seed to be 97 // to an unsigned. Going directly will cause an overflow and the seed to be
97 // set to all ones. The seed will be identical for different instances that 98 // set to all ones. The seed will be identical for different instances that
98 // call this setup code within the same millisecond. 99 // call this setup code within the same millisecond.
99 uint64_t seed = static_cast<uint64_t>(TimeCurrentMillis()); 100 uint64_t seed = static_cast<uint64_t>(TimeCurrentMillis());
100 srandom(static_cast<unsigned int>(seed)); 101 srandom(static_cast<unsigned int>(seed));
101 limit_mutex = CreateMutex(); 102 limit_mutex = CreateMutex();
102 } 103 }
103 104
104 105
106 void OS::PostSetUp() {
107 // Math functions depend on CPU features therefore they are initialized after
108 // CPU.
109 MathSetup();
110 }
111
112
105 uint64_t OS::CpuFeaturesImpliedByPlatform() { 113 uint64_t OS::CpuFeaturesImpliedByPlatform() {
106 return 0; // Solaris runs on a lot of things. 114 return 0; // Solaris runs on a lot of things.
107 } 115 }
108 116
109 117
110 int OS::ActivationFrameAlignment() { 118 int OS::ActivationFrameAlignment() {
111 // GCC generates code that requires 16 byte alignment such as movdqa. 119 // GCC generates code that requires 16 byte alignment such as movdqa.
112 return Max(STACK_ALIGN, 16); 120 return Max(STACK_ALIGN, 16);
113 } 121 }
114 122
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after
878 } 886 }
879 887
880 888
881 void Sampler::Stop() { 889 void Sampler::Stop() {
882 ASSERT(IsActive()); 890 ASSERT(IsActive());
883 SignalSender::RemoveActiveSampler(this); 891 SignalSender::RemoveActiveSampler(this);
884 SetActive(false); 892 SetActive(false);
885 } 893 }
886 894
887 } } // namespace v8::internal 895 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform-posix.cc ('k') | src/platform-win32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698