Commit 1ac4eb21 authored by leszeks's avatar leszeks Committed by Commit bot

[turbofan] Fix a copy/paste error in MarkerIs[Not]FrameType

Make MarkerIs[Not]FrameType actually use their argument instead of a
fixed value for the stack frame type.

Review-Url: https://codereview.chromium.org/2709953002
Cr-Commit-Position: refs/heads/master@{#43454}
parent c45da1b4
......@@ -8373,16 +8373,14 @@ Node* CodeStubAssembler::AllocatePromiseReactionJobInfo(
Node* CodeStubAssembler::MarkerIsFrameType(Node* marker_or_function,
StackFrame::Type frame_type) {
return WordEqual(
marker_or_function,
IntPtrConstant(StackFrame::TypeToMarker(StackFrame::ARGUMENTS_ADAPTOR)));
return WordEqual(marker_or_function,
IntPtrConstant(StackFrame::TypeToMarker(frame_type)));
}
Node* CodeStubAssembler::MarkerIsNotFrameType(Node* marker_or_function,
StackFrame::Type frame_type) {
return WordNotEqual(
marker_or_function,
IntPtrConstant(StackFrame::TypeToMarker(StackFrame::ARGUMENTS_ADAPTOR)));
return WordNotEqual(marker_or_function,
IntPtrConstant(StackFrame::TypeToMarker(frame_type)));
}
void CodeStubAssembler::Print(const char* s) {
......
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