Commit f4ede82c authored by jochen@chromium.org's avatar jochen@chromium.org

Remove remaining dependencies on allocation.h from a few platform files

I could move parts of allocation to base/ instead, but I see little to
no value in the allocation base classes, soo..

BUG=none
R=bmeurer@chromium.org
LOG=n

Review URL: https://codereview.chromium.org/351683009

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22062 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 5e738b77
...@@ -492,7 +492,7 @@ void OS::StrNCpy(char* dest, int length, const char* src, size_t n) { ...@@ -492,7 +492,7 @@ void OS::StrNCpy(char* dest, int length, const char* src, size_t n) {
// POSIX thread support. // POSIX thread support.
// //
class Thread::PlatformData : public Malloced { class Thread::PlatformData {
public: public:
PlatformData() : thread_(kNoThread) {} PlatformData() : thread_(kNoThread) {}
pthread_t thread_; // Thread handle for pthread. pthread_t thread_; // Thread handle for pthread.
......
...@@ -1335,7 +1335,7 @@ static unsigned int __stdcall ThreadEntry(void* arg) { ...@@ -1335,7 +1335,7 @@ static unsigned int __stdcall ThreadEntry(void* arg) {
} }
class Thread::PlatformData : public Malloced { class Thread::PlatformData {
public: public:
explicit PlatformData(HANDLE thread) : thread_(thread) {} explicit PlatformData(HANDLE thread) : thread_(thread) {}
HANDLE thread_; HANDLE thread_;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#include <time.h> #include <time.h>
#include <limits> #include <limits>
#include "src/allocation.h" #include "src/base/macros.h"
// Forward declarations. // Forward declarations.
extern "C" { extern "C" {
...@@ -30,7 +30,7 @@ class TimeTicks; ...@@ -30,7 +30,7 @@ class TimeTicks;
// This class represents a duration of time, internally represented in // This class represents a duration of time, internally represented in
// microseonds. // microseonds.
class TimeDelta V8_FINAL BASE_EMBEDDED { class TimeDelta V8_FINAL {
public: public:
TimeDelta() : delta_(0) {} TimeDelta() : delta_(0) {}
...@@ -158,7 +158,7 @@ class TimeDelta V8_FINAL BASE_EMBEDDED { ...@@ -158,7 +158,7 @@ class TimeDelta V8_FINAL BASE_EMBEDDED {
// This class represents an absolute point in time, internally represented as // This class represents an absolute point in time, internally represented as
// microseconds (s/1,000,000) since 00:00:00 UTC, January 1, 1970. // microseconds (s/1,000,000) since 00:00:00 UTC, January 1, 1970.
class Time V8_FINAL BASE_EMBEDDED { class Time V8_FINAL {
public: public:
static const int64_t kMillisecondsPerSecond = 1000; static const int64_t kMillisecondsPerSecond = 1000;
static const int64_t kMicrosecondsPerMillisecond = 1000; static const int64_t kMicrosecondsPerMillisecond = 1000;
...@@ -295,7 +295,7 @@ inline Time operator+(const TimeDelta& delta, const Time& time) { ...@@ -295,7 +295,7 @@ inline Time operator+(const TimeDelta& delta, const Time& time) {
// Time::Now() may actually decrease or jump). But note that TimeTicks may // Time::Now() may actually decrease or jump). But note that TimeTicks may
// "stand still", for example if the computer suspended. // "stand still", for example if the computer suspended.
class TimeTicks V8_FINAL BASE_EMBEDDED { class TimeTicks V8_FINAL {
public: public:
TimeTicks() : ticks_(0) {} TimeTicks() : ticks_(0) {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment