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

Unified Diff: src/objects.h

Issue 1606493002: [interpreter] Add field for handler table to bytecode array. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 e6417c92edde4d3eb63123469c65dcabc9317cf4..7b73132bf06a4a8bb2170e9529665b3e86a70c99 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -4380,6 +4380,9 @@ class BytecodeArray : public FixedArrayBase {
// Accessors for the constant pool.
DECL_ACCESSORS(constant_pool, FixedArray)
+ // Accessors for handler table containing offsets of exception handlers.
+ DECL_ACCESSORS(handler_table, FixedArray)
+
DECLARE_CAST(BytecodeArray)
// Dispatched behavior.
@@ -4394,7 +4397,8 @@ class BytecodeArray : public FixedArrayBase {
static const int kFrameSizeOffset = FixedArrayBase::kHeaderSize;
static const int kParameterSizeOffset = kFrameSizeOffset + kIntSize;
static const int kConstantPoolOffset = kParameterSizeOffset + kIntSize;
- static const int kHeaderSize = kConstantPoolOffset + kPointerSize;
+ static const int kHandlerTableOffset = kConstantPoolOffset + kPointerSize;
+ static const int kHeaderSize = kHandlerTableOffset + 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