Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 3b63f9c28b2f239c7909ef0dba7c3d8f953ccc2a..4729b3fe7ea28d08000e955b76fb6b2374e2d16a 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -3099,6 +3099,19 @@ void Code::set_to_boolean_state(byte value) { |
WRITE_BYTE_FIELD(this, kToBooleanTypeOffset, value); |
} |
+ |
+bool Code::has_function_cache() { |
+ ASSERT(kind() == STUB); |
+ return READ_BYTE_FIELD(this, kHasFunctionCacheOffset) != 0; |
+} |
+ |
+ |
+void Code::set_has_function_cache(bool flag) { |
+ ASSERT(kind() == STUB); |
+ WRITE_BYTE_FIELD(this, kHasFunctionCacheOffset, flag); |
+} |
+ |
+ |
bool Code::is_inline_cache_stub() { |
Kind kind = this->kind(); |
return kind >= FIRST_IC_KIND && kind <= LAST_IC_KIND; |