Chromium Code Reviews| Index: src/compiler/bytecode-graph-builder.cc |
| diff --git a/src/compiler/bytecode-graph-builder.cc b/src/compiler/bytecode-graph-builder.cc |
| index 47a22df239854b4ef2568736d4c8bcaa87a2a32a..bb8e09ed8c7b0c0941aeae9481605f2eae58904f 100644 |
| --- a/src/compiler/bytecode-graph-builder.cc |
| +++ b/src/compiler/bytecode-graph-builder.cc |
| @@ -816,7 +816,13 @@ void BytecodeGraphBuilder::VisitNew( |
| void BytecodeGraphBuilder::VisitThrow( |
| const interpreter::BytecodeArrayIterator& iterator) { |
| - UNIMPLEMENTED(); |
| + Node* value = environment()->LookupAccumulator(); |
| + // TODO(mythria): Change it Runtime::kThrow when we have deoptimization |
|
oth
2015/11/30 10:01:11
nit s/it/to/
mythria
2015/11/30 10:35:07
Done.
|
| + // information support in the interpreter. |
| + NewNode(javascript()->CallRuntime(Runtime::kReThrow, 1), value); |
| + Node* control = NewNode(common()->Throw(), value); |
| + UpdateControlDependencyToLeaveFunction(control); |
| + environment()->BindAccumulator(value); |
| } |