Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 4bf439095ebac474606f265bef9c5d87942ceacd..d65cfbfac7736bde3c60bfb3d80d879b6489284c 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -4987,6 +4987,18 @@ inline void Code::set_can_have_weak_objects(bool value) { |
WRITE_UINT32_FIELD(this, kKindSpecificFlags1Offset, updated); |
} |
+inline bool Code::is_construct_stub() { |
+ DCHECK(kind() == BUILTIN); |
+ return IsConstructStubField::decode( |
+ READ_UINT32_FIELD(this, kKindSpecificFlags1Offset)); |
+} |
+ |
+inline void Code::set_is_construct_stub(bool value) { |
+ DCHECK(kind() == BUILTIN); |
+ int previous = READ_UINT32_FIELD(this, kKindSpecificFlags1Offset); |
+ int updated = IsConstructStubField::update(previous, value); |
+ WRITE_UINT32_FIELD(this, kKindSpecificFlags1Offset, updated); |
+} |
bool Code::has_deoptimization_support() { |
DCHECK_EQ(FUNCTION, kind()); |