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

Unified Diff: src/objects.h

Issue 2096863003: [wasm] prototype for breakpoint support. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@extend-script-functionality
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/log.cc ('k') | src/objects-debug.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index cdc1c993ff5b7f536302fea0a68f4209f7c63884..ba4fa7f1ffe4f429121b83f6df7a2293c570dc25 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -4874,7 +4874,8 @@ class Code: public HeapObject {
V(REGEXP) \
V(WASM_FUNCTION) \
V(WASM_TO_JS_FUNCTION) \
- V(JS_TO_WASM_FUNCTION)
+ V(JS_TO_WASM_FUNCTION) \
+ V(WASM_TO_INTERPRETER)
#define IC_KIND_LIST(V) \
V(LOAD_IC) \
@@ -10617,6 +10618,8 @@ class ObjectTemplateInfo: public TemplateInfo {
class DebugInfo: public Struct {
public:
// The shared function info for the source being debugged.
+ // Some debug info does not have an shared function info, e.g. for wasm, so
+ // check has_shared() before calling shared().
DECL_ACCESSORS(shared, SharedFunctionInfo)
// Code object for the patched code. This code object is the code object
// currently active for the function.
@@ -10624,6 +10627,8 @@ class DebugInfo: public Struct {
// Fixed array holding status information for each active break point.
DECL_ACCESSORS(break_points, FixedArray)
+ // Check whether a shared function info is available for this debug info.
+ inline bool has_shared() const;
// Check if there is a break point at a code offset.
bool HasBreakPoint(int code_offset);
// Get the break point info object for a code offset.
« no previous file with comments | « src/log.cc ('k') | src/objects-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698