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_H_ 6 #define V8_MAGLEV_MAGLEV_H_ 7 8 #ifdef V8_ENABLE_MAGLEV 9 10 #include "src/handles/handles.h" 11 12 namespace v8 { 13 namespace internal { 14 15 class Isolate; 16 class JSFunction; 17 18 class Maglev : public AllStatic { 19 public: 20 static MaybeHandle<CodeT> Compile(Isolate* isolate, 21 Handle<JSFunction> function); 22 }; 23 24 } // namespace internal 25 } // namespace v8 26 27 #endif // V8_ENABLE_MAGLEV 28 #endif // V8_MAGLEV_MAGLEV_H_ 29