Index: src/ast/ast-value-factory.cc |
diff --git a/src/ast/ast-value-factory.cc b/src/ast/ast-value-factory.cc |
index 29a6d951d1f4fa5f1dabdbc9adc13d26d3fdaf39..f15a8bd58802ae59888e6e41ad5566376d5fe8dd 100644 |
--- a/src/ast/ast-value-factory.cc |
+++ b/src/ast/ast-value-factory.cc |
@@ -397,8 +397,8 @@ AstRawString* AstValueFactory::GetString(uint32_t hash, bool is_one_byte, |
bool AstValueFactory::AstRawStringCompare(void* a, void* b) { |
const AstRawString* lhs = static_cast<AstRawString*>(a); |
const AstRawString* rhs = static_cast<AstRawString*>(b); |
+ DCHECK_EQ(lhs->hash(), rhs->hash()); |
if (lhs->length() != rhs->length()) return false; |
- if (lhs->hash() != rhs->hash()) return false; |
const unsigned char* l = lhs->raw_data(); |
const unsigned char* r = rhs->raw_data(); |
size_t length = rhs->length(); |