| 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 "v8.h" | 5 #include "v8.h" |
| 6 | 6 |
| 7 #include "lithium-codegen.h" | 7 #include "lithium-codegen.h" |
| 8 | 8 |
| 9 #if V8_TARGET_ARCH_IA32 | 9 #if V8_TARGET_ARCH_IA32 |
| 10 #include "ia32/lithium-ia32.h" | 10 #include "ia32/lithium-ia32.h" |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 } | 209 } |
| 210 } | 210 } |
| 211 | 211 |
| 212 | 212 |
| 213 void LCodeGenBase::Abort(BailoutReason reason) { | 213 void LCodeGenBase::Abort(BailoutReason reason) { |
| 214 info()->set_bailout_reason(reason); | 214 info()->set_bailout_reason(reason); |
| 215 status_ = ABORTED; | 215 status_ = ABORTED; |
| 216 } | 216 } |
| 217 | 217 |
| 218 | 218 |
| 219 void LCodeGenBase::AddDeprecationDependency(Handle<Map> map) { | |
| 220 if (map->is_deprecated()) return Abort(kMapBecameDeprecated); | |
| 221 chunk_->AddDeprecationDependency(map); | |
| 222 } | |
| 223 | |
| 224 | |
| 225 void LCodeGenBase::AddStabilityDependency(Handle<Map> map) { | 219 void LCodeGenBase::AddStabilityDependency(Handle<Map> map) { |
| 226 if (!map->is_stable()) return Abort(kMapBecameUnstable); | 220 if (!map->is_stable()) return Abort(kMapBecameUnstable); |
| 227 chunk_->AddStabilityDependency(map); | 221 chunk_->AddStabilityDependency(map); |
| 228 } | 222 } |
| 229 | 223 |
| 230 } } // namespace v8::internal | 224 } } // namespace v8::internal |
| OLD | NEW |