Index: src/objects-debug.cc |
diff --git a/src/objects-debug.cc b/src/objects-debug.cc |
index a61eacf4d47e42886783d93f001156b53247d9ff..4ba70c3c88efc52950389800bcb5a43df42e65fe 100644 |
--- a/src/objects-debug.cc |
+++ b/src/objects-debug.cc |
@@ -201,6 +201,9 @@ void HeapObject::HeapObjectVerify() { |
case SHARED_FUNCTION_INFO_TYPE: |
SharedFunctionInfo::cast(this)->SharedFunctionInfoVerify(); |
break; |
+ case OPTIMIZED_CODE_ENTRY_TYPE: |
+ OptimizedCodeEntry::cast(this)->OptimizedCodeEntryVerify(); |
+ break; |
case JS_MESSAGE_OBJECT_TYPE: |
JSMessageObject::cast(this)->JSMessageObjectVerify(); |
break; |
@@ -577,6 +580,17 @@ void SharedFunctionInfo::SharedFunctionInfoVerify() { |
} |
+void OptimizedCodeEntry::OptimizedCodeEntryVerify() { |
+ CHECK(IsOptimizedCodeEntry()); |
+ VerifyObjectField(kNativeContextOffset); |
+ VerifyObjectField(kFunctionOffset); |
+ VerifyObjectField(kCodeOffset); |
+ VerifyObjectField(kLiteralsOffset); |
+ VerifyObjectField(kNextBySharedInfoOffset); |
+ VerifyObjectField(kNextByNativeContextOffset); |
+} |
+ |
+ |
void JSGlobalProxy::JSGlobalProxyVerify() { |
CHECK(IsJSGlobalProxy()); |
JSObjectVerify(); |