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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 } | 152 } |
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 | |
163 void Deoptimizer::DeleteDebuggerInspectableFrame(DeoptimizedFrameInfo* info, | |
164 Isolate* isolate) { | |
165 delete info; | |
166 } | |
167 | |
168 | |
169 void Deoptimizer::GenerateDeoptimizationEntries(MacroAssembler* masm, | 162 void Deoptimizer::GenerateDeoptimizationEntries(MacroAssembler* masm, |
170 int count, | 163 int count, |
171 BailoutType type) { | 164 BailoutType type) { |
172 TableEntryGenerator generator(masm, type, count); | 165 TableEntryGenerator generator(masm, type, count); |
173 generator.Generate(); | 166 generator.Generate(); |
174 } | 167 } |
175 | 168 |
176 | |
177 void Deoptimizer::VisitAllOptimizedFunctionsForContext( | 169 void Deoptimizer::VisitAllOptimizedFunctionsForContext( |
178 Context* context, OptimizedFunctionVisitor* visitor) { | 170 Context* context, OptimizedFunctionVisitor* visitor) { |
179 DisallowHeapAllocation no_allocation; | 171 DisallowHeapAllocation no_allocation; |
180 | 172 |
181 CHECK(context->IsNativeContext()); | 173 CHECK(context->IsNativeContext()); |
182 | 174 |
183 visitor->EnterContext(context); | 175 visitor->EnterContext(context); |
184 | 176 |
185 // Visit the list of optimized functions, removing elements that | 177 // Visit the list of optimized functions, removing elements that |
186 // no longer refer to optimized code. | 178 // no longer refer to optimized code. |
(...skipping 3833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4020 CHECK(value_info->IsMaterializedObject()); | 4012 CHECK(value_info->IsMaterializedObject()); |
4021 | 4013 |
4022 value_info->value_ = | 4014 value_info->value_ = |
4023 Handle<Object>(previously_materialized_objects->get(i), isolate_); | 4015 Handle<Object>(previously_materialized_objects->get(i), isolate_); |
4024 } | 4016 } |
4025 } | 4017 } |
4026 } | 4018 } |
4027 | 4019 |
4028 } // namespace internal | 4020 } // namespace internal |
4029 } // namespace v8 | 4021 } // namespace v8 |
OLD | NEW |