Index: src/hydrogen-instructions.cc |
diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc |
index 11cc901b38ccfccf7a3607f99e1088b47b7f4ac9..be082b1a762fa19917157d4bff91fc2f56c88869 100644 |
--- a/src/hydrogen-instructions.cc |
+++ b/src/hydrogen-instructions.cc |
@@ -1199,10 +1199,11 @@ HValue* HCheckInstanceType::Canonicalize() { |
return NULL; |
} |
- if (check_ == IS_SYMBOL && value()->IsConstant()) { |
- // Dereferencing is safe here: a symbol cannot become a non-symbol. |
+ if (check_ == IS_INTERNALIZED_STRING && value()->IsConstant()) { |
+ // Dereferencing is safe here: |
+ // an internalized string cannot become non-internalized. |
AllowHandleDereference allow_handle_deref; |
- if (HConstant::cast(value())->handle()->IsSymbol()) return NULL; |
+ if (HConstant::cast(value())->handle()->IsInternalizedString()) return NULL; |
} |
return this; |
} |
@@ -1232,9 +1233,9 @@ void HCheckInstanceType::GetCheckMaskAndTag(uint8_t* mask, uint8_t* tag) { |
*mask = kIsNotStringMask; |
*tag = kStringTag; |
return; |
- case IS_SYMBOL: |
- *mask = kIsSymbolMask; |
- *tag = kSymbolTag; |
+ case IS_INTERNALIZED_STRING: |
+ *mask = kIsInternalizedMask; |
+ *tag = kInternalizedTag; |
return; |
default: |
UNREACHABLE(); |
@@ -1292,7 +1293,7 @@ const char* HCheckInstanceType::GetCheckName() { |
case IS_SPEC_OBJECT: return "object"; |
case IS_JS_ARRAY: return "array"; |
case IS_STRING: return "string"; |
- case IS_SYMBOL: return "symbol"; |
+ case IS_INTERNALIZED_STRING: return "internalized_string"; |
} |
UNREACHABLE(); |
return ""; |