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

Side by Side Diff: src/platform-linux.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-freebsd.cc ('k') | src/platform-macos.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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 #include "platform-posix.h" 69 #include "platform-posix.h"
70 #include "platform.h" 70 #include "platform.h"
71 #include "v8threads.h" 71 #include "v8threads.h"
72 #include "vm-state-inl.h" 72 #include "vm-state-inl.h"
73 73
74 74
75 namespace v8 { 75 namespace v8 {
76 namespace internal { 76 namespace internal {
77 77
78 78
79 double ceiling(double x) {
80 return ceil(x);
81 }
82
83
84 static Mutex* limit_mutex = NULL; 79 static Mutex* limit_mutex = NULL;
85 80
86 81
87 uint64_t OS::CpuFeaturesImpliedByPlatform() { 82 uint64_t OS::CpuFeaturesImpliedByPlatform() {
88 return 0; // Linux runs on anything. 83 return 0; // Linux runs on anything.
89 } 84 }
90 85
91 86
92 #ifdef __arm__ 87 #ifdef __arm__
93 static bool CPUInfoContainsString(const char * search_string) { 88 static bool CPUInfoContainsString(const char * search_string) {
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 limit_mutex = CreateMutex(); 779 limit_mutex = CreateMutex();
785 } 780 }
786 781
787 782
788 void OS::TearDown() { 783 void OS::TearDown() {
789 delete limit_mutex; 784 delete limit_mutex;
790 } 785 }
791 786
792 787
793 } } // namespace v8::internal 788 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform-freebsd.cc ('k') | src/platform-macos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698