OLD | NEW |
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 #include <signal.h> // sigemptyset(), etc | 46 #include <signal.h> // sigemptyset(), etc |
47 #include <sys/regset.h> | 47 #include <sys/regset.h> |
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 "v8threads.h" | 55 #include "v8threads.h" |
56 #include "vm-state-inl.h" | |
57 | 56 |
58 | 57 |
59 // 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 |
60 // 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 |
61 // access signbit() despite the availability of other C99 math functions. | 60 // access signbit() despite the availability of other C99 math functions. |
62 #ifndef signbit | 61 #ifndef signbit |
63 namespace std { | 62 namespace std { |
64 // Test sign - usually defined in math.h | 63 // Test sign - usually defined in math.h |
65 int signbit(double x) { | 64 int signbit(double x) { |
66 // We need to take care of the special case of both positive and negative | 65 // We need to take care of the special case of both positive and negative |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 return munmap(base, size) == 0; | 334 return munmap(base, size) == 0; |
336 } | 335 } |
337 | 336 |
338 | 337 |
339 bool VirtualMemory::HasLazyCommits() { | 338 bool VirtualMemory::HasLazyCommits() { |
340 // TODO(alph): implement for the platform. | 339 // TODO(alph): implement for the platform. |
341 return false; | 340 return false; |
342 } | 341 } |
343 | 342 |
344 } } // namespace v8::internal | 343 } } // namespace v8::internal |
OLD | NEW |