Home
last modified time | relevance | path

Searched refs:CodeKind (Results 1 – 25 of 84) sorted by relevance

1234

/third_party/node/deps/v8/src/objects/
Dcode-kind.h34 enum class CodeKind : uint8_t { enum
39 STATIC_ASSERT(CodeKind::INTERPRETED_FUNCTION < CodeKind::BASELINE);
40 STATIC_ASSERT(CodeKind::BASELINE < CodeKind::TURBOFAN);
48 const char* CodeKindToString(CodeKind kind);
50 const char* CodeKindToMarker(CodeKind kind);
52 inline constexpr bool CodeKindIsInterpretedJSFunction(CodeKind kind) { in CodeKindIsInterpretedJSFunction()
53 return kind == CodeKind::INTERPRETED_FUNCTION; in CodeKindIsInterpretedJSFunction()
56 inline constexpr bool CodeKindIsBaselinedJSFunction(CodeKind kind) { in CodeKindIsBaselinedJSFunction()
57 return kind == CodeKind::BASELINE; in CodeKindIsBaselinedJSFunction()
60 inline constexpr bool CodeKindIsUnoptimizedJSFunction(CodeKind kind) { in CodeKindIsUnoptimizedJSFunction()
[all …]
Dcode-kind.cc10 const char* CodeKindToString(CodeKind kind) { in CodeKindToString()
13 case CodeKind::name: \ in CodeKindToString()
21 const char* CodeKindToMarker(CodeKind kind) { in CodeKindToMarker()
23 case CodeKind::INTERPRETED_FUNCTION: in CodeKindToMarker()
25 case CodeKind::BASELINE: in CodeKindToMarker()
27 case CodeKind::MAGLEV: in CodeKindToMarker()
29 case CodeKind::TURBOFAN: in CodeKindToMarker()
Dcode-inl.h68 DCHECK_NE(GetCode().kind(), CodeKind::BASELINE); in SourcePositionTableInternal()
135 CodeKind AbstractCode::kind() { in kind()
136 return IsCode() ? GetCode().kind() : CodeKind::INTERPRETED_FUNCTION; in kind()
204 kind() != CodeKind::BASELINE,
205 kind() != CodeKind::BASELINE &&
209 kind() == CodeKind::BASELINE,
210 kind() == CodeKind::BASELINE &&
214 kind() != CodeKind::BASELINE,
215 kind() != CodeKind::BASELINE &&
218 kind() == CodeKind::BASELINE,
[all …]
Djs-function.cc24 const CodeKind kind = code().kind(); in GetAttachedCodeKinds()
72 bool JSFunction::HasAttachedCodeKind(CodeKind kind) const { in HasAttachedCodeKind()
77 bool JSFunction::HasAvailableCodeKind(CodeKind kind) const { in HasAvailableCodeKind()
87 CodeKind* highest_tier) { in HighestTierOf()
90 STATIC_ASSERT(CodeKind::TURBOFAN > CodeKind::INTERPRETED_FUNCTION); in HighestTierOf()
94 DCHECK(CodeKindIsJSFunction(static_cast<CodeKind>(highest_tier_log2))); in HighestTierOf()
95 *highest_tier = static_cast<CodeKind>(highest_tier_log2); in HighestTierOf()
101 base::Optional<CodeKind> JSFunction::GetActiveTier() const { in GetActiveTier()
112 CodeKind highest_tier; in GetActiveTier()
116 CHECK(highest_tier == CodeKind::TURBOFAN || in GetActiveTier()
[all …]
Djs-function.h156 bool HasAttachedCodeKind(CodeKind kind) const;
157 bool HasAvailableCodeKind(CodeKind kind) const;
159 base::Optional<CodeKind> GetActiveTier() const;
180 void MarkForOptimization(Isolate* isolate, CodeKind target_kind,
Dcode.h102 inline void initialize_flags(CodeKind kind, Builtin builtin_id);
119 inline CodeKind kind() const;
194 V(KindField, CodeKind, 4, _) \
412 inline CodeKind kind() const;
510 inline void initialize_flags(CodeKind kind, bool is_turbofanned,
677 V(KindField, CodeKind, 4, _) \
835 inline CodeKind kind();
Dcode.cc237 CHECK_NE(kind(), CodeKind::BASELINE); in SourcePosition()
257 CHECK_NE(kind(), CodeKind::BASELINE); in SourceStatementPosition()
407 if (kind() == CodeKind::BYTECODE_HANDLER) { in GetName()
496 if (CodeKindIsOptimizedJSFunction(kind()) && kind() != CodeKind::BASELINE) { in Disassemble()
504 : kind() == CodeKind::BASELINE ? "baseline" : "unknown") in Disassemble()
536 if (kind() != CodeKind::BASELINE) { in Disassemble()
Djs-function-inl.h239 if (code.kind() != CodeKind::BASELINE) return false; in ShouldFlushBaselineCode()
262 return code().kind() == CodeKind::BASELINE && !shared().HasBaselineCode(); in NeedsResetDueToFlushedBaselineCode()
Dshared-function-info-inl.h627 DCHECK_EQ(baseline_code.kind(), CodeKind::BASELINE); in ShouldFlushCode()
655 DCHECK_EQ(baseline_code.kind(), CodeKind::BASELINE); in HasInterpreterData()
666 DCHECK_EQ(baseline_code.kind(), CodeKind::BASELINE); in interpreter_data()
682 DCHECK_EQ(CodeT::cast(data).kind(), CodeKind::BASELINE); in HasBaselineCode()
695 DCHECK_EQ(baseline_code.kind(), CodeKind::BASELINE); in set_baseline_code()
/third_party/node/deps/v8/src/codegen/
Doptimized-compilation-info.cc26 Handle<JSFunction> closure, CodeKind code_kind, BytecodeOffset osr_offset, in OptimizedCompilationInfo()
56 base::Vector<const char> debug_name, Zone* zone, CodeKind code_kind) in OptimizedCompilationInfo()
70 case CodeKind::TURBOFAN: in ConfigureFlags()
78 case CodeKind::BYTECODE_HANDLER: in ConfigureFlags()
82 case CodeKind::BUILTIN: in ConfigureFlags()
83 case CodeKind::FOR_TESTING: in ConfigureFlags()
89 case CodeKind::WASM_FUNCTION: in ConfigureFlags()
90 case CodeKind::WASM_TO_CAPI_FUNCTION: in ConfigureFlags()
93 case CodeKind::C_WASM_ENTRY: in ConfigureFlags()
94 case CodeKind::JS_TO_JS_FUNCTION: in ConfigureFlags()
[all …]
Doptimized-compilation-info.h97 Handle<JSFunction> closure, CodeKind code_kind,
103 Handle<JSFunction> closure, CodeKind code_kind) in OptimizedCompilationInfo()
108 CodeKind code_kind);
123 CodeKind code_kind() const { return code_kind_; } in code_kind()
157 bool IsWasm() const { return code_kind() == CodeKind::WASM_FUNCTION; } in IsWasm()
255 const CodeKind code_kind_;
Dcompiler.cc118 PrintTracePrefix(scope, "compiling method", shared, CodeKind::BASELINE); in TraceStartBaselineCompile()
162 PrintTracePrefix(scope, "compiling", shared, CodeKind::BASELINE); in TraceFinishBaselineCompile()
188 CodeKind code_kind) { in TraceOptimizedCodeCacheHit()
200 CodeKind code_kind) { in TraceOptimizeForAlwaysOpt()
227 CodeKind code_kind) { in PrintTracePrefix()
236 CodeKind code_kind) { in PrintTracePrefix()
252 Handle<AbstractCode> abstract_code, CodeKind kind, in LogFunctionCompilation()
287 case CodeKind::INTERPRETED_FUNCTION: in LogFunctionCompilation()
290 case CodeKind::BASELINE: in LogFunctionCompilation()
293 case CodeKind::TURBOFAN: in LogFunctionCompilation()
[all …]
/third_party/node/deps/v8/src/execution/
Dtiering-manager.cc62 return {OptimizationReason::kHotAndStable, CodeKind::MAGLEV, in Maglev()
66 return {OptimizationReason::kHotAndStable, CodeKind::TURBOFAN, in TurbofanHotAndStable()
70 return {OptimizationReason::kSmallFunction, CodeKind::TURBOFAN, in TurbofanSmallFunction()
76 CodeKind::TURBOFAN, ConcurrencyMode::kConcurrent}; in DoNotOptimize()
84 CodeKind code_kind;
90 CodeKind code_kind, in OptimizationDecision()
132 void TraceManualRecompile(JSFunction function, CodeKind code_kind, in TraceManualRecompile()
142 void TieringManager::Optimize(JSFunction function, CodeKind code_kind, in Optimize()
176 bool TiersUpToMaglev(CodeKind code_kind) { in TiersUpToMaglev()
181 bool TiersUpToMaglev(base::Optional<CodeKind> code_kind) { in TiersUpToMaglev()
[all …]
Dtiering-manager.h21 enum class CodeKind : uint8_t;
24 void TraceManualRecompile(JSFunction function, CodeKind code_kind,
48 CodeKind code_kind);
50 OptimizationDecision ShouldOptimize(JSFunction function, CodeKind code_kind,
52 void Optimize(JSFunction function, CodeKind code_kind,
Dframes.cc656 case CodeKind::BUILTIN: in ComputeType()
675 case CodeKind::TURBOFAN: in ComputeType()
676 case CodeKind::MAGLEV: in ComputeType()
678 case CodeKind::BASELINE: in ComputeType()
681 case CodeKind::JS_TO_WASM_FUNCTION: in ComputeType()
683 case CodeKind::JS_TO_JS_FUNCTION: in ComputeType()
685 case CodeKind::C_WASM_ENTRY: in ComputeType()
687 case CodeKind::WASM_TO_JS_FUNCTION: in ComputeType()
689 case CodeKind::WASM_FUNCTION: in ComputeType()
690 case CodeKind::WASM_TO_CAPI_FUNCTION: in ComputeType()
[all …]
/third_party/node/deps/v8/src/compiler/
Dpipeline.h53 CodeKind code_kind, bool has_script,
68 CallDescriptor* call_descriptor, MachineGraph* mcgraph, CodeKind kind,
75 std::unique_ptr<Zone> zone, Graph* graph, CodeKind kind,
82 JSGraph* jsgraph, SourcePositionTable* source_positions, CodeKind kind,
Dbytecode-graph-builder.h50 int inlining_id, CodeKind code_kind,
Dpipeline-statistics.h71 CodeKind code_kind_;
/third_party/node/deps/v8/src/runtime/
Druntime-compiler.cc33 CodeKind target_kind, ConcurrencyMode mode) { in CompileOptimized()
99 return CompileOptimized(isolate, function, CodeKind::MAGLEV, in RUNTIME_FUNCTION()
107 return CompileOptimized(isolate, function, CodeKind::MAGLEV, in RUNTIME_FUNCTION()
115 return CompileOptimized(isolate, function, CodeKind::TURBOFAN, in RUNTIME_FUNCTION()
123 return CompileOptimized(isolate, function, CodeKind::TURBOFAN, in RUNTIME_FUNCTION()
241 frame->LookupCode().kind() == CodeKind::BASELINE); in RUNTIME_FUNCTION()
Druntime-test.cc223 template <CodeKind code_kind>
228 bool CanOptimizeFunction<CodeKind::TURBOFAN>( in CanOptimizeFunction()
261 CodeKind kind = CodeKindForTopTier(); in CanOptimizeFunction()
277 bool CanOptimizeFunction<CodeKind::MAGLEV>(Handle<JSFunction> function, in CanOptimizeFunction()
287 return function->GetActiveTier() < CodeKind::MAGLEV; in CanOptimizeFunction()
300 static constexpr CodeKind kCodeKind = CodeKind::TURBOFAN; in OptimizeFunctionOnNextCall()
332 function->MarkForOptimization(isolate, CodeKind::TURBOFAN, concurrency_mode); in OptimizeFunctionOnNextCall()
442 static constexpr CodeKind kCodeKind = CodeKind::MAGLEV; in RUNTIME_FUNCTION()
629 function->MarkForOptimization(isolate, CodeKind::TURBOFAN, in RUNTIME_FUNCTION()
701 if (sfi->abstract_code(isolate).kind() != CodeKind::INTERPRETED_FUNCTION && in RUNTIME_FUNCTION()
[all …]
/third_party/node/deps/v8/src/diagnostics/
Dperf-jit.cc218 (abstract_code->kind() != CodeKind::INTERPRETED_FUNCTION && in LogRecordedBuffer()
219 abstract_code->kind() != CodeKind::TURBOFAN && in LogRecordedBuffer()
220 abstract_code->kind() != CodeKind::MAGLEV && in LogRecordedBuffer()
221 abstract_code->kind() != CodeKind::BASELINE)) { in LogRecordedBuffer()
238 if (code->kind() != CodeKind::JS_TO_WASM_FUNCTION && in LogRecordedBuffer()
239 code->kind() != CodeKind::WASM_TO_JS_FUNCTION) { in LogRecordedBuffer()
/third_party/node/deps/v8/src/builtins/
Dsetup-builtins-internal.cc77 Handle<Code> code = Factory::CodeBuilder(isolate, desc, CodeKind::BUILTIN) in BuildPlaceholder()
117 Handle<Code> code = Factory::CodeBuilder(isolate, desc, CodeKind::BUILTIN) in BuildWithMacroAssembler()
142 Handle<Code> code = Factory::CodeBuilder(isolate, desc, CodeKind::BUILTIN) in BuildAdaptor()
159 compiler::CodeAssemblerState state(isolate, &zone, argc, CodeKind::BUILTIN, in BuildWithCodeStubAssemblerJS()
184 CodeKind::BUILTIN, name, builtin); in BuildWithCodeStubAssemblerCS()
/third_party/node/deps/v8/src/logging/
Dlog.cc96 CodeKind kind = code.kind(); in ComputeMarker()
99 if (FLAG_interpreted_frames_native_stack && kind == CodeKind::BUILTIN && in ComputeMarker()
103 kind = CodeKind::INTERPRETED_FUNCTION; in ComputeMarker()
106 kind == CodeKind::INTERPRETED_FUNCTION) { in ComputeMarker()
1183 CodeKind kind, uint8_t* address, int size, in AppendCodeCreateHeader()
1238 if (code->kind() != CodeKind::BASELINE) { in LogSourceCodeInformation()
1409 AppendCodeCreateHeader(msg, tag, CodeKind::WASM_FUNCTION, in CodeCreateEvent()
2143 case CodeKind::INTERPRETED_FUNCTION: in LogCodeObject()
2144 case CodeKind::TURBOFAN: in LogCodeObject()
2145 case CodeKind::BASELINE: in LogCodeObject()
[all …]
/third_party/node/deps/v8/src/compiler/backend/
Dcode-generator.cc94 CodeKind code_kind = info->code_kind(); in CodeGenerator()
95 if (code_kind == CodeKind::WASM_FUNCTION || in CodeGenerator()
96 code_kind == CodeKind::WASM_TO_CAPI_FUNCTION || in CodeGenerator()
97 code_kind == CodeKind::WASM_TO_JS_FUNCTION || in CodeGenerator()
98 code_kind == CodeKind::JS_TO_WASM_FUNCTION) { in CodeGenerator()
845 CodeKind code_kind = info()->code_kind(); in DetermineStubCallMode()
846 if (code_kind == CodeKind::WASM_FUNCTION || in DetermineStubCallMode()
847 code_kind == CodeKind::WASM_TO_CAPI_FUNCTION || in DetermineStubCallMode()
848 code_kind == CodeKind::WASM_TO_JS_FUNCTION) { in DetermineStubCallMode()
/third_party/node/deps/v8/src/heap/
Dfactory.h884 CodeBuilder(Isolate* isolate, const CodeDesc& desc, CodeKind kind);
888 CodeKind kind);
920 DCHECK_NE(kind_, CodeKind::BASELINE); in set_source_position_table()
927 DCHECK_EQ(kind_, CodeKind::BASELINE); in set_bytecode_offset_table()
935 DCHECK_NE(kind_, CodeKind::BASELINE); in set_deoptimization_data()
951 DCHECK_EQ(kind_, CodeKind::BUILTIN); in set_is_executable()
991 const CodeKind kind_;

1234