| OLD | NEW |
| 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 #include "src/deoptimizer.h" | 5 #include "src/deoptimizer.h" |
| 6 | 6 |
| 7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
| 8 #include "src/ast/prettyprinter.h" | 8 #include "src/ast/prettyprinter.h" |
| 9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
| 10 #include "src/disasm.h" | 10 #include "src/disasm.h" |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 } | 153 } |
| 154 CHECK(frame_it != translated_values.end()); | 154 CHECK(frame_it != translated_values.end()); |
| 155 | 155 |
| 156 DeoptimizedFrameInfo* info = | 156 DeoptimizedFrameInfo* info = |
| 157 new DeoptimizedFrameInfo(&translated_values, frame_it, isolate); | 157 new DeoptimizedFrameInfo(&translated_values, frame_it, isolate); |
| 158 | 158 |
| 159 return info; | 159 return info; |
| 160 } | 160 } |
| 161 | 161 |
| 162 | 162 |
| 163 void Deoptimizer::DeleteDebuggerInspectableFrame(DeoptimizedFrameInfo* info, | |
| 164 Isolate* isolate) { | |
| 165 delete info; | |
| 166 } | |
| 167 | |
| 168 | |
| 169 void Deoptimizer::GenerateDeoptimizationEntries(MacroAssembler* masm, | 163 void Deoptimizer::GenerateDeoptimizationEntries(MacroAssembler* masm, |
| 170 int count, | 164 int count, |
| 171 BailoutType type) { | 165 BailoutType type) { |
| 172 TableEntryGenerator generator(masm, type, count); | 166 TableEntryGenerator generator(masm, type, count); |
| 173 generator.Generate(); | 167 generator.Generate(); |
| 174 } | 168 } |
| 175 | 169 |
| 176 | 170 |
| 177 void Deoptimizer::VisitAllOptimizedFunctionsForContext( | 171 void Deoptimizer::VisitAllOptimizedFunctionsForContext( |
| 178 Context* context, OptimizedFunctionVisitor* visitor) { | 172 Context* context, OptimizedFunctionVisitor* visitor) { |
| (...skipping 3839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4018 CHECK(value_info->IsMaterializedObject()); | 4012 CHECK(value_info->IsMaterializedObject()); |
| 4019 | 4013 |
| 4020 value_info->value_ = | 4014 value_info->value_ = |
| 4021 Handle<Object>(previously_materialized_objects->get(i), isolate_); | 4015 Handle<Object>(previously_materialized_objects->get(i), isolate_); |
| 4022 } | 4016 } |
| 4023 } | 4017 } |
| 4024 } | 4018 } |
| 4025 | 4019 |
| 4026 } // namespace internal | 4020 } // namespace internal |
| 4027 } // namespace v8 | 4021 } // namespace v8 |
| OLD | NEW |