5 #ifndef V8_INSPECTOR_WASM_TRANSLATION_H_ 6 #define V8_INSPECTOR_WASM_TRANSLATION_H_ 8 #include <unordered_map> 10 #include "include/v8.h" 11 #include "src/base/macros.h" 12 #include "src/debug/debug-interface.h" 13 #include "src/inspector/string-16.h" 18 class V8DebuggerAgentImpl;
36 void Clear(v8::Isolate* isolate,
const std::vector<int>& contextIdsToClear);
44 bool TranslateWasmScriptLocationToProtocolLocation(
String16* script_id,
53 bool TranslateProtocolLocationToWasmScriptLocation(
String16* script_id,
58 int GetStartLine(
const String16& script_id,
int func_index) {
return 0; }
59 int GetStartColumn(
const String16& script_id,
int func_index) {
return 0; }
60 int GetEndLine(
const String16& script_id,
int func_index);
61 int GetEndColumn(
const String16& script_id,
int func_index);
70 v8::Isolate* isolate_;
71 std::unordered_map<int, std::unique_ptr<TranslatorImpl>> wasm_translators_;
72 std::unordered_map<String16, TranslatorImpl*> fake_scripts_;
79 #endif // V8_INSPECTOR_WASM_TRANSLATION_H_