equal
deleted
inserted
replaced
734 //----------------------calculate_adr_type------------------------------------- |
734 //----------------------calculate_adr_type------------------------------------- |
735 // Helper function. Notices when the given type of address hits top or bottom. |
735 // Helper function. Notices when the given type of address hits top or bottom. |
736 // Also, asserts a cross-check of the type against the expected address type. |
736 // Also, asserts a cross-check of the type against the expected address type. |
737 const TypePtr* MemNode::calculate_adr_type(const Type* t, const TypePtr* cross_check) { |
737 const TypePtr* MemNode::calculate_adr_type(const Type* t, const TypePtr* cross_check) { |
738 if (t == Type::TOP) return NULL; // does not touch memory any more? |
738 if (t == Type::TOP) return NULL; // does not touch memory any more? |
739 #ifdef PRODUCT |
739 #ifdef ASSERT |
740 cross_check = NULL; |
|
741 #else |
|
742 if (!VerifyAliases || VMError::is_error_reported() || Node::in_dump()) cross_check = NULL; |
740 if (!VerifyAliases || VMError::is_error_reported() || Node::in_dump()) cross_check = NULL; |
743 #endif |
741 #endif |
744 const TypePtr* tp = t->isa_ptr(); |
742 const TypePtr* tp = t->isa_ptr(); |
745 if (tp == NULL) { |
743 if (tp == NULL) { |
746 assert(cross_check == NULL || cross_check == TypePtr::BOTTOM, "expected memory type must be wide"); |
744 assert(cross_check == NULL || cross_check == TypePtr::BOTTOM, "expected memory type must be wide"); |