Commit 3228e4c1 authored by deanm@chromium.org's avatar deanm@chromium.org

Disallow copy and assigning a few public objects.

BUG=97

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@398 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 891ae83e
...@@ -783,6 +783,7 @@ class EXPORT String : public Primitive { ...@@ -783,6 +783,7 @@ class EXPORT String : public Primitive {
protected: protected:
ExternalStringResource() {} ExternalStringResource() {}
private: private:
// Disallow copying and assigning.
ExternalStringResource(const ExternalStringResource&); ExternalStringResource(const ExternalStringResource&);
void operator=(const ExternalStringResource&); void operator=(const ExternalStringResource&);
}; };
...@@ -812,6 +813,7 @@ class EXPORT String : public Primitive { ...@@ -812,6 +813,7 @@ class EXPORT String : public Primitive {
protected: protected:
ExternalAsciiStringResource() {} ExternalAsciiStringResource() {}
private: private:
// Disallow copying and assigning.
ExternalAsciiStringResource(const ExternalAsciiStringResource&); ExternalAsciiStringResource(const ExternalAsciiStringResource&);
void operator=(const ExternalAsciiStringResource&); void operator=(const ExternalAsciiStringResource&);
}; };
...@@ -886,6 +888,10 @@ class EXPORT String : public Primitive { ...@@ -886,6 +888,10 @@ class EXPORT String : public Primitive {
private: private:
char* str_; char* str_;
int length_; int length_;
// Disallow copying and assigning.
Utf8Value(const Utf8Value&);
void operator=(const Utf8Value&);
}; };
/** /**
...@@ -901,6 +907,10 @@ class EXPORT String : public Primitive { ...@@ -901,6 +907,10 @@ class EXPORT String : public Primitive {
private: private:
char* str_; char* str_;
int length_; int length_;
// Disallow copying and assigning.
AsciiValue(const AsciiValue&);
void operator=(const AsciiValue&);
}; };
/** /**
...@@ -915,6 +925,10 @@ class EXPORT String : public Primitive { ...@@ -915,6 +925,10 @@ class EXPORT String : public Primitive {
private: private:
uint16_t* str_; uint16_t* str_;
int length_; int length_;
// Disallow copying and assigning.
Value(const Value&);
void operator=(const Value&);
}; };
}; };
...@@ -1679,6 +1693,10 @@ class EXPORT Extension { // NOLINT ...@@ -1679,6 +1693,10 @@ class EXPORT Extension { // NOLINT
int dep_count_; int dep_count_;
const char** deps_; const char** deps_;
bool auto_enable_; bool auto_enable_;
// Disallow copying and assigning.
Extension(const Extension&);
void operator=(const Extension&);
}; };
...@@ -2199,6 +2217,10 @@ class EXPORT Locker { ...@@ -2199,6 +2217,10 @@ class EXPORT Locker {
private: private:
bool has_lock_; bool has_lock_;
bool top_level_; bool top_level_;
// Disallow copying and assigning.
Locker(const Locker&);
void operator=(const Locker&);
}; };
......
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