Commit 0ec82d51 authored by Joyee Cheung's avatar Joyee Cheung Committed by Commit Bot

Fix compilation of V8_TRACE_FEEDBACK_UPDATES V8_TRACE_IGNITION

The `->` operator should be changed to `.` after
https://chromium-review.googlesource.com/c/v8/v8/+/1624209

Change-Id: Ie16adaa17bfc7caaa589ed3881a8716e98ea36b8
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1628793Reviewed-by: 's avatarIgor Sheludko <ishell@chromium.org>
Commit-Queue: Joyee Cheung <joyee@igalia.com>
Cr-Commit-Position: refs/heads/master@{#61848}
parent b25557b3
......@@ -347,7 +347,7 @@ void IC::OnFeedbackChanged(Isolate* isolate, FeedbackVector vector,
#ifdef V8_TRACE_FEEDBACK_UPDATES
if (FLAG_trace_feedback_updates) {
int slot_count = vector->metadata()->slot_count();
int slot_count = vector.metadata().slot_count();
StdoutStream os;
if (slot.IsInvalid()) {
......@@ -355,12 +355,12 @@ void IC::OnFeedbackChanged(Isolate* isolate, FeedbackVector vector,
} else {
os << "[Feedback slot " << slot.ToInt() << "/" << slot_count << " in ";
}
vector->shared_function_info()->ShortPrint(os);
vector.shared_function_info().ShortPrint(os);
if (slot.IsInvalid()) {
os << " updated - ";
} else {
os << " updated to ";
vector->FeedbackSlotPrint(os, slot);
vector.FeedbackSlotPrint(os, slot);
os << " - ";
}
os << reason << "]" << std::endl;
......
......@@ -84,7 +84,7 @@ void PrintRegisters(Isolate* isolate, std::ostream& os, bool is_input,
<< interpreter::Register(reg_index).ToString(
bytecode_iterator.bytecode_array()->parameter_count())
<< kArrowDirection;
reg_object->ShortPrint(os);
reg_object.ShortPrint(os);
os << " ]" << std::endl;
}
}
......@@ -173,13 +173,13 @@ RUNTIME_FUNCTION(Runtime_InterpreterTraceUpdateFeedback) {
CONVERT_SMI_ARG_CHECKED(slot, 1);
CONVERT_ARG_CHECKED(String, reason, 2);
int slot_count = function->feedback_vector()->metadata()->slot_count();
int slot_count = function->feedback_vector().metadata().slot_count();
StdoutStream os;
os << "[Feedback slot " << slot << "/" << slot_count << " in ";
function->shared()->ShortPrint(os);
function->shared().ShortPrint(os);
os << " updated to ";
function->feedback_vector()->FeedbackSlotPrint(os, FeedbackSlot(slot));
function->feedback_vector().FeedbackSlotPrint(os, FeedbackSlot(slot));
os << " - ";
StringCharacterStream stream(reason);
......
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