Commit dd92c41a authored by verwaest@chromium.org's avatar verwaest@chromium.org

Merge UpdateLoadCaches into a single function dispatching on

ComputeLoadMonorphic and UpdateMegamorphicCache.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13492 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent ef4d9d12
This diff is collapsed.
......@@ -354,10 +354,14 @@ class LoadIC: public IC {
// Update the inline cache and the global stub cache based on the
// lookup result.
virtual void UpdateLoadCaches(LookupResult* lookup,
State state,
Handle<Object> object,
Handle<String> name);
void UpdateCaches(LookupResult* lookup,
State state,
Handle<Object> object,
Handle<String> name);
virtual Handle<Code> ComputeLoadMonomorphic(LookupResult* lookup,
Handle<JSObject> receiver,
Handle<String> name);
virtual void UpdateMegamorphicCache(Map* map, String* name, Code* code);
private:
// Stub accessors.
......@@ -425,10 +429,10 @@ class KeyedLoadIC: public LoadIC {
}
// Update the inline cache.
virtual void UpdateLoadCaches(LookupResult* lookup,
State state,
Handle<Object> object,
Handle<String> name);
virtual Handle<Code> ComputeLoadMonomorphic(LookupResult* lookup,
Handle<JSObject> receiver,
Handle<String> name);
virtual void UpdateMegamorphicCache(Map* map, String* name, Code* code) { }
private:
// Stub accessors.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment