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

Unified Diff: src/objects.h

Issue 1601813009: [interpreter] Add field for source position table to byte code array. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: addressed comment Created 4 years, 11 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/heap/heap.cc ('k') | src/objects-body-descriptors-inl.h » ('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 429bd49c3399ec2d8bb620d1d46501ad840a1cf2..8f46d494a0b2268f481760fa3a5220d963d548d2 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -4376,6 +4376,10 @@ class BytecodeArray : public FixedArrayBase {
// Accessors for handler table containing offsets of exception handlers.
DECL_ACCESSORS(handler_table, FixedArray)
+ // Accessors for source position table containing mappings between byte code
+ // offset and source position.
+ DECL_ACCESSORS(source_position_table, FixedArray)
+
DECLARE_CAST(BytecodeArray)
// Dispatched behavior.
@@ -4391,7 +4395,9 @@ class BytecodeArray : public FixedArrayBase {
static const int kParameterSizeOffset = kFrameSizeOffset + kIntSize;
static const int kConstantPoolOffset = kParameterSizeOffset + kIntSize;
static const int kHandlerTableOffset = kConstantPoolOffset + kPointerSize;
- static const int kHeaderSize = kHandlerTableOffset + kPointerSize;
+ static const int kSourcePositionTableOffset =
+ kHandlerTableOffset + kPointerSize;
+ static const int kHeaderSize = kSourcePositionTableOffset + kPointerSize;
static const int kAlignedSize = OBJECT_POINTER_ALIGN(kHeaderSize);
« no previous file with comments | « src/heap/heap.cc ('k') | src/objects-body-descriptors-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698