| Index: src/hydrogen.cc
|
| diff --git a/src/hydrogen.cc b/src/hydrogen.cc
|
| index 54c3451fb475b0af6b709e992993f7853e0854c5..19d0afee775669349c1046c06a13a36c22ff8ba0 100644
|
| --- a/src/hydrogen.cc
|
| +++ b/src/hydrogen.cc
|
| @@ -6254,7 +6254,9 @@ void HOptimizedGraphBuilder::VisitThrow(Throw* expr) {
|
|
|
| HValue* value = environment()->Pop();
|
| if (!FLAG_emit_opt_code_positions) SetSourcePosition(expr->position());
|
| - Add<HThrow>(value);
|
| + Add<HPushArgument>(value);
|
| + Add<HCallRuntime>(isolate()->factory()->empty_string(),
|
| + Runtime::FunctionForId(Runtime::kThrow), 1);
|
| Add<HSimulate>(expr->id());
|
|
|
| // If the throw definitely exits the function, we can finish with a dummy
|
|
|