| Index: src/ia32/stub-cache-ia32.cc
|
| diff --git a/src/ia32/stub-cache-ia32.cc b/src/ia32/stub-cache-ia32.cc
|
| index 704f8de205aa4b43d1d48c5f35c236f33cf984a8..5dc894c1f75afdd73b646706d5ebbc0e324a3108 100644
|
| --- a/src/ia32/stub-cache-ia32.cc
|
| +++ b/src/ia32/stub-cache-ia32.cc
|
| @@ -141,14 +141,14 @@ static void ProbeTable(Isolate* isolate,
|
| // the property. This function may return false negatives, so miss_label
|
| // must always call a backup property check that is complete.
|
| // This function is safe to call if the receiver has fast properties.
|
| -// Name must be a symbol and receiver must be a heap object.
|
| +// Name must be an internalized string and receiver must be a heap object.
|
| static void GenerateDictionaryNegativeLookup(MacroAssembler* masm,
|
| Label* miss_label,
|
| Register receiver,
|
| Handle<String> name,
|
| Register r0,
|
| Register r1) {
|
| - ASSERT(name->IsSymbol());
|
| + ASSERT(name->IsInternalizedString());
|
| Counters* counters = masm->isolate()->counters();
|
| __ IncrementCounter(counters->negative_lookups(), 1);
|
| __ IncrementCounter(counters->negative_lookups_miss(), 1);
|
| @@ -972,8 +972,8 @@ Register StubCompiler::CheckPrototypes(Handle<JSObject> object,
|
| if (!current->HasFastProperties() &&
|
| !current->IsJSGlobalObject() &&
|
| !current->IsJSGlobalProxy()) {
|
| - if (!name->IsSymbol()) {
|
| - name = factory()->LookupSymbol(name);
|
| + if (!name->IsInternalizedString()) {
|
| + name = factory()->InternalizeString(name);
|
| }
|
| ASSERT(current->property_dictionary()->FindEntry(*name) ==
|
| StringDictionary::kNotFound);
|
| @@ -2422,7 +2422,7 @@ Handle<Code> CallStubCompiler::CompileCallConstant(Handle<Object> object,
|
|
|
| case STRING_CHECK:
|
| if (function->IsBuiltin() || !function->shared()->is_classic_mode()) {
|
| - // Check that the object is a string or a symbol.
|
| + // Check that the object is a string or an internalized string.
|
| __ CmpObjectType(edx, FIRST_NONSTRING_TYPE, eax);
|
| __ j(above_equal, &miss);
|
| // Check that the maps starting from the prototype haven't changed.
|
|
|