Commit 5733c063 authored by Tobias Tebbi's avatar Tobias Tebbi Committed by Commit Bot

[torque] improve error message for const-bound this

Bug: v8:7793
Change-Id: Id0478287b2147ea231cd19dab6d08674b632b0e9
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2159494
Commit-Queue: Tobias Tebbi <tebbi@chromium.org>
Commit-Queue: Marja Hölttä <marja@chromium.org>
Auto-Submit: Tobias Tebbi <tebbi@chromium.org>
Reviewed-by: 's avatarMarja Hölttä <marja@chromium.org>
Cr-Commit-Position: refs/heads/master@{#67304}
parent 7e0279fa
......@@ -2279,7 +2279,7 @@ void ImplementationVisitor::GenerateAssignToLocation(
VisitResult(bit_field_struct.type(), assembler().TopRange(1)));
} else {
DCHECK(reference.IsTemporary());
ReportError("cannot assign to temporary ",
ReportError("cannot assign to const-bound or temporary ",
reference.temporary_description());
}
}
......@@ -2669,7 +2669,7 @@ VisitResult ImplementationVisitor::Visit(CallMethodExpression* expr) {
LocationReference target = GetLocationReference(expr->target);
if (!target.IsVariableAccess()) {
VisitResult result = GenerateFetchFromLocation(target);
target = LocationReference::Temporary(result, "method target result");
target = LocationReference::Temporary(result, "this parameter");
}
const AggregateType* target_type =
AggregateType::DynamicCast(target.ReferencedType());
......
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