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

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

Issue 20274002: Don't duplicate ceiling() for every POSIX platform. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix typo Created 7 years, 5 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') | no next file » | 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 return x < 0; 74 return x < 0;
75 } 75 }
76 } 76 }
77 } // namespace std 77 } // namespace std
78 #endif // signbit 78 #endif // signbit
79 79
80 namespace v8 { 80 namespace v8 {
81 namespace internal { 81 namespace internal {
82 82
83 83
84 double ceiling(double x) {
85 return ceil(x);
86 }
87
88
89 static Mutex* limit_mutex = NULL; 84 static Mutex* limit_mutex = NULL;
90 85
91 86
92 uint64_t OS::CpuFeaturesImpliedByPlatform() { 87 uint64_t OS::CpuFeaturesImpliedByPlatform() {
93 return 0; // Solaris runs on a lot of things. 88 return 0; // Solaris runs on a lot of things.
94 } 89 }
95 90
96 91
97 int OS::ActivationFrameAlignment() { 92 int OS::ActivationFrameAlignment() {
98 // GCC generates code that requires 16 byte alignment such as movdqa. 93 // GCC generates code that requires 16 byte alignment such as movdqa.
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 limit_mutex = CreateMutex(); 493 limit_mutex = CreateMutex();
499 } 494 }
500 495
501 496
502 void OS::TearDown() { 497 void OS::TearDown() {
503 delete limit_mutex; 498 delete limit_mutex;
504 } 499 }
505 500
506 501
507 } } // namespace v8::internal 502 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform-posix.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698