maglev.h 626 Bytes
Newer Older
1 2 3 4 5 6 7
// Copyright 2022 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef V8_MAGLEV_MAGLEV_H_
#define V8_MAGLEV_MAGLEV_H_

8
#ifdef V8_ENABLE_MAGLEV
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26

#include "src/handles/handles.h"

namespace v8 {
namespace internal {

class Isolate;
class JSFunction;

class Maglev : public AllStatic {
 public:
  static MaybeHandle<CodeT> Compile(Isolate* isolate,
                                    Handle<JSFunction> function);
};

}  // namespace internal
}  // namespace v8

27
#endif  // V8_ENABLE_MAGLEV
28
#endif  // V8_MAGLEV_MAGLEV_H_