Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index a63ac6c4449c69d6b1b78e70f9ab625b8145c81d..061f00ecb6ef3c36eeda7939157c59f88c340628 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -2977,6 +2977,21 @@ void Code::set_has_debug_break_slots(bool value) { |
} |
+bool Code::is_compiled_optimizable() { |
+ ASSERT(kind() == FUNCTION); |
+ byte flags = READ_BYTE_FIELD(this, kFullCodeFlags); |
+ return FullCodeFlagsIsCompiledOptimizable::decode(flags); |
+} |
+ |
+ |
+void Code::set_compiled_optimizable(bool value) { |
+ ASSERT(kind() == FUNCTION); |
+ byte flags = READ_BYTE_FIELD(this, kFullCodeFlags); |
+ flags = FullCodeFlagsIsCompiledOptimizable::update(flags, value); |
+ WRITE_BYTE_FIELD(this, kFullCodeFlags, flags); |
+} |
+ |
+ |
int Code::allow_osr_at_loop_nesting_level() { |
ASSERT(kind() == FUNCTION); |
return READ_BYTE_FIELD(this, kAllowOSRAtLoopNestingLevelOffset); |