Index: src/objects-inl.h |
=================================================================== |
--- src/objects-inl.h (revision 9457) |
+++ src/objects-inl.h (working copy) |
@@ -2935,6 +2935,19 @@ |
} |
+bool Code::is_pregenerated() { |
+ return kind() == STUB && IsPregeneratedField::decode(flags()); |
+} |
+ |
+ |
+void Code::set_is_pregenerated(bool value) { |
+ ASSERT(kind() == STUB); |
+ Flags f = flags(); |
+ f = static_cast<Flags>(IsPregeneratedField::update(f, value)); |
+ set_flags(f); |
+} |
+ |
+ |
bool Code::optimizable() { |
ASSERT(kind() == FUNCTION); |
return READ_BYTE_FIELD(this, kOptimizableOffset) == 1; |