Chromium Code Reviews| Index: src/full-codegen/x64/full-codegen-x64.cc |
| diff --git a/src/full-codegen/x64/full-codegen-x64.cc b/src/full-codegen/x64/full-codegen-x64.cc |
| index 0e5cf985b8d9286f4192c9d6c6db93fcbae0b2e7..a36aa2721e9e67a451c09a4a60e9ab5d610bef2d 100644 |
| --- a/src/full-codegen/x64/full-codegen-x64.cc |
| +++ b/src/full-codegen/x64/full-codegen-x64.cc |
| @@ -1773,7 +1773,8 @@ void FullCodeGenerator::VisitYield(Yield* expr) { |
| EmitUnwindAndReturn(); |
| __ bind(&exception); |
| - __ CallRuntime(Runtime::kThrow); |
| + __ CallRuntime(IsAsyncFunction(literal()->kind()) ? Runtime::kReThrow |
| + : Runtime::kThrow); |
|
Dan Ehrenberg
2016/07/07 00:25:41
LGTM
|
| __ bind(&suspend); |
| OperandStackDepthIncrement(1); // Not popped on this path. |