diff --git a/compiler/optimizer/ir_builder/ecmascript_inst_builder.h b/compiler/optimizer/ir_builder/ecmascript_inst_builder.h index 1ddfdf57e84c0db6d025e95a2b23597191689cfe..6e6597601171f8ae3038b469522488d6d96406e5 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 cfc856db2fdb2264cab7032ed5264fa4854b1cc0..f36a658ae00f8920467f88ee170fb6057d116bf9 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 bcfff009484c376f224174c62a30160785482cde..19d23b69000400079fca3477da19f7949221c0a5 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(); }