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/lithium-codegen.h" | 5 #include "src/lithium-codegen.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "src/v8.h" | 9 #include "src/v8.h" |
10 | 10 |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 if (map->is_deprecated()) return Retry(kMapBecameDeprecated); | 182 if (map->is_deprecated()) return Retry(kMapBecameDeprecated); |
183 chunk_->AddDeprecationDependency(map); | 183 chunk_->AddDeprecationDependency(map); |
184 } | 184 } |
185 | 185 |
186 | 186 |
187 void LCodeGenBase::AddStabilityDependency(Handle<Map> map) { | 187 void LCodeGenBase::AddStabilityDependency(Handle<Map> map) { |
188 if (!map->is_stable()) return Retry(kMapBecameUnstable); | 188 if (!map->is_stable()) return Retry(kMapBecameUnstable); |
189 chunk_->AddStabilityDependency(map); | 189 chunk_->AddStabilityDependency(map); |
190 } | 190 } |
191 | 191 |
| 192 |
| 193 Deoptimizer::DeoptInfo LCodeGenBase::MakeDeoptInfo( |
| 194 LInstruction* instr, Deoptimizer::DeoptReason deopt_reason) { |
| 195 Deoptimizer::DeoptInfo deopt_info(instr->hydrogen_value()->position(), |
| 196 instr->Mnemonic(), deopt_reason); |
| 197 HEnterInlined* enter_inlined = instr->environment()->entry(); |
| 198 deopt_info.inlining_id = enter_inlined ? enter_inlined->inlining_id() : 0; |
| 199 return deopt_info; |
| 200 } |
192 } } // namespace v8::internal | 201 } } // namespace v8::internal |
OLD | NEW |