| Index: src/stub-cache.cc
|
| diff --git a/src/stub-cache.cc b/src/stub-cache.cc
|
| index 08ca3f6882bf05f3b5fc114b95808f2007d43d14..c481a74c24fc75538ce10f818bafdd64c02443aa 100644
|
| --- a/src/stub-cache.cc
|
| +++ b/src/stub-cache.cc
|
| @@ -63,7 +63,7 @@ Code* StubCache::Set(String* name, Map* map, Code* code) {
|
| // Validate that the name does not move on scavenge, and that we
|
| // can use identity checks instead of string equality checks.
|
| ASSERT(!heap()->InNewSpace(name));
|
| - ASSERT(name->IsSymbol());
|
| + ASSERT(name->IsInternalizedString());
|
|
|
| // The state bits are not important to the hash function because
|
| // the stub cache only contains monomorphic stubs. Make sure that
|
| @@ -400,7 +400,7 @@ Handle<Code> StubCache::ComputeKeyedLoadElement(Handle<Map> receiver_map) {
|
| Code::Flags flags =
|
| Code::ComputeMonomorphicFlags(Code::KEYED_LOAD_IC, Code::NORMAL);
|
| Handle<String> name =
|
| - isolate()->factory()->KeyedLoadElementMonomorphic_symbol();
|
| + isolate()->factory()->KeyedLoadElementMonomorphic_string();
|
|
|
| Handle<Object> probe(receiver_map->FindInCodeCache(*name, flags), isolate_);
|
| if (probe->IsCode()) return Handle<Code>::cast(probe);
|
| @@ -428,8 +428,8 @@ Handle<Code> StubCache::ComputeKeyedStoreElement(
|
| stub_kind == KeyedStoreIC::STORE_AND_GROW_NO_TRANSITION);
|
|
|
| Handle<String> name = stub_kind == KeyedStoreIC::STORE_NO_TRANSITION
|
| - ? isolate()->factory()->KeyedStoreElementMonomorphic_symbol()
|
| - : isolate()->factory()->KeyedStoreAndGrowElementMonomorphic_symbol();
|
| + ? isolate()->factory()->KeyedStoreElementMonomorphic_string()
|
| + : isolate()->factory()->KeyedStoreAndGrowElementMonomorphic_string();
|
|
|
| Handle<Object> probe(receiver_map->FindInCodeCache(*name, flags), isolate_);
|
| if (probe->IsCode()) return Handle<Code>::cast(probe);
|
|
|