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

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

Issue 464015: Move function nan_value to POSIX platform file... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years 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-macos.cc ('k') | src/platform-posix.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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 uint64_t seed = static_cast<uint64_t>(TimeCurrentMillis()); 81 uint64_t seed = static_cast<uint64_t>(TimeCurrentMillis());
82 srandom(static_cast<unsigned int>(seed)); 82 srandom(static_cast<unsigned int>(seed));
83 } 83 }
84 84
85 85
86 uint64_t OS::CpuFeaturesImpliedByPlatform() { 86 uint64_t OS::CpuFeaturesImpliedByPlatform() {
87 return 0; // OpenBSD runs on anything. 87 return 0; // OpenBSD runs on anything.
88 } 88 }
89 89
90 90
91 double OS::nan_value() {
92 return NAN;
93 }
94
95
96 int OS::ActivationFrameAlignment() { 91 int OS::ActivationFrameAlignment() {
97 // 16 byte alignment on OpenBSD 92 // 16 byte alignment on OpenBSD
98 return 16; 93 return 16;
99 } 94 }
100 95
101 96
102 // We keep the lowest and highest addresses mapped as a quick way of 97 // We keep the lowest and highest addresses mapped as a quick way of
103 // determining that pointers are outside the heap (used mostly in assertions 98 // determining that pointers are outside the heap (used mostly in assertions
104 // and verification). The estimate is conservative, ie, not all addresses in 99 // and verification). The estimate is conservative, ie, not all addresses in
105 // 'allocated' space are actually allocated to our heap. The range is 100 // 'allocated' space are actually allocated to our heap. The range is
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 } 588 }
594 589
595 // This sampler is no longer the active sampler. 590 // This sampler is no longer the active sampler.
596 active_sampler_ = NULL; 591 active_sampler_ = NULL;
597 active_ = false; 592 active_ = false;
598 } 593 }
599 594
600 #endif // ENABLE_LOGGING_AND_PROFILING 595 #endif // ENABLE_LOGGING_AND_PROFILING
601 596
602 } } // namespace v8::internal 597 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform-macos.cc ('k') | src/platform-posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698