Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Side by Side Diff: src/hydrogen-environment-liveness.cc

Issue 769263002: Add support for enabling DCHECKs in release mode (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 5
6 #include "src/hydrogen-environment-liveness.h" 6 #include "src/hydrogen-environment-liveness.h"
7 7
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 ZapEnvironmentSlotsInSuccessors(block, &live); 212 ZapEnvironmentSlotsInSuccessors(block, &live);
213 } 213 }
214 214
215 // Finally, remove the HEnvironment{Bind,Lookup} markers. 215 // Finally, remove the HEnvironment{Bind,Lookup} markers.
216 for (int i = 0; i < markers_.length(); ++i) { 216 for (int i = 0; i < markers_.length(); ++i) {
217 markers_[i]->DeleteAndReplaceWith(NULL); 217 markers_[i]->DeleteAndReplaceWith(NULL);
218 } 218 }
219 } 219 }
220 220
221 221
222 #ifdef DEBUG 222 #if DCHECK_IS_ON
223 bool HEnvironmentLivenessAnalysisPhase::VerifyClosures( 223 bool HEnvironmentLivenessAnalysisPhase::VerifyClosures(
224 Handle<JSFunction> a, Handle<JSFunction> b) { 224 Handle<JSFunction> a, Handle<JSFunction> b) {
225 Heap::RelocationLock for_heap_access(isolate()->heap()); 225 Heap::RelocationLock for_heap_access(isolate()->heap());
226 AllowHandleDereference for_verification; 226 AllowHandleDereference for_verification;
227 return a.is_identical_to(b); 227 return a.is_identical_to(b);
228 } 228 }
229 #endif 229 #endif
230 230
231 } } // namespace v8::internal 231 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698