Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(535)

Unified Diff: src/ic.cc

Issue 8341009: Make the GC aware of JSReceiver pointers in LookupResults. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Inlined LookupResult constructor and destructor. Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ia32/stub-cache-ia32.cc ('k') | src/isolate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ic.cc
diff --git a/src/ic.cc b/src/ic.cc
index f99fcf430efab50304b82ad23d974162eb1ec163..9a56f23bd76d81417d9bfb41838e794e9209941f 100644
--- a/src/ic.cc
+++ b/src/ic.cc
@@ -483,7 +483,7 @@ MaybeObject* CallICBase::LoadFunction(State state,
}
// Lookup the property in the object.
- LookupResult lookup;
+ LookupResult lookup(isolate());
LookupForRead(*object, *name, &lookup);
if (!lookup.IsProperty()) {
@@ -935,7 +935,7 @@ MaybeObject* LoadIC::Load(State state,
if (name->AsArrayIndex(&index)) return object->GetElement(index);
// Named lookup in the object.
- LookupResult lookup;
+ LookupResult lookup(isolate());
LookupForRead(*object, *name, &lookup);
// If we did not find a property, check if we need to throw an exception.
@@ -1203,7 +1203,7 @@ MaybeObject* KeyedLoadIC::Load(State state,
}
// Named lookup.
- LookupResult lookup;
+ LookupResult lookup(isolate());
LookupForRead(*object, *name, &lookup);
// If we did not find a property, check if we need to throw an exception.
@@ -1435,7 +1435,7 @@ MaybeObject* StoreIC::Store(State state,
// Lookup the property locally in the receiver.
if (FLAG_use_ic && !receiver->IsJSGlobalProxy()) {
- LookupResult lookup;
+ LookupResult lookup(isolate());
if (LookupForWrite(*receiver, *name, &lookup)) {
// Generate a stub for this store.
@@ -1849,7 +1849,7 @@ MaybeObject* KeyedStoreIC::Store(State state,
}
// Lookup the property locally in the receiver.
- LookupResult lookup;
+ LookupResult lookup(isolate());
receiver->LocalLookup(*name, &lookup);
// Update inline cache and stub cache.
« no previous file with comments | « src/ia32/stub-cache-ia32.cc ('k') | src/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698