| Index: src/ic.cc
|
| ===================================================================
|
| --- src/ic.cc (revision 3777)
|
| +++ src/ic.cc (working copy)
|
| @@ -432,7 +432,7 @@
|
| }
|
|
|
| // Lookup is valid: Update inline cache and stub cache.
|
| - if (FLAG_use_ic && lookup.IsLoaded()) {
|
| + if (FLAG_use_ic) {
|
| UpdateCaches(&lookup, state, object, name);
|
| }
|
|
|
| @@ -491,7 +491,6 @@
|
| State state,
|
| Handle<Object> object,
|
| Handle<String> name) {
|
| - ASSERT(lookup->IsLoaded());
|
| // Bail out if we didn't find a result.
|
| if (!lookup->IsValid() || !lookup->IsCacheable()) return;
|
|
|
| @@ -654,7 +653,6 @@
|
| FLAG_use_ic &&
|
| state == PREMONOMORPHIC &&
|
| lookup.IsValid() &&
|
| - lookup.IsLoaded() &&
|
| lookup.IsCacheable() &&
|
| lookup.holder() == *object &&
|
| lookup.type() == FIELD &&
|
| @@ -676,7 +674,7 @@
|
| }
|
|
|
| // Update inline cache and stub cache.
|
| - if (FLAG_use_ic && lookup.IsLoaded()) {
|
| + if (FLAG_use_ic) {
|
| UpdateCaches(&lookup, state, object, name);
|
| }
|
|
|
| @@ -702,7 +700,6 @@
|
| State state,
|
| Handle<Object> object,
|
| Handle<String> name) {
|
| - ASSERT(lookup->IsLoaded());
|
| // Bail out if we didn't find a result.
|
| if (!lookup->IsValid() || !lookup->IsCacheable()) return;
|
|
|
| @@ -864,7 +861,7 @@
|
| }
|
| }
|
|
|
| - if (FLAG_use_ic && lookup.IsLoaded()) {
|
| + if (FLAG_use_ic) {
|
| UpdateCaches(&lookup, state, object, name);
|
| }
|
|
|
| @@ -917,7 +914,6 @@
|
|
|
| void KeyedLoadIC::UpdateCaches(LookupResult* lookup, State state,
|
| Handle<Object> object, Handle<String> name) {
|
| - ASSERT(lookup->IsLoaded());
|
| // Bail out if we didn't find a result.
|
| if (!lookup->IsValid() || !lookup->IsCacheable()) return;
|
|
|
| @@ -998,8 +994,6 @@
|
| // state.
|
| if (lookup->IsReadOnly()) return false;
|
|
|
| - if (!lookup->IsLoaded()) return false;
|
| -
|
| return true;
|
| }
|
|
|
| @@ -1064,7 +1058,6 @@
|
| Handle<JSObject> receiver,
|
| Handle<String> name,
|
| Handle<Object> value) {
|
| - ASSERT(lookup->IsLoaded());
|
| // Skip JSGlobalProxy.
|
| ASSERT(!receiver->IsJSGlobalProxy());
|
|
|
| @@ -1172,7 +1165,7 @@
|
| receiver->LocalLookup(*name, &lookup);
|
|
|
| // Update inline cache and stub cache.
|
| - if (FLAG_use_ic && lookup.IsLoaded()) {
|
| + if (FLAG_use_ic) {
|
| UpdateCaches(&lookup, state, receiver, name, value);
|
| }
|
|
|
| @@ -1206,8 +1199,6 @@
|
| Handle<JSObject> receiver,
|
| Handle<String> name,
|
| Handle<Object> value) {
|
| - ASSERT(lookup->IsLoaded());
|
| -
|
| // Skip JSGlobalProxy.
|
| if (receiver->IsJSGlobalProxy()) return;
|
|
|
|
|