| Index: src/atomic-utils.h
|
| diff --git a/src/atomic-utils.h b/src/atomic-utils.h
|
| index 0bfd52cfe95995e3d49ff0c8afdf8072e114b59c..2aa78f8b5e22458fed9a9505b9f71f6e029f72e0 100644
|
| --- a/src/atomic-utils.h
|
| +++ b/src/atomic-utils.h
|
| @@ -30,6 +30,11 @@ class AtomicNumber {
|
| base::Release_Store(&value_, static_cast<base::AtomicWord>(new_value));
|
| }
|
|
|
| + V8_INLINE T operator=(T value) {
|
| + SetValue(value);
|
| + return value;
|
| + }
|
| +
|
| private:
|
| STATIC_ASSERT(sizeof(T) <= sizeof(base::AtomicWord));
|
|
|
| @@ -41,6 +46,8 @@ class AtomicNumber {
|
| template <typename T>
|
| class AtomicValue {
|
| public:
|
| + AtomicValue() : value_(0) {}
|
| +
|
| explicit AtomicValue(T initial)
|
| : value_(cast_helper<T>::to_storage_type(initial)) {}
|
|
|
|
|