/external/v8/src/inspector/ |
D | wasm-translation.cc | 105 int func_index = GetFunctionIndexFromFakeScriptId(loc->script_id); in TranslateBack() local 106 const OffsetTable* reverse_table = GetReverseTable(func_index); in TranslateBack() 141 script_.Get(isolate)->GetFunctionRange(func_index); in TranslateBack() 147 loc->line = func_index; in TranslateBack() 152 String16 GetFakeScriptUrl(v8::Isolate* isolate, int func_index) { in GetFakeScriptUrl() argument 161 String16 thisCategory = String16::fromInteger((func_index / 100) * 100); in GetFakeScriptUrl() 168 builder.appendNumber(func_index); in GetFakeScriptUrl() 172 String16 GetFakeScriptId(const String16 script_id, int func_index) { in GetFakeScriptId() argument 173 return String16::concat(script_id, '-', String16::fromInteger(func_index)); in GetFakeScriptId() 207 int func_index = fake_script_id.substring(last_dash_pos + 1).toInteger(&ok); in GetFunctionIndexFromFakeScriptId() local [all …]
|
/external/v8/src/wasm/ |
D | wasm-debug.cc | 80 void Execute(uint32_t func_index, uint8_t* arg_buffer) { in Execute() argument 81 DCHECK_GE(module()->functions.size(), func_index); in Execute() 82 FunctionSig* sig = module()->functions[func_index].sig; in Execute() 112 thread->PushFrame(&module()->functions[func_index], wasm_args.start()); in Execute() 247 return compiled_module->GetFunctionOffset(frame.function()->func_index) + in GetTopPosition() 261 stack[i] = {frame.function()->func_index, frame.pc()}; in GetInterpretedStack() 391 int func_index, int offset) { in SetBreakpoint() argument 394 RedirectToInterpreter(debug_info, func_index); in SetBreakpoint() 395 const WasmFunction* func = &handle->module()->functions[func_index]; in SetBreakpoint() 400 int func_index) { in RedirectToInterpreter() argument [all …]
|
D | wasm-objects.cc | 199 int func_index, int offset_in_func) { in IsBreakablePosition() argument 205 WasmFunction& func = compiled_module->module()->functions[func_index]; in IsBreakablePosition() 482 MaybeHandle<String> maybe_name, int func_index, int arity, in New() argument 487 int length = SNPrintF(buffer, "%d", func_index); in New() 505 function->SetInternalField(kIndex, Smi::FromInt(func_index)); in New() 731 int func_index = compiled_module->GetContainingFunction(position); in SetBreakpointsOnNewInstance() local 732 DCHECK_LE(0, func_index); in SetBreakpointsOnNewInstance() 733 WasmFunction& func = compiled_module->module()->functions[func_index]; in SetBreakpointsOnNewInstance() 735 WasmDebugInfo::SetBreakpoint(debug_info, func_index, offset_in_func); in SetBreakpointsOnNewInstance() 839 uint32_t func_index) { in GetFunctionNameOrNull() argument [all …]
|
D | wasm-code-specialization.cc | 49 int func_index = Smi::cast(deopt_data->get(1))->value(); in PatchDirectCallsHelper() local 51 comp_mod->module()->functions[func_index].code_start_offset; in PatchDirectCallsHelper() 120 int func_index = module->num_imported_functions; in ApplyToWholeInstance() local 124 func_index < num_wasm_functions; ++func_index) { in ApplyToWholeInstance() 125 Code* wasm_function = Code::cast(code_table->get(func_index)); in ApplyToWholeInstance() 132 Code* export_wrapper = Code::cast(code_table->get(func_index)); in ApplyToWholeInstance() 155 func_index++; in ApplyToWholeInstance() 157 DCHECK_EQ(code_table->length(), func_index); in ApplyToWholeInstance()
|
D | wasm-objects.h | 155 int func_index, int arity, 335 uint32_t func_index); 342 uint32_t func_index); 348 Vector<const uint8_t> GetRawFunctionName(uint32_t func_index); 353 int GetFunctionOffset(uint32_t func_index); 368 uint32_t func_index, uint32_t byte_offset, 376 debug::WasmDisassembly DisassembleFunction(int func_index); 426 static void SetBreakpoint(Handle<WasmDebugInfo>, int func_index, int offset); 430 static void RedirectToInterpreter(Handle<WasmDebugInfo>, int func_index); 434 void RunInterpreter(int func_index, uint8_t* arg_buffer);
|
D | wasm-text.cc | 36 const ModuleWireBytes &wire_bytes, uint32_t func_index, in PrintWasmText() argument 40 DCHECK_GT(module->functions.size(), func_index); in PrintWasmText() 41 const WasmFunction *fun = &module->functions[func_index]; in PrintWasmText()
|
D | wasm-module.cc | 529 int func_index = 0; in CompileToModuleObject() local 537 static_cast<int>(module_->functions.size() + func_index); in CompileToModuleObject() 540 func_index++; in CompileToModuleObject() 730 Handle<WasmCompiledModule> compiled_module, int func_index) { in GetFunctionOffsetAndLength() argument 732 if (func_index < 0 || in GetFunctionOffsetAndLength() 733 static_cast<size_t>(func_index) > module->functions.size()) { in GetFunctionOffsetAndLength() 736 WasmFunction& func = module->functions[func_index]; in GetFunctionOffsetAndLength() 812 os << "#" << name.function_->func_index; in operator <<() 840 int func_index) { in GetFunctionCodeOffset() argument 841 return GetFunctionOffsetAndLength(compiled_module, func_index).first; in GetFunctionCodeOffset() [all …]
|
D | wasm-text.h | 31 uint32_t func_index, std::ostream &os,
|
D | module-decoder.cc | 396 uint32_t func_index = static_cast<uint32_t>(module->functions.size()); in DecodeModule() local 398 func_index, // func_index in DecodeModule() 660 uint32_t func_index = i; in DecodeModule() local 661 if (inner.ok() && func_index < module->functions.size()) { in DecodeModule() 662 module->functions[func_index].name_offset = name_offset; in DecodeModule() 663 module->functions[func_index].name_length = function_name_length; in DecodeModule()
|
D | wasm-module.h | 75 uint32_t func_index; // index into the function table. member 384 int func_index);
|
D | wasm-interpreter.cc | 859 if (function->func_index < interpreter_code_.size()) { in FindCode() 860 InterpreterCode* code = &interpreter_code_[function->func_index]; in FindCode() 899 DCHECK_EQ(interpreter_code_.size(), function->func_index); in AddFunction() 947 TRACE(" => PushFrame(#%u @%zu)\n", code->function->func_index, in PushFrame() 1077 TRACE(" => push func#%u @%zu\n", code->function->func_index, in PushFrame() 1154 TRACE(" => pop func#%u @%zu\n", (*code)->function->func_index, *pc); in DoReturn()
|
D | wasm-module-builder.h | 147 uint32_t func_index() { return func_index_; } in func_index() function
|
D | wasm-module-builder.cc | 311 start_function_index_ = function->func_index(); in MarkStartFunction()
|
/external/v8/src/runtime/ |
D | runtime-wasm.cc | 175 CONVERT_NUMBER_CHECKED(int32_t, func_index, Int32, args[1]); in RUNTIME_FUNCTION() 192 instance->debug_info()->RunInterpreter(func_index, arg_buffer); in RUNTIME_FUNCTION()
|
/external/swiftshader/third_party/subzero/src/ |
D | WasmTranslator.cpp | 132 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/ |
D | wasm-compiler.h | 64 function->func_index); in CompileWasmFunction() 109 Handle<Code> CompileWasmInterpreterEntry(Isolate* isolate, uint32_t func_index, 193 void BuildWasmInterpreterEntry(uint32_t func_index, wasm::FunctionSig* sig,
|
D | wasm-compiler.cc | 3796 SNPrintF(ArrayVector(func_name), "js-to-wasm#%d", func->func_index); in CompileJSToWasmWrapper() 3891 Handle<Code> CompileWasmInterpreterEntry(Isolate* isolate, uint32_t func_index, in CompileWasmInterpreterEntry() argument 3912 builder.BuildWasmInterpreterEntry(func_index, sig, instance); in CompileWasmInterpreterEntry() 3930 int name_len = SNPrintF(debug_name, "wasm-to-interpreter#%d", func_index); in CompileWasmInterpreterEntry() 3947 "wasm-to-interpreter", func_index, in CompileWasmInterpreterEntry() 4000 int index = static_cast<int>(function_->func_index); in BuildGraphForWasmFunction() 4010 function_->func_index, os, nullptr); in BuildGraphForWasmFunction() 4021 function->func_index); in GetTaggedFunctionName() 4120 function_->func_index, name.length(), name.start()); in FinishCompilation() 4139 "WASM_function", function_->func_index, in FinishCompilation()
|
/external/v8/src/ |
D | isolate.cc | 1574 int func_index = elements->WasmFunctionIndex(i)->value(); in Throw() local 1586 compiled_module, func_index, pos, at_to_number_conversion); in Throw() 1590 pos += compiled_module->GetFunctionOffset(func_index); in Throw()
|
/external/v8/src/asmjs/ |
D | asm-wasm-builder.cc | 824 LookupOrInsertFunction(func->var())->func_index()); in PopulateFunctionTable() 1477 function->func_index()); in VisitCallExpression()
|