Chromium Code Reviews| Index: src/objects-inl.h |
| diff --git a/src/objects-inl.h b/src/objects-inl.h |
| index 4929c0d2dfd56a70900d070e8d2b2e87f52120c2..05cb6aa23b1ca2916548981ab269bbad1dc17bd1 100644 |
| --- a/src/objects-inl.h |
| +++ b/src/objects-inl.h |
| @@ -5228,7 +5228,10 @@ void SharedFunctionInfo::ReplaceCode(Code* value) { |
| flusher->EvictCandidate(this); |
| } |
| +#ifdef DEBUG |
| DCHECK(code()->gc_metadata() == NULL && value->gc_metadata() == NULL); |
| + Code::VerifyRecompiledCode(code(), value); |
| +#endif // DEBUG |
| set_code(value); |