Commit 2e73e042 authored by Lu Yahan's avatar Lu Yahan Committed by V8 LUCI CQ

[riscv64][compiler] Remove OptimizationMarker::kLogFirstExecution

Port 54604990

Change-Id: I011a9bf1329e7499cb8d288186a098e6768e1436
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3419126
Auto-Submit: Yahan Lu <yahan@iscas.ac.cn>
Reviewed-by: 's avatarji qiu <qiuji@iscas.ac.cn>
Commit-Queue: ji qiu <qiuji@iscas.ac.cn>
Cr-Commit-Position: refs/heads/main@{#78827}
parent ea8da506
......@@ -973,9 +973,6 @@ static void MaybeOptimizeCode(MacroAssembler* masm, Register feedback_vector,
// 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);
......@@ -983,9 +980,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();
}
......@@ -1102,9 +1098,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),
Label::Distance::kNear);
}
......
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