summaryrefslogtreecommitdiff
path: root/deps/v8/src/platform.h
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-09-08 17:14:42 -0700
committerRyan Dahl <ry@tinyclouds.org>2010-09-08 17:14:42 -0700
commit8796ed22783bbbb9d286463e27db275325106fed (patch)
treec4d13c9a6dc9196925489392ffe589f4d43d8939 /deps/v8/src/platform.h
parent512016fd7441d8919c29f369a38622ab1dd01942 (diff)
downloadnode-8796ed22783bbbb9d286463e27db275325106fed.tar.gz
Upgrade V8 to 2.4.2
Diffstat (limited to 'deps/v8/src/platform.h')
-rw-r--r--deps/v8/src/platform.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/deps/v8/src/platform.h b/deps/v8/src/platform.h
index b75867cfc..e9e7c2236 100644
--- a/deps/v8/src/platform.h
+++ b/deps/v8/src/platform.h
@@ -302,7 +302,7 @@ class VirtualMemory {
void* address() {
ASSERT(IsReserved());
return address_;
- };
+ }
// Returns the size of the reserved memory.
size_t size() { return size_; }
@@ -363,11 +363,13 @@ class ThreadHandle {
class Thread: public ThreadHandle {
public:
// Opaque data type for thread-local storage keys.
-#ifndef __CYGWIN__
- enum LocalStorageKey {};
-#else
- typedef void *LocalStorageKey;
-#endif
+ // LOCAL_STORAGE_KEY_MIN_VALUE and LOCAL_STORAGE_KEY_MAX_VALUE are specified
+ // to ensure that enumeration type has correct value range (see Issue 830 for
+ // more details).
+ enum LocalStorageKey {
+ LOCAL_STORAGE_KEY_MIN_VALUE = kMinInt,
+ LOCAL_STORAGE_KEY_MAX_VALUE = kMaxInt
+ };
// Create new thread.
Thread();