| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |