| Index: src/runtime/runtime-atomics-x64.h
|
| diff --git a/src/runtime/runtime-atomics-x64.h b/src/runtime/runtime-atomics-x64.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..abaebeca35a0e5e90a5644dcb5833d47053c318d
|
| --- /dev/null
|
| +++ b/src/runtime/runtime-atomics-x64.h
|
| @@ -0,0 +1,73 @@
|
| +// Copyright 2016 the V8 project authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef V8_RUNTIME_RUNTIME_ATOMICS_X64_H_
|
| +#define V8_RUNTIME_RUNTIME_ATOMICS_X64_H_
|
| +
|
| +#include <stdint.h>
|
| +
|
| +namespace v8 {
|
| +namespace internal {
|
| +namespace atomics {
|
| +
|
| +uint8_t LoadSeqCst(uint8_t* p);
|
| +int8_t LoadSeqCst(int8_t* p);
|
| +uint16_t LoadSeqCst(uint16_t* p);
|
| +int16_t LoadSeqCst(int16_t* p);
|
| +uint32_t LoadSeqCst(uint32_t* p);
|
| +int32_t LoadSeqCst(int32_t* p);
|
| +void StoreSeqCst(uint8_t* p, uint8_t value);
|
| +void StoreSeqCst(int8_t* p, int8_t value);
|
| +void StoreSeqCst(uint16_t* p, uint16_t value);
|
| +void StoreSeqCst(int16_t* p, int16_t value);
|
| +void StoreSeqCst(uint32_t* p, uint32_t value);
|
| +void StoreSeqCst(int32_t* p, int32_t value);
|
| +uint8_t AddSeqCst(uint8_t* p, uint8_t value);
|
| +int8_t AddSeqCst(int8_t* p, int8_t value);
|
| +uint16_t AddSeqCst(uint16_t* p, uint16_t value);
|
| +int16_t AddSeqCst(int16_t* p, int16_t value);
|
| +uint32_t AddSeqCst(uint32_t* p, uint32_t value);
|
| +int32_t AddSeqCst(int32_t* p, int32_t value);
|
| +uint8_t SubSeqCst(uint8_t* p, uint8_t value);
|
| +int8_t SubSeqCst(int8_t* p, int8_t value);
|
| +uint16_t SubSeqCst(uint16_t* p, uint16_t value);
|
| +int16_t SubSeqCst(int16_t* p, int16_t value);
|
| +uint32_t SubSeqCst(uint32_t* p, uint32_t value);
|
| +int32_t SubSeqCst(int32_t* p, int32_t value);
|
| +uint8_t ExchangeSeqCst(uint8_t* p, uint8_t value);
|
| +int8_t ExchangeSeqCst(int8_t* p, int8_t value);
|
| +uint16_t ExchangeSeqCst(uint16_t* p, uint16_t value);
|
| +int16_t ExchangeSeqCst(int16_t* p, int16_t value);
|
| +uint32_t ExchangeSeqCst(uint32_t* p, uint32_t value);
|
| +int32_t ExchangeSeqCst(int32_t* p, int32_t value);
|
| +uint8_t CompareExchangeSeqCst(uint8_t* p, uint8_t oldval, uint8_t newval);
|
| +int8_t CompareExchangeSeqCst(int8_t* p, int8_t oldval, int8_t newval);
|
| +uint16_t CompareExchangeSeqCst(uint16_t* p, uint16_t oldval, uint16_t newval);
|
| +int16_t CompareExchangeSeqCst(int16_t* p, int16_t oldval, int16_t newval);
|
| +uint32_t CompareExchangeSeqCst(uint32_t* p, uint32_t oldval, uint32_t newval);
|
| +int32_t CompareExchangeSeqCst(int32_t* p, int32_t oldval, int32_t newval);
|
| +uint8_t AndSeqCst(uint8_t* p, uint8_t value);
|
| +int8_t AndSeqCst(int8_t* p, int8_t value);
|
| +uint16_t AndSeqCst(uint16_t* p, uint16_t value);
|
| +int16_t AndSeqCst(int16_t* p, int16_t value);
|
| +uint32_t AndSeqCst(uint32_t* p, uint32_t value);
|
| +int32_t AndSeqCst(int32_t* p, int32_t value);
|
| +uint8_t OrSeqCst(uint8_t* p, uint8_t value);
|
| +int8_t OrSeqCst(int8_t* p, int8_t value);
|
| +uint16_t OrSeqCst(uint16_t* p, uint16_t value);
|
| +int16_t OrSeqCst(int16_t* p, int16_t value);
|
| +uint32_t OrSeqCst(uint32_t* p, uint32_t value);
|
| +int32_t OrSeqCst(int32_t* p, int32_t value);
|
| +uint8_t XorSeqCst(uint8_t* p, uint8_t value);
|
| +int8_t XorSeqCst(int8_t* p, int8_t value);
|
| +uint16_t XorSeqCst(uint16_t* p, uint16_t value);
|
| +int16_t XorSeqCst(int16_t* p, int16_t value);
|
| +uint32_t XorSeqCst(uint32_t* p, uint32_t value);
|
| +int32_t XorSeqCst(int32_t* p, int32_t value);
|
| +
|
| +} // namespace atomics
|
| +} // namespace internal
|
| +} // namespace v8
|
| +
|
| +#endif // V8_RUNTIME_RUNTIME_ATOMICS_X64_H_
|
|
|