[Interpreter] No need to read/return a value in GeneratorClose.
An oversight in Friday's CL. Thx to neis@chromium.org for the tip! BUG=v8:6351 TBR=rmcilroy@chromium.org Review-Url: https://codereview.chromium.org/2893223002 Cr-Commit-Position: refs/heads/master@{#45444}
This commit is contained in:
parent
62b0de1ef5
commit
0fb167d45d
@ -437,13 +437,10 @@ Node* IntrinsicsGenerator::GeneratorGetResumeMode(Node* args_reg,
|
|||||||
Node* IntrinsicsGenerator::GeneratorClose(Node* args_reg, Node* arg_count,
|
Node* IntrinsicsGenerator::GeneratorClose(Node* args_reg, Node* arg_count,
|
||||||
Node* context) {
|
Node* context) {
|
||||||
Node* generator = __ LoadRegister(args_reg);
|
Node* generator = __ LoadRegister(args_reg);
|
||||||
Node* const value =
|
|
||||||
__ LoadObjectField(generator, JSGeneratorObject::kResumeModeOffset);
|
|
||||||
__ StoreObjectFieldNoWriteBarrier(
|
__ StoreObjectFieldNoWriteBarrier(
|
||||||
generator, JSGeneratorObject::kContinuationOffset,
|
generator, JSGeneratorObject::kContinuationOffset,
|
||||||
__ SmiConstant(JSGeneratorObject::kGeneratorClosed));
|
__ SmiConstant(JSGeneratorObject::kGeneratorClosed));
|
||||||
|
return __ UndefinedConstant();
|
||||||
return value;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Node* IntrinsicsGenerator::AsyncGeneratorReject(Node* input, Node* arg_count,
|
Node* IntrinsicsGenerator::AsyncGeneratorReject(Node* input, Node* arg_count,
|
||||||
|
Loading…
Reference in New Issue
Block a user