Commit 3974a655 authored by Simon Zünd's avatar Simon Zünd Committed by Commit Bot

[cleanup] Remove duplicate getter in Signature class

R=tebbi@chromium.org

Bug: v8:7793, v8:8562
Change-Id: I783a6d76edd20b73b25cc81395ecadbedd346e8b
Reviewed-on: https://chromium-review.googlesource.com/c/1447775Reviewed-by: 's avatarTobias Tebbi <tebbi@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
Cr-Commit-Position: refs/heads/master@{#59239}
parent d3b5cbea
......@@ -339,8 +339,8 @@ std::ostream& operator<<(std::ostream& os, const ParameterTypes& p) {
bool Signature::HasSameTypesAs(const Signature& other,
ParameterMode mode) const {
auto compare_types = GetTypes();
auto other_compare_types = other.GetTypes();
auto compare_types = types();
auto other_compare_types = other.types();
if (mode == ParameterMode::kIgnoreImplicit) {
compare_types = GetExplicitTypes();
other_compare_types = other.GetExplicitTypes();
......
......@@ -583,7 +583,6 @@ struct Signature {
bool HasSameTypesAs(
const Signature& other,
ParameterMode mode = ParameterMode::kProcessImplicit) const;
const TypeVector& GetTypes() const { return parameter_types.types; }
TypeVector GetImplicitTypes() const {
return TypeVector(parameter_types.types.begin(),
parameter_types.types.begin() + implicit_count);
......
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