Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index b27b0bb3d0a5c482c5d4a5d88ab2b6e1a0189bb4..7901f0892d94ea7361b23c22fc98877bfd3af666 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -3202,6 +3202,18 @@ void Code::set_to_boolean_state(byte 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; |