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

Unified Diff: src/objects.h

Issue 1682853003: [debugger] introduce abstract interface for break location. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: revert stray edit Created 4 years, 10 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/mips64/assembler-mips64-inl.h ('k') | src/objects.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 f84505c7dd526dd00767cd628f4d7e1f084531ae..6d34989f1a4a16a9df506e329f0065b1fa52f296 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -4455,6 +4455,7 @@ class BytecodeArray : public FixedArrayBase {
inline int instruction_size();
int SourcePosition(int offset);
+ int SourceStatementPosition(int offset);
DECLARE_PRINTER(BytecodeArray)
DECLARE_VERIFIER(BytecodeArray)
@@ -5381,8 +5382,10 @@ class Code: public HeapObject {
class AbstractCode : public HeapObject {
public:
int SourcePosition(int offset);
+ int SourceStatementPosition(int offset);
DECLARE_CAST(AbstractCode)
+ inline int Size();
inline Code* GetCode();
inline BytecodeArray* GetBytecodeArray();
};
@@ -10589,7 +10592,7 @@ class DebugInfo: public Struct {
DECL_ACCESSORS(shared, SharedFunctionInfo)
// Code object for the patched code. This code object is the code object
// currently active for the function.
- DECL_ACCESSORS(code, Code)
+ DECL_ACCESSORS(abstract_code, AbstractCode)
// Fixed array holding status information for each active break point.
DECL_ACCESSORS(break_points, FixedArray)
@@ -10619,8 +10622,8 @@ class DebugInfo: public Struct {
DECLARE_VERIFIER(DebugInfo)
static const int kSharedFunctionInfoIndex = Struct::kHeaderSize;
- static const int kCodeIndex = kSharedFunctionInfoIndex + kPointerSize;
- static const int kBreakPointsStateIndex = kCodeIndex + kPointerSize;
+ static const int kAbstractCodeIndex = kSharedFunctionInfoIndex + kPointerSize;
+ static const int kBreakPointsStateIndex = kAbstractCodeIndex + kPointerSize;
static const int kSize = kBreakPointsStateIndex + kPointerSize;
static const int kEstimatedNofBreakPointsInFunction = 16;
« no previous file with comments | « src/mips64/assembler-mips64-inl.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698