Index: src/full-codegen.cc |
diff --git a/src/full-codegen.cc b/src/full-codegen.cc |
index bd3846711d3216b7935a1d32d643408dd5caed50..58e5e978abf2dd7b73363378ccef7d1d4e9780f6 100644 |
--- a/src/full-codegen.cc |
+++ b/src/full-codegen.cc |
@@ -346,6 +346,11 @@ bool FullCodeGenerator::MakeCode(CompilationInfo* info) { |
info->SetCode(code); |
void* line_info = masm.positions_recorder()->DetachJITHandlerData(); |
LOG_CODE_EVENT(isolate, CodeEndLinePosInfoRecordEvent(*code, line_info)); |
+ |
+#ifdef DEBUG |
+ // Check that no context-specific object has been embedded. |
+ code->VerifyEmbeddedObjectsInFullCode(); |
+#endif // DEBUG |
return true; |
} |