Home
last modified time | relevance | path

Searched refs:func_index (Results 1 – 25 of 30) sorted by relevance

12

/external/v8/src/wasm/
Djump-table-assembler.cc17 void JumpTableAssembler::EmitLazyCompileJumpSlot(uint32_t func_index, in EmitLazyCompileJumpSlot() argument
36 pushq(Immediate(func_index)); // max 5 bytes in EmitLazyCompileJumpSlot()
54 void JumpTableAssembler::EmitLazyCompileJumpSlot(uint32_t func_index,
56 mov(edi, func_index); // 5 bytes
70 void JumpTableAssembler::EmitLazyCompileJumpSlot(uint32_t func_index,
75 Move32BitImmediate(r4, Operand(func_index));
100 void JumpTableAssembler::EmitLazyCompileJumpSlot(uint32_t func_index,
102 Mov(w8, func_index); // max. 2 instr
122 void JumpTableAssembler::EmitLazyCompileJumpSlot(uint32_t func_index,
125 lgfi(r7, Operand(func_index));
[all …]
Dwasm-objects.cc150 bool IsBreakablePosition(wasm::NativeModule* native_module, int func_index, in IsBreakablePosition() argument
156 const WasmFunction& func = native_module->module()->functions[func_index]; in IsBreakablePosition()
246 int func_index = module_object->GetContainingFunction(*position); in SetBreakPoint() local
247 if (func_index < 0) return false; in SetBreakPoint()
248 const WasmFunction& func = module_object->module()->functions[func_index]; in SetBreakPoint()
253 DCHECK(IsBreakablePosition(module_object->native_module(), func_index, in SetBreakPoint()
271 WasmDebugInfo::SetBreakpoint(debug_info, func_index, offset_in_func); in SetBreakPoint()
390 int func_index = module_object->GetContainingFunction(position); in SetBreakpointsOnNewInstance() local
391 DCHECK_LE(0, func_index); in SetBreakpointsOnNewInstance()
392 const WasmFunction& func = module_object->module()->functions[func_index]; in SetBreakpointsOnNewInstance()
[all …]
Dwasm-debug.cc69 int func_index, int local_index) { in GetLocalName() argument
70 DCHECK_LE(0, func_index); in GetLocalName()
80 if (func_index >= locals_names->length() || in GetLocalName()
81 locals_names->get(func_index)->IsUndefined(isolate)) { in GetLocalName()
86 FixedArray::cast(locals_names->get(func_index)), isolate); in GetLocalName()
169 Address frame_pointer, uint32_t func_index, Address arg_buffer) { in Execute() argument
170 DCHECK_GE(module()->functions.size(), func_index); in Execute()
171 FunctionSig* sig = module()->functions[func_index].sig; in Execute()
199 thread->InitFrame(&module()->functions[func_index], wasm_args.start()); in Execute()
347 return module_object->GetFunctionOffset(frame->function()->func_index) + in GetTopPosition()
[all …]
Dwasm-objects.h175 uint32_t func_index);
181 uint32_t func_index);
187 Vector<const uint8_t> GetRawFunctionName(uint32_t func_index);
192 int GetFunctionOffset(uint32_t func_index);
206 static int GetSourcePosition(Handle<WasmModuleObject>, uint32_t func_index,
215 debug::WasmDisassembly DisassembleFunction(int func_index);
467 Address GetCallTarget(uint32_t func_index);
487 int func_index, int arity,
565 static void SetBreakpoint(Handle<WasmDebugInfo>, int func_index, int offset);
581 Address frame_pointer, int func_index,
Dmodule-compiler.cc185 uint32_t func_index, in GetOrCompileJSToWasmWrapper() argument
188 const WasmFunction* func = &module->functions[func_index]; in GetOrCompileJSToWasmWrapper()
189 bool is_import = func_index < module->num_imported_functions; in GetOrCompileJSToWasmWrapper()
344 int func_index) { in LazyCompileFunction() argument
346 DCHECK(!native_module->has_code(static_cast<uint32_t>(func_index))); in LazyCompileFunction()
357 module_env->module->LookupFunctionName(wire_bytes, func_index); in LazyCompileFunction()
362 func_name.start(), func_index); in LazyCompileFunction()
366 const WasmFunction* func = &module_env->module->functions[func_index]; in LazyCompileFunction()
373 body, func_name, func_index, isolate->counters()); in LazyCompileFunction()
402 uint32_t func_index) { in CompileLazy() argument
[all …]
Djump-table-assembler.h59 uint32_t func_index, in EmitLazyCompileJumpSlot() argument
64 jtasm.EmitLazyCompileJumpSlot(func_index, lazy_compile_target); in EmitLazyCompileJumpSlot()
141 void EmitLazyCompileJumpSlot(uint32_t func_index,
Dmemory-tracing.cc15 int func_index, int position, uint8_t* mem_start) { in TraceMemoryOperation() argument
49 printf("%-11s func:%6d+0x%-6x%s %08x val: %s\n", eng, func_index, position, in TraceMemoryOperation()
Dwasm-code-manager.h286 ptrdiff_t jump_table_offset(uint32_t func_index) const { in jump_table_offset() argument
287 DCHECK_GE(func_index, num_imported_functions()); in jump_table_offset()
288 return GetCallTargetForFunction(func_index) - jump_table_start(); in jump_table_offset()
305 Address GetCallTargetForFunction(uint32_t func_index) const;
371 void PatchJumpTable(uint32_t func_index, Address target,
Dwasm-text.cc36 uint32_t func_index, std::ostream& os, in PrintWasmText() argument
39 DCHECK_GT(module->functions.size(), func_index); in PrintWasmText()
40 const WasmFunction *fun = &module->functions[func_index]; in PrintWasmText()
Dwasm-text.h31 uint32_t func_index, std::ostream &os,
Dmemory-tracing.h34 int func_index, int position, uint8_t* mem_start);
Dwasm-module.cc70 return GetName(module->LookupFunctionName(*this, function->func_index)); in GetName()
84 return GetNameOrNull(module->LookupFunctionName(*this, function->func_index)); in GetNameOrNull()
88 os << "#" << name.function_->func_index; in operator <<()
Dwasm-code-manager.cc634 void NativeModule::PatchJumpTable(uint32_t func_index, Address target, in PatchJumpTable() argument
636 DCHECK_LE(module_->num_imported_functions, func_index); in PatchJumpTable()
637 uint32_t slot_idx = func_index - module_->num_imported_functions; in PatchJumpTable()
722 Address NativeModule::GetCallTargetForFunction(uint32_t func_index) const { in GetCallTargetForFunction()
729 uint32_t slot_idx = func_index - module_->num_imported_functions; in GetCallTargetForFunction()
Dwasm-module-builder.cc289 start_function_index_ = function->func_index(); in MarkStartFunction()
294 function_exports_.push_back({name, function->func_index()}); in AddExport()
554 function->func_index() + function_imports_.size()); in WriteTo()
Dmodule-compiler.h70 Address CompileLazy(Isolate*, NativeModule*, uint32_t func_index);
Dfunction-compiler.cc159 function->func_index, isolate->counters(), mode); in CompileWasmFunction()
Dmodule-decoder.cc543 uint32_t func_index = static_cast<uint32_t>(module_->functions.size()); in DecodeFunctionSection() local
545 func_index, // func_index in DecodeFunctionSection()
736 DCHECK_EQ(index, func->func_index); in DecodeElementSection()
1688 uint32_t func_index = decoder.consume_u32v("function index"); in DecodeLocalNames() local
1689 if (func_index > kMaxInt) continue; in DecodeLocalNames()
1690 result->names.emplace_back(static_cast<int>(func_index)); in DecodeLocalNames()
Dwasm-interpreter.cc966 InterpreterCode* code = GetCode(function->func_index); in GetCode()
1022 DCHECK_EQ(interpreter_code_.size(), function->func_index); in AddFunction()
1028 DCHECK_LT(function->func_index, interpreter_code_.size()); in SetFunctionCode()
1029 InterpreterCode* code = &interpreter_code_[function->func_index]; in SetFunctionCode()
1286 code->function->func_index, frames_.back().pc); in PushFrame()
1367 (*code)->function->func_index, *pc); in DoReturn()
1432 code->function->func_index, static_cast<int>(pc), in ExecuteLoad()
1458 code->function->func_index, static_cast<int>(pc), in ExecuteStore()
2289 CallImportedFunction(target->function->func_index); in Execute()
2829 uint32_t func_index = in GetTargetCode() local
[all …]
Dwasm-module.h30 uint32_t func_index; // index into the function table. member
/external/v8/src/inspector/
Dwasm-translation.cc165 int func_index = GetFunctionIndexFromFakeScriptId(loc->script_id); in TranslateBack() local
166 const OffsetTable& reverse_table = GetReverseTable(isolate, func_index); in TranslateBack()
178 script_.Get(isolate)->GetFunctionRange(func_index); in TranslateBack()
190 loc->line = func_index; in TranslateBack()
220 String16 GetFakeScriptUrl(v8::Isolate* isolate, int func_index) { in GetFakeScriptUrl() argument
230 String16 thisCategory = String16::fromInteger((func_index / 100) * 100); in GetFakeScriptUrl()
237 builder.appendNumber(func_index); in GetFakeScriptUrl()
241 String16 GetFakeScriptId(const String16 script_id, int func_index) { in GetFakeScriptId() argument
242 return String16::concat(script_id, '-', String16::fromInteger(func_index)); in GetFakeScriptId()
267 int func_index = fake_script_id.substring(last_dash_pos + 1).toInteger(&ok); in GetFunctionIndexFromFakeScriptId() local
[all …]
Dwasm-translation.h59 const String16& GetSource(const String16& script_id, int func_index);
60 int GetStartLine(const String16& script_id, int func_index) { return 0; } in GetStartLine() argument
61 int GetStartColumn(const String16& script_id, int func_index) { return 0; } in GetStartColumn() argument
62 int GetEndLine(const String16& script_id, int func_index);
63 int GetEndColumn(const String16& script_id, int func_index);
64 String16 GetHash(const String16& script_id, int func_index);
/external/v8/src/runtime/
Druntime-wasm.cc236 CONVERT_NUMBER_CHECKED(int32_t, func_index, Int32, args[0]); in RUNTIME_FUNCTION()
272 isolate, debug_info, frame_pointer, func_index, arg_buffer); in RUNTIME_FUNCTION()
304 CONVERT_SMI_ARG_CHECKED(func_index, 1); in RUNTIME_FUNCTION()
319 isolate, instance->module_object()->native_module(), func_index); in RUNTIME_FUNCTION()
Druntime-test.cc1016 int func_index = frame->function_index(); in RUNTIME_FUNCTION() local
1020 frame->wasm_instance()->module()->functions[func_index].code.offset(); in RUNTIME_FUNCTION()
1024 wasm::TraceMemoryOperation(tier, info, func_index, pos - func_start, in RUNTIME_FUNCTION()
1051 uint32_t func_index = exp_fun->function_index(); in RUNTIME_FUNCTION() local
1053 native_module->has_code(func_index) && in RUNTIME_FUNCTION()
1054 native_module->code(func_index)->is_liftoff()); in RUNTIME_FUNCTION()
/external/swiftshader/third_party/subzero/src/
DWasmTranslator.cpp132 std::string getFunctionName(const WasmModule *Module, uint32_t func_index) { in getFunctionName() argument
135 if (Export.func_index == func_index) { in getFunctionName()
140 return fnNameFromId(func_index); in getFunctionName()
1162 auto *Tmp = CallDirect(Target.func_index, Args).toOperand(); in CallIndirect()
1541 LOG(out << " " << Export.func_index << ": " in translate()
1552 LOG(out << " " << F.func_index << ": " in translate()
1628 const auto FnName = getFunctionName(Module, Fn.func_index); in translate()
1630 LOG(out << " " << Fn.func_index << ": " << FnName << "..."); in translate()
/external/v8/src/compiler/
Dwasm-compiler.h87 MaybeHandle<Code> CompileWasmInterpreterEntry(Isolate*, uint32_t func_index,
374 wasm::WasmCodePosition position, int func_index);
376 wasm::WasmCodePosition position, Node* func_index);

12