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

Unified Diff: src/objects.h

Issue 2500443004: [wasm] OOB traps: build protected instruction list during codegen (Closed)
Patch Set: Merging with master Created 4 years, 1 month 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
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 1a1f5fd26437ea9e2b3a51915102251ef4e2d3d9..4b1e9ddaa8a308261fae0f37c74f6a6d4df9f721 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -5403,6 +5403,10 @@ class Code: public HeapObject {
// [source_position_table]: ByteArray for the source positions table.
DECL_ACCESSORS(source_position_table, ByteArray)
+ // [protected_instructions]: Fixed array containing protected instruction and
+ // corresponding landing pad offsets.
+ DECL_ACCESSORS(protected_instructions, FixedArray)
+
// [raw_type_feedback_info]: This field stores various things, depending on
// the kind of the code object.
// FUNCTION => type feedback information.
@@ -5785,7 +5789,9 @@ class Code: public HeapObject {
static const int kConstantPoolOffset = kPrologueOffset + kIntSize;
static const int kBuiltinIndexOffset =
kConstantPoolOffset + kConstantPoolSize;
- static const int kHeaderPaddingStart = kBuiltinIndexOffset + kIntSize;
+ static const int kProtectedInstructionOffset = kBuiltinIndexOffset + kIntSize;
+ static const int kHeaderPaddingStart =
+ kProtectedInstructionOffset + kPointerSize;
// Add padding to align the instruction start following right after
// the Code object header.

Powered by Google App Engine
This is Rietveld 408576698