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

Side by Side Diff: src/wasm/wasm-objects.h

Issue 2536763002: [inspector] [wasm] Implement GetPossibleBreakpoints (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 unified diff | Download patch
« no previous file with comments | « src/inspector/wasm-translation.cc ('k') | src/wasm/wasm-objects.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_WASM_OBJECTS_H_ 5 #ifndef V8_WASM_OBJECTS_H_
6 #define V8_WASM_OBJECTS_H_ 6 #define V8_WASM_OBJECTS_H_
7 7
8 #include "src/objects-inl.h" 8 #include "src/objects-inl.h"
9 #include "src/trap-handler/trap-handler.h" 9 #include "src/trap-handler/trap-handler.h"
10 #include "src/wasm/managed.h" 10 #include "src/wasm/managed.h"
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 uint32_t func_index, uint32_t byte_offset); 298 uint32_t func_index, uint32_t byte_offset);
299 299
300 // Compute the disassembly of a wasm function. 300 // Compute the disassembly of a wasm function.
301 // Returns the disassembly string and a list of <byte_offset, line, column> 301 // Returns the disassembly string and a list of <byte_offset, line, column>
302 // entries, mapping wasm byte offsets to line and column in the disassembly. 302 // entries, mapping wasm byte offsets to line and column in the disassembly.
303 // The list is guaranteed to be ordered by the byte_offset. 303 // The list is guaranteed to be ordered by the byte_offset.
304 // Returns an empty string and empty vector if the function index is invalid. 304 // Returns an empty string and empty vector if the function index is invalid.
305 std::pair<std::string, std::vector<std::tuple<uint32_t, int, int>>> 305 std::pair<std::string, std::vector<std::tuple<uint32_t, int, int>>>
306 DisassembleFunction(int func_index); 306 DisassembleFunction(int func_index);
307 307
308 // Get a list of all possible breakpoints within a given range of this module.
309 bool GetPossibleBreakpoints(
310 const DebugInterface::Location& start,
311 const DebugInterface::Location& end,
312 std::vector<DebugInterface::Location>* locations) const;
313
308 private: 314 private:
309 void InitId(); 315 void InitId();
310 316
311 DISALLOW_IMPLICIT_CONSTRUCTORS(WasmCompiledModule); 317 DISALLOW_IMPLICIT_CONSTRUCTORS(WasmCompiledModule);
312 }; 318 };
313 319
314 // TODO(clemensh): Extend this object for breakpoint support, or remove it. 320 // TODO(clemensh): Extend this object for breakpoint support, or remove it.
315 class WasmDebugInfo : public FixedArray { 321 class WasmDebugInfo : public FixedArray {
316 public: 322 public:
317 enum class Fields { kFieldCount }; 323 enum class Fields { kFieldCount };
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 }; 385 };
380 }; 386 };
381 387
382 #undef DECLARE_ACCESSORS 388 #undef DECLARE_ACCESSORS
383 #undef DECLARE_OPTIONAL_ACCESSORS 389 #undef DECLARE_OPTIONAL_ACCESSORS
384 390
385 } // namespace internal 391 } // namespace internal
386 } // namespace v8 392 } // namespace v8
387 393
388 #endif // V8_WASM_OBJECTS_H_ 394 #endif // V8_WASM_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/inspector/wasm-translation.cc ('k') | src/wasm/wasm-objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698