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

Side by Side Diff: src/platform-openbsd.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, 4 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-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 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 #include "platform-posix.h" 54 #include "platform-posix.h"
55 #include "platform.h" 55 #include "platform.h"
56 #include "v8threads.h" 56 #include "v8threads.h"
57 #include "vm-state-inl.h" 57 #include "vm-state-inl.h"
58 58
59 59
60 namespace v8 { 60 namespace v8 {
61 namespace internal { 61 namespace internal {
62 62
63 63
64 double ceiling(double x) {
65 return ceil(x);
66 }
67
68
69 static Mutex* limit_mutex = NULL; 64 static Mutex* limit_mutex = NULL;
70 65
71 66
72 static void* GetRandomMmapAddr() { 67 static void* GetRandomMmapAddr() {
73 Isolate* isolate = Isolate::UncheckedCurrent(); 68 Isolate* isolate = Isolate::UncheckedCurrent();
74 // Note that the current isolate isn't set up in a call path via 69 // Note that the current isolate isn't set up in a call path via
75 // CpuFeatures::Probe. We don't care about randomization in this case because 70 // CpuFeatures::Probe. We don't care about randomization in this case because
76 // the code page is immediately freed. 71 // the code page is immediately freed.
77 if (isolate != NULL) { 72 if (isolate != NULL) {
78 #if V8_TARGET_ARCH_X64 73 #if V8_TARGET_ARCH_X64
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 limit_mutex = CreateMutex(); 544 limit_mutex = CreateMutex();
550 } 545 }
551 546
552 547
553 void OS::TearDown() { 548 void OS::TearDown() {
554 delete limit_mutex; 549 delete limit_mutex;
555 } 550 }
556 551
557 552
558 } } // namespace v8::internal 553 } } // 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