Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 3ddd7cce83d1fb7464cf2c476324731ae0dff23f..957f2476de093e56f4d4f62326806647be3a66bb 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -7201,7 +7201,9 @@ bool HOptimizedGraphBuilder::TryArgumentsAccess(Property* expr) { |
HInstruction* result = NULL; |
if (expr->key()->IsPropertyName()) { |
Handle<String> name = expr->key()->AsLiteral()->AsPropertyName(); |
- if (!name->IsOneByteEqualTo(STATIC_ASCII_VECTOR("length"))) return false; |
+ if (!String::Equals(name, isolate()->factory()->length_string())) { |
+ return false; |
+ } |
if (function_state()->outer() == NULL) { |
HInstruction* elements = Add<HArgumentsElements>(false); |