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

Side by Side Diff: src/platform-cygwin.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 | « no previous file | src/platform-freebsd.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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 #include "platform.h" 45 #include "platform.h"
46 #include "simulator.h" 46 #include "simulator.h"
47 #include "v8threads.h" 47 #include "v8threads.h"
48 #include "vm-state-inl.h" 48 #include "vm-state-inl.h"
49 #include "win32-headers.h" 49 #include "win32-headers.h"
50 50
51 namespace v8 { 51 namespace v8 {
52 namespace internal { 52 namespace internal {
53 53
54 54
55 double ceiling(double x) {
56 return ceil(x);
57 }
58
59
60 static Mutex* limit_mutex = NULL; 55 static Mutex* limit_mutex = NULL;
61 56
62 57
63 uint64_t OS::CpuFeaturesImpliedByPlatform() { 58 uint64_t OS::CpuFeaturesImpliedByPlatform() {
64 return 0; // Nothing special about Cygwin. 59 return 0; // Nothing special about Cygwin.
65 } 60 }
66 61
67 62
68 int OS::ActivationFrameAlignment() { 63 int OS::ActivationFrameAlignment() {
69 // With gcc 4.4 the tree vectorization optimizer can generate code 64 // With gcc 4.4 the tree vectorization optimizer can generate code
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 limit_mutex = CreateMutex(); 486 limit_mutex = CreateMutex();
492 } 487 }
493 488
494 489
495 void OS::TearDown() { 490 void OS::TearDown() {
496 delete limit_mutex; 491 delete limit_mutex;
497 } 492 }
498 493
499 494
500 } } // namespace v8::internal 495 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/platform-freebsd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698