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

Side by Side Diff: src/compiler.cc

Issue 888613002: Initial switch to Chromium-style CHECK_* and DCHECK_* macros. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: CHECK_NULL/NOT_NULL is back. Created 5 years, 10 months 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
« no previous file with comments | « src/checks.cc ('k') | src/compiler/arm/code-generator-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/compiler.h" 7 #include "src/compiler.h"
8 8
9 #include "src/ast-numbering.h" 9 #include "src/ast-numbering.h"
10 #include "src/ast-this-access-visitor.h" 10 #include "src/ast-this-access-visitor.h"
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 if (GetFlag(kDisableFutureOptimization)) { 201 if (GetFlag(kDisableFutureOptimization)) {
202 shared_info()->DisableOptimization(bailout_reason()); 202 shared_info()->DisableOptimization(bailout_reason());
203 } 203 }
204 delete deferred_handles_; 204 delete deferred_handles_;
205 delete no_frame_ranges_; 205 delete no_frame_ranges_;
206 if (ast_value_factory_owned_) delete ast_value_factory_; 206 if (ast_value_factory_owned_) delete ast_value_factory_;
207 #ifdef DEBUG 207 #ifdef DEBUG
208 // Check that no dependent maps have been added or added dependent maps have 208 // Check that no dependent maps have been added or added dependent maps have
209 // been rolled back or committed. 209 // been rolled back or committed.
210 for (int i = 0; i < DependentCode::kGroupCount; i++) { 210 for (int i = 0; i < DependentCode::kGroupCount; i++) {
211 DCHECK_EQ(NULL, dependencies_[i]); 211 DCHECK(!dependencies_[i]);
212 } 212 }
213 #endif // DEBUG 213 #endif // DEBUG
214 } 214 }
215 215
216 216
217 void CompilationInfo::CommitDependencies(Handle<Code> code) { 217 void CompilationInfo::CommitDependencies(Handle<Code> code) {
218 for (int i = 0; i < DependentCode::kGroupCount; i++) { 218 for (int i = 0; i < DependentCode::kGroupCount; i++) {
219 ZoneList<Handle<HeapObject> >* group_objects = dependencies_[i]; 219 ZoneList<Handle<HeapObject> >* group_objects = dependencies_[i];
220 if (group_objects == NULL) continue; 220 if (group_objects == NULL) continue;
221 DCHECK(!object_wrapper_.is_null()); 221 DCHECK(!object_wrapper_.is_null());
(...skipping 1373 matching lines...) Expand 10 before | Expand all | Expand 10 after
1595 } 1595 }
1596 1596
1597 1597
1598 #if DEBUG 1598 #if DEBUG
1599 void CompilationInfo::PrintAstForTesting() { 1599 void CompilationInfo::PrintAstForTesting() {
1600 PrintF("--- Source from AST ---\n%s\n", 1600 PrintF("--- Source from AST ---\n%s\n",
1601 PrettyPrinter(isolate(), zone()).PrintProgram(function())); 1601 PrettyPrinter(isolate(), zone()).PrintProgram(function()));
1602 } 1602 }
1603 #endif 1603 #endif
1604 } } // namespace v8::internal 1604 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/checks.cc ('k') | src/compiler/arm/code-generator-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698