Index: src/interpreter/interpreter.cc |
diff --git a/src/interpreter/interpreter.cc b/src/interpreter/interpreter.cc |
index 2b3171f31f8f1a1bd0762227101aeb814794acd7..c835adaf05527720820a687597597b41b8d82ac4 100644 |
--- a/src/interpreter/interpreter.cc |
+++ b/src/interpreter/interpreter.cc |
@@ -887,6 +887,17 @@ void Interpreter::DoCreateClosure(compiler::InterpreterAssembler* assembler) { |
} |
+// Throw |
+// |
+// Throws the exception in the accumulator. |
+void Interpreter::DoThrow(compiler::InterpreterAssembler* assembler) { |
+ Node* exception = __ GetAccumulator(); |
+ __ CallRuntime(Runtime::kThrow, exception); |
+ // We shouldn't ever return from a throw. |
+ __ Abort(kUnexpectedReturnFromThrow); |
+} |
+ |
+ |
// Return |
// |
// Return the value in the accumulator. |