Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 55beb3a2b9d5b6a535f12f9850d8e2da928a5d8a..8891b48113d49154f6afb850e2c0b9699d23b741 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -6599,7 +6599,7 @@ bool HOptimizedGraphBuilder::TryArgumentsAccess(Property* expr) { |
HInstruction* result = NULL; |
if (expr->key()->IsPropertyName()) { |
Handle<String> name = expr->key()->AsLiteral()->AsPropertyName(); |
- if (!name->IsEqualTo(CStrVector("length"))) return false; |
+ if (!name->IsOneByteEqualTo(STATIC_ASCII_VECTOR("length"))) return false; |
if (function_state()->outer() == NULL) { |
HInstruction* elements = AddInstruction( |
@@ -8495,7 +8495,9 @@ static bool IsClassOfTest(CompareOperation* expr) { |
Literal* literal = expr->right()->AsLiteral(); |
if (literal == NULL) return false; |
if (!literal->handle()->IsString()) return false; |
- if (!call->name()->IsEqualTo(CStrVector("_ClassOf"))) return false; |
+ if (!call->name()->IsOneByteEqualTo(STATIC_ASCII_VECTOR("_ClassOf"))) { |
+ return false; |
+ } |
ASSERT(call->arguments()->length() == 1); |
return true; |
} |