Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 3c9dc82351f1ba57a72e9e6c44fffbf5bde92b3d..4e4461335a765a657ccbdcb1864babde8060662a 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -2990,13 +2990,6 @@ Code* SharedFunctionInfo::unchecked_code() { |
void SharedFunctionInfo::set_code(Code* value, WriteBarrierMode mode) { |
- // If optimization has been disabled for the shared function info, |
- // reflect that in the code object so it will not be counted as |
- // optimizable code. |
- ASSERT(value->kind() != Code::FUNCTION || |
- !value->optimizable() || |
- this->code() == Builtins::builtin(Builtins::Illegal) || |
- this->allows_lazy_compilation()); |
WRITE_FIELD(this, kCodeOffset, value); |
CONDITIONAL_WRITE_BARRIER(this, kCodeOffset, mode); |
} |