#include <optional>
#include "src/asmjs/asm-js.h"
#include "src/codegen/compilation-cache.h"
#include "src/codegen/compiler.h"
#include "src/common/assert-scope.h"
#include "src/common/globals.h"
#include "src/common/message-template.h"
#include "src/deoptimizer/deoptimizer.h"
#include "src/execution/arguments-inl.h"
#include "src/execution/frames-inl.h"
#include "src/execution/isolate-inl.h"
#include "src/objects/js-array-buffer-inl.h"
#include "src/objects/objects-inl.h"
#include "src/objects/shared-function-info.h"
namespace v8::internal {
namespace {
void LogExecution(Isolate* isolate, DirectHandle<JSFunction> function) { … }
}
RUNTIME_FUNCTION(Runtime_CompileLazy) { … }
RUNTIME_FUNCTION(Runtime_InstallBaselineCode) { … }
RUNTIME_FUNCTION(Runtime_InstallSFICode) { … }
RUNTIME_FUNCTION(Runtime_CompileOptimized) { … }
RUNTIME_FUNCTION(Runtime_FunctionLogNextExecution) { … }
RUNTIME_FUNCTION(Runtime_HealOptimizedCodeSlot) { … }
enum AsmJsInstantiateResult { … };
RUNTIME_FUNCTION(Runtime_InstantiateAsmJs) { … }
namespace {
bool TryGetOptimizedOsrCode(Isolate* isolate, Tagged<FeedbackVector> vector,
const interpreter::BytecodeArrayIterator& it,
Tagged<Code>* code_out) { … }
void DeoptAllOsrLoopsContainingDeoptExit(Isolate* isolate,
Tagged<JSFunction> function,
BytecodeOffset deopt_exit_offset) { … }
}
RUNTIME_FUNCTION(Runtime_NotifyDeoptimized) { … }
RUNTIME_FUNCTION(Runtime_ObserveNode) { … }
RUNTIME_FUNCTION(Runtime_VerifyType) { … }
RUNTIME_FUNCTION(Runtime_CheckTurboshaftTypeOf) { … }
namespace {
void GetOsrOffsetAndFunctionForOSR(Isolate* isolate, BytecodeOffset* osr_offset,
Handle<JSFunction>* function) { … }
Tagged<Object> CompileOptimizedOSR(Isolate* isolate,
Handle<JSFunction> function,
CodeKind min_opt_level,
BytecodeOffset osr_offset) { … }
}
RUNTIME_FUNCTION(Runtime_CompileOptimizedOSR) { … }
namespace {
Tagged<Object> CompileOptimizedOSRFromMaglev(Isolate* isolate,
Handle<JSFunction> function,
BytecodeOffset osr_offset) { … }
}
RUNTIME_FUNCTION(Runtime_CompileOptimizedOSRFromMaglev) { … }
RUNTIME_FUNCTION(Runtime_CompileOptimizedOSRFromMaglevInlined) { … }
RUNTIME_FUNCTION(Runtime_LogOrTraceOptimizedOSREntry) { … }
static Tagged<Object> CompileGlobalEval(Isolate* isolate,
Handle<i::Object> source_object,
Handle<SharedFunctionInfo> outer_info,
LanguageMode language_mode,
int eval_scope_info_index,
int eval_position) { … }
RUNTIME_FUNCTION(Runtime_ResolvePossiblyDirectEval) { … }
}