From 0cca4e146385bb18e4a3a449d893d5459dd53249 Mon Sep 17 00:00:00 2001 From: Mikhail Kaskov Date: Wed, 24 Aug 2022 10:46:53 +0300 Subject: [PATCH] Cleanup codestyle naming link with compiler Fixed "readability-indentidier-naming" link with compiler Signed-off-by: Mikhail Kaskov --- compiler/optimizer/ir_builder/ecmascript_inst_builder.h | 6 +++--- compiler/templates/ecmascript_inst_builder_gen.cpp.erb | 2 +- tests/compiler/unit_ecma_test.cpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/compiler/optimizer/ir_builder/ecmascript_inst_builder.h b/compiler/optimizer/ir_builder/ecmascript_inst_builder.h index 1ddfdf57e..6e6597601 100644 --- a/compiler/optimizer/ir_builder/ecmascript_inst_builder.h +++ b/compiler/optimizer/ir_builder/ecmascript_inst_builder.h @@ -17,12 +17,12 @@ #define PLUGINS_ECMASCRIPT_COMPILER_OPTIMIZER_IR_BUILDER_ECMASCRIPT_INST_BUILDER_H void BuildEcma([[maybe_unused]] const BytecodeInstruction *bc_inst); -template +template void BuildEcmaAsIntrinsics([[maybe_unused]] const BytecodeInstruction *bc_inst); void BuildEcmaFromIrtoc([[maybe_unused]] const BytecodeInstruction *bc_inst); -template +template void BuildStGlobalVar(const BytecodeInstruction *bc_inst, size_t type_id); -template +template void BuildLdGlobalVar(const BytecodeInstruction *bc_inst, size_t type_id); void BuildEcmaFnCall(const BytecodeInstruction *bc_inst, bool is_range, bool call_this, uint64_t num_args = 0); diff --git a/compiler/templates/ecmascript_inst_builder_gen.cpp.erb b/compiler/templates/ecmascript_inst_builder_gen.cpp.erb index cfc856db2..f36a658ae 100644 --- a/compiler/templates/ecmascript_inst_builder_gen.cpp.erb +++ b/compiler/templates/ecmascript_inst_builder_gen.cpp.erb @@ -46,7 +46,7 @@ void InstBuilder::BuildEcma([[maybe_unused]] const BytecodeInstruction* bc_inst) if (GetGraph()->IsBytecodeOptimizer()) { BuildEcmaAsIntrinsics(bc_inst); } else { - if (options.IsCompilerInlineFullIntrinsics()) { + if (OPTIONS.IsCompilerInlineFullIntrinsics()) { BuildEcmaFromIrtoc(bc_inst); } else { BuildEcmaAsIntrinsics(bc_inst); diff --git a/tests/compiler/unit_ecma_test.cpp b/tests/compiler/unit_ecma_test.cpp index bcfff0094..19d23b690 100644 --- a/tests/compiler/unit_ecma_test.cpp +++ b/tests/compiler/unit_ecma_test.cpp @@ -170,6 +170,6 @@ int main(int argc, char **argv) ::testing::InitGoogleTest(&argc, argv); panda::compiler::PandaRuntimeTest::Initialize(argc, argv); - panda::compiler::options.SetCompilerUseSafepoint(false); + panda::compiler::OPTIONS.SetCompilerUseSafepoint(false); return RUN_ALL_TESTS(); } -- Gitee