17 struct PerThreadAssertKeyConstructTrait
FINAL {
25 PerThreadAssertKeyConstructTrait>::type
34 class PerThreadAssertData
FINAL {
38 assert_states_[
i] =
true;
55 return reinterpret_cast<PerThreadAssertData*
>(
70 template <PerThreadAssertType kType,
bool kAllow>
72 : data_(PerThreadAssertData::GetCurrent()) {
74 data_ =
new PerThreadAssertData();
75 PerThreadAssertData::SetCurrent(
data_);
77 data_->IncrementLevel();
79 data_->Set(kType, kAllow);
83 template <PerThreadAssertType kType,
bool kAllow>
86 data_->Set(kType, old_state_);
87 if (data_->DecrementLevel()) {
88 PerThreadAssertData::SetCurrent(
NULL);
95 template <PerThreadAssertType kType,
bool kAllow>
97 PerThreadAssertData* data = PerThreadAssertData::GetCurrent();
98 return data ==
NULL || data->Get(kType);
102 template <PerIsolateAssertType kType,
bool kAllow>
104 :
public BitField<bool, kType, 1> {};
107 template <PerIsolateAssertType kType,
bool kAllow>
109 : isolate_(isolate), old_data_(isolate->per_isolate_assert_data()) {
116 template <PerIsolateAssertType kType,
bool kAllow>
118 isolate_->set_per_isolate_assert_data(old_data_);
123 template <PerIsolateAssertType kType,
bool kAllow>
125 return DataBit::decode(isolate->per_isolate_assert_data());
static LocalStorageKey CreateThreadLocalKey()
static void * GetThreadLocal(LocalStorageKey key)
static void SetThreadLocal(LocalStorageKey key, void *value)
static U update(U previous, T value)
Source to read snapshot and builtins files from.
DISALLOW_COPY_AND_ASSIGN(PerThreadAssertData)
bool Get(PerThreadAssertType type) const
static PerThreadAssertData * GetCurrent()
static void SetCurrent(PerThreadAssertData *data)
void Set(PerThreadAssertType type, bool x)
static bool IsAllowed(Isolate *isolate)
PerIsolateAssertScope(Isolate *isolate)
PerThreadAssertData * data_
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be NULL
#define DCHECK_NOT_NULL(p)
#define DCHECK(condition)
base::LazyStaticInstance< base::Thread::LocalStorageKey, PerThreadAssertKeyConstructTrait >::type PerThreadAssertKey
PerThreadAssertKey kPerThreadAssertKey
@ LAST_PER_THREAD_ASSERT_TYPE
STATIC_ASSERT(sizeof(CPURegister)==sizeof(Register))
Debugger support for the V8 JavaScript engine.
static void Construct(base::Thread::LocalStorageKey *key)