Index: src/assembler.cc |
diff --git a/src/assembler.cc b/src/assembler.cc |
index 3494f697a771ad7f533660db76cb42310ebe9510..d3f541a33f10db64ddfd389066f5a9b7503b7524 100644 |
--- a/src/assembler.cc |
+++ b/src/assembler.cc |
@@ -911,14 +911,21 @@ void RelocInfo::Verify(Isolate* isolate) { |
CHECK(code->address() == HeapObject::cast(found)->address()); |
break; |
} |
+ case INTERNAL_REFERENCE: |
+ case INTERNAL_REFERENCE_ENCODED: { |
+ Address target = target_internal_reference(); |
+ Address pc = target_internal_reference_address(); |
+ Code* code = Code::cast(isolate->FindCodeObject(pc)); |
+ CHECK(target >= code->instruction_start()); |
+ CHECK(target <= code->instruction_end()); |
+ break; |
+ } |
case RUNTIME_ENTRY: |
case JS_RETURN: |
case COMMENT: |
case POSITION: |
case STATEMENT_POSITION: |
case EXTERNAL_REFERENCE: |
- case INTERNAL_REFERENCE: |
- case INTERNAL_REFERENCE_ENCODED: |
case DEOPT_REASON: |
case CONST_POOL: |
case VENEER_POOL: |