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

Unified Diff: src/ic.h

Issue 12051057: Merge UpdateLoadCaches into a single function dispatching on ComputeLoadMonorphic and UpdateMegamor… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 11 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 | « no previous file | src/ic.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ic.h
diff --git a/src/ic.h b/src/ic.h
index 9acb72a7544f88649de46a51bd8047f950594a47..3ffe4e06186f39783c586c2a30c105f0a8bee71e 100644
--- a/src/ic.h
+++ b/src/ic.h
@@ -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.
« no previous file with comments | « no previous file | src/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698