Index: src/codegen.cc |
=================================================================== |
--- src/codegen.cc (revision 654) |
+++ src/codegen.cc (working copy) |
@@ -330,12 +330,14 @@ |
{&v8::internal::CodeGenerator::GenerateObjectEquals, |
"_ObjectEquals"} |
}; |
- if (node->name()->length() > 0 && node->name()->Get(0) == '_') { |
+ Handle<String> name = node->name(); |
+ StringShape shape(*name); |
+ if (name->length(shape) > 0 && name->Get(shape, 0) == '_') { |
for (unsigned i = 0; |
i < sizeof(kInlineRuntimeLUT) / sizeof(InlineRuntimeLUT); |
i++) { |
const InlineRuntimeLUT* entry = kInlineRuntimeLUT + i; |
- if (node->name()->IsEqualTo(CStrVector(entry->name))) { |
+ if (name->IsEqualTo(CStrVector(entry->name))) { |
((*this).*(entry->method))(args); |
return true; |
} |