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

Unified Diff: src/objects.h

Issue 2500443004: [wasm] OOB traps: build protected instruction list during codegen (Closed)
Patch Set: Removing spurious changes Created 4 years 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/compiler/x64/instruction-selector-x64.cc ('k') | src/objects-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 56f6b70a6565444f4000e741e281cdd16b701851..9c17b1909daa91127f6e017bc6ec50a2fd0a2b5f 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -5421,6 +5421,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.
@@ -5800,7 +5804,12 @@ 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;
+
+ enum TrapFields { kTrapCodeOffset, kTrapLandingOffset, kTrapDataSize };
+
+ static const int kHeaderPaddingStart =
+ kProtectedInstructionOffset + kPointerSize;
// Add padding to align the instruction start following right after
// the Code object header.
« no previous file with comments | « src/compiler/x64/instruction-selector-x64.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698