1 // Copyright 2022 the V8 project authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef V8_MAGLEV_MAGLEV_CODE_GENERATOR_H_ 6 #define V8_MAGLEV_MAGLEV_CODE_GENERATOR_H_ 7 8 #include "src/common/globals.h" 9 10 namespace v8 { 11 namespace internal { 12 namespace maglev { 13 14 class Graph; 15 class MaglevCompilationUnit; 16 17 class MaglevCodeGenerator : public AllStatic { 18 public: 19 static MaybeHandle<Code> Generate(MaglevCompilationUnit* compilation_unit, 20 Graph* graph); 21 }; 22 23 } // namespace maglev 24 } // namespace internal 25 } // namespace v8 26 27 #endif // V8_MAGLEV_MAGLEV_CODE_GENERATOR_H_ 28