Commit e78a351f authored by Liu Yu's avatar Liu Yu Committed by V8 LUCI CQ

[loong64][compiler] Remove OptimizationMarker::kLogFirstExecution

Port commit 54604990

Bug: chromium:757467
Change-Id: I1e6f9a63e864b0927ccd07a433479700808a95bb
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3420184
Auto-Submit: Yu Liu <liuyu@loongson.cn>
Reviewed-by: 's avatarZhao Jiazhong <zhaojiazhong-hf@loongson.cn>
Commit-Queue: Zhao Jiazhong <zhaojiazhong-hf@loongson.cn>
Cr-Commit-Position: refs/heads/main@{#78808}
parent 126e6196
......@@ -912,12 +912,6 @@ static void MaybeOptimizeCode(MacroAssembler* masm, Register feedback_vector,
// -----------------------------------
DCHECK(!AreAliased(feedback_vector, a1, a3, optimization_marker));
// TODO(v8:8394): The logging of first execution will break if
// feedback vectors are not allocated. We need to find a different way of
// logging these events if required.
TailCallRuntimeIfMarkerEquals(masm, optimization_marker,
OptimizationMarker::kLogFirstExecution,
Runtime::kFunctionFirstExecution);
TailCallRuntimeIfMarkerEquals(masm, optimization_marker,
OptimizationMarker::kCompileOptimized,
Runtime::kCompileOptimized_NotConcurrent);
......@@ -925,9 +919,8 @@ static void MaybeOptimizeCode(MacroAssembler* masm, Register feedback_vector,
OptimizationMarker::kCompileOptimizedConcurrent,
Runtime::kCompileOptimized_Concurrent);
// Marker should be one of LogFirstExecution / CompileOptimized /
// CompileOptimizedConcurrent. InOptimizationQueue and None shouldn't reach
// here.
// Marker should be one of CompileOptimized / CompileOptimizedConcurrent.
// InOptimizationQueue and None shouldn't reach here.
if (FLAG_debug_code) {
__ stop();
}
......@@ -1038,9 +1031,8 @@ static void MaybeOptimizeCodeOrTailCallOptimizedCodeSlot(
{
UseScratchRegisterScope temps(masm);
Register scratch = temps.Acquire();
__ And(
scratch, optimization_state,
Operand(FeedbackVector::kHasCompileOptimizedOrLogFirstExecutionMarker));
__ And(scratch, optimization_state,
Operand(FeedbackVector::kHasCompileOptimizedMarker));
__ Branch(&maybe_has_optimized_code, eq, scratch, Operand(zero_reg));
}
......
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