| OLD | NEW |
| 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 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 // Extra POSIX/ANSI routines for Win32 when when using Visual Studio C++. Please | 38 // Extra POSIX/ANSI routines for Win32 when when using Visual Studio C++. Please |
| 39 // refer to The Open Group Base Specification for specification of the correct | 39 // refer to The Open Group Base Specification for specification of the correct |
| 40 // semantics for these functions. | 40 // semantics for these functions. |
| 41 // (http://www.opengroup.org/onlinepubs/000095399/) | 41 // (http://www.opengroup.org/onlinepubs/000095399/) |
| 42 #ifdef _MSC_VER | 42 #ifdef _MSC_VER |
| 43 | 43 |
| 44 namespace v8 { | 44 namespace v8 { |
| 45 namespace internal { | 45 namespace internal { |
| 46 | 46 |
| 47 intptr_t OS::MaxVirtualMemory() { | |
| 48 return 0; | |
| 49 } | |
| 50 | |
| 51 | |
| 52 // Test for finite value - usually defined in math.h | 47 // Test for finite value - usually defined in math.h |
| 53 int isfinite(double x) { | 48 int isfinite(double x) { |
| 54 return _finite(x); | 49 return _finite(x); |
| 55 } | 50 } |
| 56 | 51 |
| 57 } // namespace v8 | 52 } // namespace v8 |
| 58 } // namespace internal | 53 } // namespace internal |
| 59 | 54 |
| 60 // Test for a NaN (not a number) value - usually defined in math.h | 55 // Test for a NaN (not a number) value - usually defined in math.h |
| 61 int isnan(double x) { | 56 int isnan(double x) { |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 // Generate a pseudo-random number in the range 0-2^31-1. Usually | 162 // Generate a pseudo-random number in the range 0-2^31-1. Usually |
| 168 // defined in stdlib.h. Missing in both Microsoft Visual Studio C++ and MinGW. | 163 // defined in stdlib.h. Missing in both Microsoft Visual Studio C++ and MinGW. |
| 169 int random() { | 164 int random() { |
| 170 return rand(); | 165 return rand(); |
| 171 } | 166 } |
| 172 | 167 |
| 173 | 168 |
| 174 namespace v8 { | 169 namespace v8 { |
| 175 namespace internal { | 170 namespace internal { |
| 176 | 171 |
| 172 intptr_t OS::MaxVirtualMemory() { |
| 173 return 0; |
| 174 } |
| 175 |
| 176 |
| 177 double ceiling(double x) { | 177 double ceiling(double x) { |
| 178 return ceil(x); | 178 return ceil(x); |
| 179 } | 179 } |
| 180 | 180 |
| 181 | 181 |
| 182 static Mutex* limit_mutex = NULL; | 182 static Mutex* limit_mutex = NULL; |
| 183 | 183 |
| 184 #if defined(V8_TARGET_ARCH_IA32) | 184 #if defined(V8_TARGET_ARCH_IA32) |
| 185 static OS::MemCopyFunction memcopy_function = NULL; | 185 static OS::MemCopyFunction memcopy_function = NULL; |
| 186 static Mutex* memcopy_function_mutex = OS::CreateMutex(); | 186 static Mutex* memcopy_function_mutex = OS::CreateMutex(); |
| (...skipping 1821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2008 | 2008 |
| 2009 void Sampler::Stop() { | 2009 void Sampler::Stop() { |
| 2010 ASSERT(IsActive()); | 2010 ASSERT(IsActive()); |
| 2011 SamplerThread::RemoveActiveSampler(this); | 2011 SamplerThread::RemoveActiveSampler(this); |
| 2012 SetActive(false); | 2012 SetActive(false); |
| 2013 } | 2013 } |
| 2014 | 2014 |
| 2015 #endif // ENABLE_LOGGING_AND_PROFILING | 2015 #endif // ENABLE_LOGGING_AND_PROFILING |
| 2016 | 2016 |
| 2017 } } // namespace v8::internal | 2017 } } // namespace v8::internal |
| OLD | NEW |