Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 591012805b0c8c44d3009c2deb5ed80ceeae81cb..a0edababb42a26439a4f1801fa1953f60f0021e9 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -2985,13 +2985,6 @@ Code* SharedFunctionInfo::unchecked_code() { |
void SharedFunctionInfo::set_code(Code* value, WriteBarrierMode mode) { |
fschneider
2010/12/13 19:00:18
I'm not sure why is this assert not needed anymore
antonm
2010/12/13 22:41:04
My reasoning: before only functions which allowed
|
- // 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); |
} |