V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
v8::internal::OptimizedCompilationInfo Class Referencefinal

Classes

struct  InlinedFunctionHolder
 

Public Types

enum  Flag {
  kAccessorInliningEnabled = 1 << 0, kFunctionContextSpecializing = 1 << 1, kInliningEnabled = 1 << 2, kDisableFutureOptimization = 1 << 3,
  kSplittingEnabled = 1 << 4, kSourcePositionsEnabled = 1 << 5, kBailoutOnUninitialized = 1 << 6, kLoopPeelingEnabled = 1 << 7,
  kUntrustedCodeMitigations = 1 << 8, kSwitchJumpTableEnabled = 1 << 9, kCalledWithCodeStartRegister = 1 << 10, kPoisonRegisterArguments = 1 << 11,
  kAllocationFoldingEnabled = 1 << 12, kAnalyzeEnvironmentLiveness = 1 << 13, kTraceTurboJson = 1 << 14, kTraceTurboGraph = 1 << 15,
  kTraceTurboScheduled = 1 << 16, kWasmRuntimeExceptionSupport = 1 << 17
}
 
typedef std::vector< InlinedFunctionHolderInlinedFunctionList
 

Public Member Functions

 OptimizedCompilationInfo (Zone *zone, Isolate *isolate, Handle< SharedFunctionInfo > shared, Handle< JSFunction > closure)
 
 OptimizedCompilationInfo (Vector< const char > debug_name, Zone *zone, Code::Kind code_kind)
 
Zonezone ()
 
bool is_osr () const
 
Handle< SharedFunctionInfoshared_info () const
 
bool has_shared_info () const
 
Handle< BytecodeArraybytecode_array () const
 
bool has_bytecode_array () const
 
Handle< JSFunctionclosure () const
 
Handle< Codecode () const
 
Code::Kind code_kind () const
 
uint32_t stub_key () const
 
void set_stub_key (uint32_t stub_key)
 
int32_t builtin_index () const
 
void set_builtin_index (int32_t index)
 
BailoutId osr_offset () const
 
JavaScriptFrameosr_frame () const
 
void MarkAsFunctionContextSpecializing ()
 
bool is_function_context_specializing () const
 
void MarkAsAccessorInliningEnabled ()
 
bool is_accessor_inlining_enabled () const
 
void MarkAsSourcePositionsEnabled ()
 
bool is_source_positions_enabled () const
 
void MarkAsInliningEnabled ()
 
bool is_inlining_enabled () const
 
void SetPoisoningMitigationLevel (PoisoningMitigationLevel poisoning_level)
 
PoisoningMitigationLevel GetPoisoningMitigationLevel () const
 
void MarkAsSplittingEnabled ()
 
bool is_splitting_enabled () const
 
void MarkAsBailoutOnUninitialized ()
 
bool is_bailout_on_uninitialized () const
 
void MarkAsLoopPeelingEnabled ()
 
bool is_loop_peeling_enabled () const
 
bool has_untrusted_code_mitigations () const
 
bool switch_jump_table_enabled () const
 
bool called_with_code_start_register () const
 
void MarkAsPoisoningRegisterArguments ()
 
bool is_poisoning_register_arguments () const
 
void MarkAsAllocationFoldingEnabled ()
 
bool is_allocation_folding_enabled () const
 
void MarkAsAnalyzeEnvironmentLiveness ()
 
bool is_analyze_environment_liveness () const
 
void SetWasmRuntimeExceptionSupport ()
 
bool wasm_runtime_exception_support ()
 
bool trace_turbo_json_enabled () const
 
bool trace_turbo_graph_enabled () const
 
bool trace_turbo_scheduled_enabled () const
 
void SetCode (Handle< Code > code)
 
bool has_context () const
 
Context context () const
 
bool has_native_context () const
 
Context native_context () const
 
bool has_global_object () const
 
JSGlobalObjectglobal_object () const
 
bool IsOptimizing () const
 
bool IsWasm () const
 
bool IsStub () const
 
void SetOptimizingForOsr (BailoutId osr_offset, JavaScriptFrame *osr_frame)
 
void set_deferred_handles (std::shared_ptr< DeferredHandles > deferred_handles)
 
void set_deferred_handles (DeferredHandles *deferred_handles)
 
std::shared_ptr< DeferredHandlesdeferred_handles ()
 
void ReopenHandlesInNewHandleScope (Isolate *isolate)
 
void AbortOptimization (BailoutReason reason)
 
void RetryOptimization (BailoutReason reason)
 
BailoutReason bailout_reason () const
 
int optimization_id () const
 
InlinedFunctionList & inlined_functions ()
 
int AddInlinedFunction (Handle< SharedFunctionInfo > inlined_function, Handle< BytecodeArray > inlined_bytecode, SourcePosition pos)
 
std::unique_ptr< char[]> GetDebugName () const
 
StackFrame::Type GetOutputStackFrameType () const
 
const chartrace_turbo_filename () const
 
void set_trace_turbo_filename (std::unique_ptr< char[]> filename)
 

Detailed Description

Definition at line 32 of file optimized-compilation-info.h.


The documentation for this class was generated from the following files: