Home | History | Annotate | Download | only in wasm

Lines Matching refs:Code

2 // Use of this source code is governed by a BSD-style license that can be
5 #include "src/wasm/wasm-code-specialization.h"
43 PatchDirectCallsHelper(WasmInstanceObject* instance, Code* code)
44 : source_pos_it(code->source_position_table()),
46 FixedArray* deopt_data = code->deoptimization_data();
125 Code* wasm_function = Code::cast(code_table->get(func_index));
132 Code* export_wrapper = Code::cast(code_table->get(func_index));
133 DCHECK_EQ(Code::JS_TO_WASM_FUNCTION, export_wrapper->kind());
140 Code* code = Code::GetCodeFromTargetAddress(it.rinfo()->target_address());
142 if (code->kind() != Code::WASM_FUNCTION &&
143 code->kind() != Code::WASM_TO_JS_FUNCTION &&
144 code->builtin_index() != Builtins::kIllegal)
147 Code* new_code = Code::cast(code_table->get(exp.index));
148 DCHECK(new_code->kind() == Code::WASM_FUNCTION ||
149 new_code->kind() == Code::WASM_TO_JS_FUNCTION);
161 bool CodeSpecialization::ApplyToWasmCode(Code* code,
164 DCHECK_EQ(Code::WASM_FUNCTION, code->kind());
187 for (RelocIterator it(code, reloc_mode); !it.done(); it.next()) {
210 Code* old_code =
211 Code::GetCodeFromTargetAddress(it.rinfo()->target_address());
213 if (old_code->kind() != Code::WASM_FUNCTION &&
214 old_code->kind() != Code::WASM_TO_JS_FUNCTION &&
222 size_t offset = it.rinfo()->pc() - code->instruction_start();
225 *relocate_direct_calls_instance, code));
235 Code* new_code = Code::cast(code_table->get(called_func_index));