Lines Matching refs:Code
2 // Use of this source code is governed by a BSD-style license that can be
18 #include "src/snapshot/code-serializer.h"
90 if (function->code()->is_turbofanned() &&
116 if (function->code()->is_turbofanned() &&
165 (function->code()->kind() == Code::FUNCTION &&
181 Code* unoptimized = function->shared()->code();
182 if (args.length() == 2 && unoptimized->kind() == Code::FUNCTION) {
202 // Do not tier down if we are already on optimized code. Replacing optimized
203 // code without actual deoptimization can lead to funny bugs.
204 if (function->code()->kind() != Code::OPTIMIZED_FUNCTION &&
226 // Do not tier down if we are already on optimized code. Replacing optimized
227 // code without actual deoptimization can lead to funny bugs.
228 if (function->code()->kind() != Code::OPTIMIZED_FUNCTION &&
229 function->code()->kind() != Code::FUNCTION) {
231 function->ReplaceCode(function->shared()->code());
258 // Make the profiler arm all back edges in unoptimized code.
321 if (function->code()->is_turbofanned()) {
402 Code* unoptimized = function->shared()->code();
403 if (unoptimized->kind() == Code::FUNCTION) {
422 Handle<Code> export_code = handle(function->code());
423 CHECK(export_code->kind() == Code::JS_TO_WASM_FUNCTION);
426 Handle<Code> export_fct;
431 Code* target = Code::GetCodeFromTargetAddress(target_address);
432 if (target->kind() == Code::WASM_FUNCTION) {
439 Handle<Code> intermediate_fct;
444 Code* target = Code::GetCodeFromTargetAddress(target_address);
445 if (target->kind() == Code::WASM_FUNCTION) {
453 Handle<Code> imported_fct;
456 Code::Kind target_kind =
457 type->value() == 0 ? Code::WASM_FUNCTION : Code::WASM_TO_JS_FUNCTION;
462 Code* target = Code::GetCodeFromTargetAddress(target_address);
529 // If we have a string, assume it's a code "marker"
578 // The code below doesn't create handles, but when breaking here in GDB
651 func->code()->Print(os);
755 if (function->shared()->code() !=
782 bool is_js_to_wasm = function->code()->kind() == Code::JS_TO_WASM_FUNCTION;