| Index: src/deoptimizer.cc
|
| diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc
|
| index 554ba8e7b17f272e5f4dbfbad51df460343bcc8a..c518578340144431c48692884182919bd1389666 100644
|
| --- a/src/deoptimizer.cc
|
| +++ b/src/deoptimizer.cc
|
| @@ -605,10 +605,10 @@ Deoptimizer::Deoptimizer(Isolate* isolate,
|
| : StackFrame::JAVA_SCRIPT;
|
| trace_scope_ = TraceEnabledFor(type, frame_type) ?
|
| new CodeTracer::Scope(isolate->GetCodeTracer()) : NULL;
|
| -#ifdef DEBUG
|
| - CHECK(AllowHeapAllocation::IsAllowed());
|
| +#if DCHECK_IS_ON
|
| + DCHECK(AllowHeapAllocation::IsAllowed());
|
| disallow_heap_allocation_ = new DisallowHeapAllocation();
|
| -#endif // DEBUG
|
| +#endif // DCHECK_IS_ON
|
| unsigned size = ComputeInputFrameSize();
|
| input_ = new(size) FrameDescription(size, function);
|
| input_->SetFrameType(frame_type);
|
| @@ -660,12 +660,12 @@ void Deoptimizer::DeleteFrameDescriptions() {
|
| delete[] output_;
|
| input_ = NULL;
|
| output_ = NULL;
|
| -#ifdef DEBUG
|
| - CHECK(!AllowHeapAllocation::IsAllowed());
|
| - CHECK(disallow_heap_allocation_ != NULL);
|
| +#if DCHECK_IS_ON
|
| + DCHECK(!AllowHeapAllocation::IsAllowed());
|
| + DCHECK(disallow_heap_allocation_ != NULL);
|
| delete disallow_heap_allocation_;
|
| disallow_heap_allocation_ = NULL;
|
| -#endif // DEBUG
|
| +#endif // DCHECK_IS_ON
|
| }
|
|
|
|
|
|
|