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

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

Issue 2588763002: [wasm] Implement GetPossibleBreakpoints (Closed)
Patch Set: Address comment 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 | « no previous file | 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/debug/interface-types.h" 8 #include "src/debug/interface-types.h"
9 #include "src/objects-inl.h" 9 #include "src/objects-inl.h"
10 #include "src/trap-handler/trap-handler.h" 10 #include "src/trap-handler/trap-handler.h"
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 // Returns an empty string and empty vector if the function index is invalid. 310 // Returns an empty string and empty vector if the function index is invalid.
311 debug::WasmDisassembly DisassembleFunction(int func_index); 311 debug::WasmDisassembly DisassembleFunction(int func_index);
312 312
313 // Extract a portion of the wire bytes as UTF-8 string. 313 // Extract a portion of the wire bytes as UTF-8 string.
314 // Returns a null handle if the respective bytes do not form a valid UTF-8 314 // Returns a null handle if the respective bytes do not form a valid UTF-8
315 // string. 315 // string.
316 static MaybeHandle<String> ExtractUtf8StringFromModuleBytes( 316 static MaybeHandle<String> ExtractUtf8StringFromModuleBytes(
317 Isolate* isolate, Handle<WasmCompiledModule> compiled_module, 317 Isolate* isolate, Handle<WasmCompiledModule> compiled_module,
318 uint32_t offset, uint32_t size); 318 uint32_t offset, uint32_t size);
319 319
320 // Get a list of all possible breakpoints within a given range of this module.
321 bool GetPossibleBreakpoints(const debug::Location& start,
322 const debug::Location& end,
323 std::vector<debug::Location>* locations) const;
324
320 private: 325 private:
321 void InitId(); 326 void InitId();
322 327
323 DISALLOW_IMPLICIT_CONSTRUCTORS(WasmCompiledModule); 328 DISALLOW_IMPLICIT_CONSTRUCTORS(WasmCompiledModule);
324 }; 329 };
325 330
326 // TODO(clemensh): Extend this object for breakpoint support, or remove it. 331 // TODO(clemensh): Extend this object for breakpoint support, or remove it.
327 class WasmDebugInfo : public FixedArray { 332 class WasmDebugInfo : public FixedArray {
328 public: 333 public:
329 enum class Fields { kFieldCount }; 334 enum class Fields { kFieldCount };
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 }; 396 };
392 }; 397 };
393 398
394 #undef DECLARE_ACCESSORS 399 #undef DECLARE_ACCESSORS
395 #undef DECLARE_OPTIONAL_ACCESSORS 400 #undef DECLARE_OPTIONAL_ACCESSORS
396 401
397 } // namespace internal 402 } // namespace internal
398 } // namespace v8 403 } // namespace v8
399 404
400 #endif // V8_WASM_OBJECTS_H_ 405 #endif // V8_WASM_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/wasm/wasm-objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698