| Index: src/hydrogen.cc
|
| diff --git a/src/hydrogen.cc b/src/hydrogen.cc
|
| index ca14f96a87e644a7b3eef2204193a994a1d1b77e..9d5aa2be31fa7206456e93d1257eb4320e0abf30 100644
|
| --- a/src/hydrogen.cc
|
| +++ b/src/hydrogen.cc
|
| @@ -3556,9 +3556,11 @@ void HGraphBuilder::VisitThrow(Throw* expr) {
|
| VISIT_FOR_VALUE(expr->exception());
|
|
|
| HValue* value = environment()->Pop();
|
| - HControlInstruction* instr = new HThrow(value);
|
| + HThrow* instr = new HThrow(value);
|
| instr->set_position(expr->position());
|
| - current_subgraph_->FinishExit(instr);
|
| + AddInstruction(instr);
|
| + AddSimulate(expr->id());
|
| + current_subgraph_->FinishExit(new HAbnormalExit);
|
| }
|
|
|
|
|
|
|