[cleanup][execution] Remove redundant NOLINT annotations

cpplint rules change over time, and we change the exact rules we enable
for v8. This CL removes NOLINT annotations which are not needed
according to the currently enabled rules.

R=jkummerow@chromium.org

Bug: v8:11717
Change-Id: I29e8dfca88f871b5d6b4c6422d036157021514da
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2862762
Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#74302}
This commit is contained in:
Clemens Backes 2021-04-30 14:01:34 +02:00 committed by V8 LUCI CQ
parent 379331b7a4
commit d665f40fa2
12 changed files with 22 additions and 27 deletions

View File

@ -42,7 +42,7 @@ DEFINE_LAZY_LEAKY_OBJECT_GETTER(Simulator::GlobalMonitor,
// SScanF not being implemented in a platform independent way through
// ::v8::internal::OS in the same way as SNPrintF is that the
// Windows C Run-Time Library does not provide vsscanf.
#define SScanF sscanf // NOLINT
#define SScanF sscanf
// The ArmDebugger class is used by the simulator while debugging simulated ARM
// code.

View File

@ -34,7 +34,7 @@ namespace internal {
// SScanF not being implemented in a platform independent way through
// ::v8::internal::OS in the same way as SNPrintF is that the
// Windows C Run-Time Library does not provide vsscanf.
#define SScanF sscanf // NOLINT
#define SScanF sscanf
// Helpers for colors.
#define COLOUR(colour_code) "\033[0;" colour_code "m"

View File

@ -390,23 +390,23 @@ inline static int FrameSlotToFPOffset(int slot) {
} // namespace v8
#if V8_TARGET_ARCH_IA32
#include "src/execution/ia32/frame-constants-ia32.h" // NOLINT
#include "src/execution/ia32/frame-constants-ia32.h"
#elif V8_TARGET_ARCH_X64
#include "src/execution/x64/frame-constants-x64.h" // NOLINT
#include "src/execution/x64/frame-constants-x64.h"
#elif V8_TARGET_ARCH_ARM64
#include "src/execution/arm64/frame-constants-arm64.h" // NOLINT
#include "src/execution/arm64/frame-constants-arm64.h"
#elif V8_TARGET_ARCH_ARM
#include "src/execution/arm/frame-constants-arm.h" // NOLINT
#include "src/execution/arm/frame-constants-arm.h"
#elif V8_TARGET_ARCH_PPC || V8_TARGET_ARCH_PPC64
#include "src/execution/ppc/frame-constants-ppc.h" // NOLINT
#include "src/execution/ppc/frame-constants-ppc.h"
#elif V8_TARGET_ARCH_MIPS
#include "src/execution/mips/frame-constants-mips.h" // NOLINT
#include "src/execution/mips/frame-constants-mips.h"
#elif V8_TARGET_ARCH_MIPS64
#include "src/execution/mips64/frame-constants-mips64.h" // NOLINT
#include "src/execution/mips64/frame-constants-mips64.h"
#elif V8_TARGET_ARCH_S390
#include "src/execution/s390/frame-constants-s390.h" // NOLINT
#include "src/execution/s390/frame-constants-s390.h"
#elif V8_TARGET_ARCH_RISCV64
#include "src/execution/riscv64/frame-constants-riscv64.h" // NOLINT
#include "src/execution/riscv64/frame-constants-riscv64.h"
#else
#error Unsupported target architecture.
#endif

View File

@ -138,9 +138,7 @@ class StackFrame {
INNER_JSENTRY_FRAME = (0 << kSmiTagSize) | kSmiTag,
OUTERMOST_JSENTRY_FRAME = (1 << kSmiTagSize) | kSmiTag
};
// NOLINTNEXTLINE(runtime/references) (false positive)
STATIC_ASSERT((INNER_JSENTRY_FRAME & kHeapObjectTagMask) != kHeapObjectTag);
// NOLINTNEXTLINE(runtime/references) (false positive)
STATIC_ASSERT((OUTERMOST_JSENTRY_FRAME & kHeapObjectTagMask) !=
kHeapObjectTag);

View File

@ -7,7 +7,7 @@
#include <stdlib.h>
#include <atomic>
#include <fstream> // NOLINT(readability/streams)
#include <fstream>
#include <memory>
#include <sstream>
#include <string>
@ -2709,7 +2709,6 @@ void Isolate::AddSharedWasmMemory(Handle<WasmMemoryObject> memory_object) {
}
#endif // V8_ENABLE_WEBASSEMBLY
// NOLINTNEXTLINE
Isolate::PerIsolateThreadData::~PerIsolateThreadData() {
#if defined(USE_SIMULATOR)
delete simulator_;
@ -3585,7 +3584,7 @@ bool Isolate::Init(SnapshotData* startup_snapshot_data,
metrics_recorder_ = std::make_shared<metrics::Recorder>();
{ // NOLINT
{
// Ensure that the thread has a valid stack guard. The v8::Locker object
// will ensure this too, but we don't have to use lockers if we are only
// using one thread.

View File

@ -1205,8 +1205,7 @@ class V8_EXPORT_PRIVATE Isolate final : private HiddenFactory {
v8::internal::Factory* factory() {
// Upcast to the privately inherited base-class using c-style casts to avoid
// undefined behavior (as static_cast cannot cast across private bases).
// NOLINTNEXTLINE (google-readability-casting)
return (v8::internal::Factory*)this; // NOLINT(readability/casting)
return (v8::internal::Factory*)this;
}
static const int kJSRegexpStaticOffsetsVectorSize = 128;

View File

@ -62,8 +62,7 @@ class V8_EXPORT_PRIVATE LocalIsolate final : private HiddenLocalFactory {
v8::internal::LocalFactory* factory() {
// Upcast to the privately inherited base-class using c-style casts to avoid
// undefined behavior (as static_cast cannot cast across private bases).
// NOLINTNEXTLINE (google-readability-casting)
return (v8::internal::LocalFactory*)this; // NOLINT(readability/casting)
return (v8::internal::LocalFactory*)this;
}
bool has_pending_exception() const { return false; }

View File

@ -47,7 +47,7 @@ uint32_t get_fcsr_condition_bit(uint32_t cc) {
// SScanF not being implemented in a platform independent was through
// ::v8::internal::OS in the same way as SNPrintF is that the Windows C Run-Time
// Library does not provide vsscanf.
#define SScanF sscanf // NOLINT
#define SScanF sscanf
// The MipsDebugger class is used by the simulator while debugging simulated
// code.

View File

@ -64,7 +64,7 @@ static int64_t MultiplyHighSigned(int64_t u, int64_t v) {
// SScanF not being implemented in a platform independent was through
// ::v8::internal::OS in the same way as SNPrintF is that the Windows C Run-Time
// Library does not provide vsscanf.
#define SScanF sscanf // NOLINT
#define SScanF sscanf
// The MipsDebugger class is used by the simulator while debugging simulated
// code.

View File

@ -39,7 +39,7 @@ DEFINE_LAZY_LEAKY_OBJECT_GETTER(Simulator::GlobalMonitor,
// SScanF not being implemented in a platform independent way through
// ::v8::internal::OS in the same way as SNPrintF is that the
// Windows C Run-Time Library does not provide vsscanf.
#define SScanF sscanf // NOLINT
#define SScanF sscanf
// The PPCDebugger class is used by the simulator while debugging simulated
// PowerPC code.
@ -4928,7 +4928,7 @@ void Simulator::ExecuteGeneric(Instruction* instr) {
break;
}
}
} // NOLINT
}
void Simulator::Trace(Instruction* instr) {
disasm::NameConverter converter;

View File

@ -93,7 +93,7 @@ static inline int32_t get_ebreak_code(Instruction* instr) {
// SScanF not being implemented in a platform independent was through
// ::v8::internal::OS in the same way as SNPrintF is that the Windows C Run-Time
// Library does not provide vsscanf.
#define SScanF sscanf // NOLINT
#define SScanF sscanf
// The RiscvDebugger class is used by the simulator while debugging simulated
// code.

View File

@ -34,7 +34,7 @@ namespace internal {
// SScanF not being implemented in a platform independent way through
// ::v8::internal::OS in the same way as SNPrintF is that the
// Windows C Run-Time Library does not provide vsscanf.
#define SScanF sscanf // NOLINT
#define SScanF sscanf
const Simulator::fpr_t Simulator::fp_zero;
@ -1560,7 +1560,7 @@ void Simulator::EvalTableInit() {
EvalTable[CZXT] = &Simulator::Evaluate_CZXT;
EvalTable[CDZT] = &Simulator::Evaluate_CDZT;
EvalTable[CXZT] = &Simulator::Evaluate_CXZT;
} // NOLINT
}
Simulator::Simulator(Isolate* isolate) : isolate_(isolate) {
static base::OnceType once = V8_ONCE_INIT;