Commit a6f6d8ad authored by bmeurer's avatar bmeurer Committed by Commit bot

[crankshaft] HCall and HCallWithDescriptor should not override CalculateInferredType.

We may set a proper HType on HCall or HCallWithDescriptor nodes, for
example for the InstanceOfStub, where we know that the result is a
boolean. So HCall and HCallWithDescriptor shall not ignore the type,
but pass through whatever we set (defaulting to Tagged).

R=jarin@chromium.org

Review-Url: https://codereview.chromium.org/2024033005
Cr-Commit-Position: refs/heads/master@{#36630}
parent 0f06f80f
......@@ -2161,8 +2161,6 @@ class HCall : public HTemplateInstruction<V> {
this->SetAllSideEffects();
}
HType CalculateInferredType() final { return HType::Tagged(); }
virtual int argument_count() const {
return argument_count_;
}
......@@ -2240,8 +2238,6 @@ class HCallWithDescriptor final : public HInstruction {
DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor)
HType CalculateInferredType() final { return HType::Tagged(); }
// Defines whether this instruction corresponds to a JS call at tail position.
TailCallMode syntactic_tail_call_mode() const {
return SyntacticTailCallModeField::decode(bit_field_);
......
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