v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
test-atomicops.cc File Reference
#include "v8.h"
#include "cctest.h"
#include "atomicops.h"
Include dependency graph for test-atomicops.cc:

Go to the source code of this file.

Macros

#define CHECK_EQU(v1, v2)   CHECK_EQ(static_cast<int64_t>(v1), static_cast<int64_t>(v2))
 
#define NUM_BITS(T)   (sizeof(T) * 8)
 

Functions

 TEST (AtomicIncrement)
 
 TEST (CompareAndSwap)
 
 TEST (AtomicExchange)
 
 TEST (AtomicIncrementBounds)
 
 TEST (Store)
 
 TEST (Load)
 

Macro Definition Documentation

#define CHECK_EQU (   v1,
  v2 
)    CHECK_EQ(static_cast<int64_t>(v1), static_cast<int64_t>(v2))

Definition at line 36 of file test-atomicops.cc.

#define NUM_BITS (   T)    (sizeof(T) * 8)

Definition at line 39 of file test-atomicops.cc.

Function Documentation

TEST ( AtomicIncrement  )

Definition at line 243 of file test-atomicops.cc.

TEST ( CompareAndSwap  )

Definition at line 249 of file test-atomicops.cc.

TEST ( AtomicExchange  )

Definition at line 255 of file test-atomicops.cc.

TEST ( AtomicIncrementBounds  )

Definition at line 261 of file test-atomicops.cc.

TEST ( Store  )

Definition at line 267 of file test-atomicops.cc.

TEST ( Load  )

Definition at line 273 of file test-atomicops.cc.