| Index: src/ic.cc
|
| ===================================================================
|
| --- src/ic.cc (revision 4215)
|
| +++ src/ic.cc (working copy)
|
| @@ -436,7 +436,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);
|
| }
|
|
|
| @@ -484,7 +484,6 @@
|
| State state,
|
| Handle<Object> object,
|
| Handle<String> name) {
|
| - ASSERT(lookup->IsLoaded());
|
| // Bail out if we didn't find a result.
|
| if (!lookup->IsProperty() || !lookup->IsCacheable()) return;
|
|
|
| @@ -647,7 +646,6 @@
|
| FLAG_use_ic &&
|
| state == PREMONOMORPHIC &&
|
| lookup.IsProperty() &&
|
| - lookup.IsLoaded() &&
|
| lookup.IsCacheable() &&
|
| lookup.holder() == *object &&
|
| lookup.type() == FIELD &&
|
| @@ -669,7 +667,7 @@
|
| }
|
|
|
| // Update inline cache and stub cache.
|
| - if (FLAG_use_ic && lookup.IsLoaded()) {
|
| + if (FLAG_use_ic) {
|
| UpdateCaches(&lookup, state, object, name);
|
| }
|
|
|
| @@ -695,7 +693,6 @@
|
| State state,
|
| Handle<Object> object,
|
| Handle<String> name) {
|
| - ASSERT(lookup->IsLoaded());
|
| // Bail out if we didn't find a result.
|
| if (!lookup->IsProperty() || !lookup->IsCacheable()) return;
|
|
|
| @@ -857,7 +854,7 @@
|
| }
|
| }
|
|
|
| - if (FLAG_use_ic && lookup.IsLoaded()) {
|
| + if (FLAG_use_ic) {
|
| UpdateCaches(&lookup, state, object, name);
|
| }
|
|
|
| @@ -912,7 +909,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->IsProperty() || !lookup->IsCacheable()) return;
|
|
|
| @@ -993,8 +989,6 @@
|
| // state.
|
| if (lookup->IsReadOnly()) return false;
|
|
|
| - if (!lookup->IsLoaded()) return false;
|
| -
|
| return true;
|
| }
|
|
|
| @@ -1073,7 +1067,6 @@
|
| Handle<JSObject> receiver,
|
| Handle<String> name,
|
| Handle<Object> value) {
|
| - ASSERT(lookup->IsLoaded());
|
| // Skip JSGlobalProxy.
|
| ASSERT(!receiver->IsJSGlobalProxy());
|
|
|
| @@ -1181,7 +1174,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);
|
| }
|
|
|
| @@ -1215,8 +1208,6 @@
|
| Handle<JSObject> receiver,
|
| Handle<String> name,
|
| Handle<Object> value) {
|
| - ASSERT(lookup->IsLoaded());
|
| -
|
| // Skip JSGlobalProxy.
|
| if (receiver->IsJSGlobalProxy()) return;
|
|
|
|
|