Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1446)

Unified Diff: src/wasm/wasm-objects.cc

Issue 2529383002: [inspector] Split off interface-types.h (Closed)
Patch Set: Rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/wasm/wasm-objects.cc
diff --git a/src/wasm/wasm-objects.cc b/src/wasm/wasm-objects.cc
index f51fae3bd1187d054f70e93d302b4277a00c2805..b502c032f55906754acef370ab5469008f8c2048 100644
--- a/src/wasm/wasm-objects.cc
+++ b/src/wasm/wasm-objects.cc
@@ -540,8 +540,8 @@ int WasmCompiledModule::GetAsmJsSourcePosition(
return offset_table->get_int(2 * left + 1);
}
-std::pair<std::string, std::vector<std::tuple<uint32_t, int, int>>>
-WasmCompiledModule::DisassembleFunction(int func_index) {
+v8::debug::WasmDisassembly WasmCompiledModule::DisassembleFunction(
+ int func_index) {
DisallowHeapAllocation no_gc;
if (func_index < 0 ||
@@ -553,7 +553,7 @@ WasmCompiledModule::DisassembleFunction(int func_index) {
module_bytes_str->length());
std::ostringstream disassembly_os;
- std::vector<std::tuple<uint32_t, int, int>> offset_table;
+ v8::debug::WasmDisassembly::OffsetTable offset_table;
PrintWasmText(module(), module_bytes, static_cast<uint32_t>(func_index),
disassembly_os, &offset_table);
« src/debug/interface-types.h ('K') | « src/wasm/wasm-objects.h ('k') | src/wasm/wasm-text.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698