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

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

Issue 2728563002: [inspector] added type of break location into getPossibleBreakpoints output (Closed)
Patch Set: added DCHECK Created 3 years, 9 months 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/v8-debugger-script.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/debug/debug.h" 8 #include "src/debug/debug.h"
9 #include "src/debug/interface-types.h" 9 #include "src/debug/interface-types.h"
10 #include "src/objects.h" 10 #include "src/objects.h"
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 // Extract a portion of the wire bytes as UTF-8 string. 378 // Extract a portion of the wire bytes as UTF-8 string.
379 // Returns a null handle if the respective bytes do not form a valid UTF-8 379 // Returns a null handle if the respective bytes do not form a valid UTF-8
380 // string. 380 // string.
381 static MaybeHandle<String> ExtractUtf8StringFromModuleBytes( 381 static MaybeHandle<String> ExtractUtf8StringFromModuleBytes(
382 Isolate* isolate, Handle<WasmCompiledModule> compiled_module, 382 Isolate* isolate, Handle<WasmCompiledModule> compiled_module,
383 uint32_t offset, uint32_t size); 383 uint32_t offset, uint32_t size);
384 384
385 // Get a list of all possible breakpoints within a given range of this module. 385 // Get a list of all possible breakpoints within a given range of this module.
386 bool GetPossibleBreakpoints(const debug::Location& start, 386 bool GetPossibleBreakpoints(const debug::Location& start,
387 const debug::Location& end, 387 const debug::Location& end,
388 std::vector<debug::Location>* locations); 388 std::vector<debug::BreakLocation>* locations);
389 389
390 // Set a breakpoint on the given byte position inside the given module. 390 // Set a breakpoint on the given byte position inside the given module.
391 // This will affect all live and future instances of the module. 391 // This will affect all live and future instances of the module.
392 // The passed position might be modified to point to the next breakable 392 // The passed position might be modified to point to the next breakable
393 // location inside the same function. 393 // location inside the same function.
394 // If it points outside a function, or behind the last breakable location, 394 // If it points outside a function, or behind the last breakable location,
395 // this function returns false and does not set any breakpoint. 395 // this function returns false and does not set any breakpoint.
396 static bool SetBreakPoint(Handle<WasmCompiledModule>, int* position, 396 static bool SetBreakPoint(Handle<WasmCompiledModule>, int* position,
397 Handle<Object> break_point_object); 397 Handle<Object> break_point_object);
398 398
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 }; 501 };
502 }; 502 };
503 503
504 #undef DECLARE_ACCESSORS 504 #undef DECLARE_ACCESSORS
505 #undef DECLARE_OPTIONAL_ACCESSORS 505 #undef DECLARE_OPTIONAL_ACCESSORS
506 506
507 } // namespace internal 507 } // namespace internal
508 } // namespace v8 508 } // namespace v8
509 509
510 #endif // V8_WASM_OBJECTS_H_ 510 #endif // V8_WASM_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/inspector/v8-debugger-script.cc ('k') | src/wasm/wasm-objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698