Commit d5b62384 authored by gsathya's avatar gsathya Committed by Commit bot

[promises] Check if receiver is smi before loading map

BUG=v8:5343

Review-Url: https://codereview.chromium.org/2595423002
Cr-Commit-Position: refs/heads/master@{#41930}
parent 57e8acbb
...@@ -1011,6 +1011,7 @@ TF_BUILTIN(PromiseCatch, PromiseBuiltinsAssembler) { ...@@ -1011,6 +1011,7 @@ TF_BUILTIN(PromiseCatch, PromiseBuiltinsAssembler) {
Node* const context = Parameter(4); Node* const context = Parameter(4);
Label if_internalthen(this), if_customthen(this, Label::kDeferred); Label if_internalthen(this), if_customthen(this, Label::kDeferred);
GotoIf(TaggedIsSmi(promise), &if_customthen);
BranchIfFastPath(context, promise, &if_internalthen, &if_customthen); BranchIfFastPath(context, promise, &if_internalthen, &if_customthen);
Bind(&if_internalthen); Bind(&if_internalthen);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment