| Index: src/ia32/lithium-codegen-ia32.cc
|
| diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc
|
| index 8b7a494f7c1e39c2ebd35ec3c646c6f91624eee0..82231ce8abc17d0e4cb69e22abc861ef59b51dae 100644
|
| --- a/src/ia32/lithium-codegen-ia32.cc
|
| +++ b/src/ia32/lithium-codegen-ia32.cc
|
| @@ -1011,7 +1011,7 @@ void LCodeGen::DeoptimizeIf(Condition cc,
|
| }
|
|
|
|
|
| -void LCodeGen::SoftDeoptimize(LEnvironment* environment) {
|
| +void LCodeGen::Deoptimize(LEnvironment* environment) {
|
| ASSERT(!info()->IsStub());
|
| DeoptimizeIf(no_condition, environment, Deoptimizer::SOFT);
|
| }
|
| @@ -6319,8 +6319,9 @@ void LCodeGen::DoLazyBailout(LLazyBailout* instr) {
|
|
|
|
|
| void LCodeGen::DoDeoptimize(LDeoptimize* instr) {
|
| - if (instr->hydrogen_value()->IsSoftDeoptimize()) {
|
| - SoftDeoptimize(instr->environment());
|
| + ASSERT(instr->hydrogen_value()->IsDeoptimize());
|
| + if (instr->hydrogen()->type() == Deoptimizer::SOFT) {
|
| + Deoptimize(instr->environment());
|
| } else {
|
| DeoptimizeIf(no_condition, instr->environment());
|
| }
|
|
|