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

Unified Diff: src/stub-cache.cc

Issue 150168: Removed virtual behavior from Dictionaries. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 6 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
« src/objects.cc ('K') | « src/runtime.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/stub-cache.cc
===================================================================
--- src/stub-cache.cc (revision 2321)
+++ src/stub-cache.cc (working copy)
@@ -562,8 +562,8 @@
static Object* GetProbeValue(Code::Flags flags) {
- Dictionary* dictionary = Heap::non_monomorphic_cache();
- int entry = dictionary->FindNumberEntry(flags);
+ NumberDictionary* dictionary = Heap::non_monomorphic_cache();
+ int entry = dictionary->FindEntry(flags);
if (entry != -1) return dictionary->ValueAt(entry);
return Heap::undefined_value();
}
@@ -579,7 +579,7 @@
Heap::non_monomorphic_cache()->AtNumberPut(flags,
Heap::undefined_value());
if (result->IsFailure()) return result;
- Heap::set_non_monomorphic_cache(Dictionary::cast(result));
+ Heap::set_non_monomorphic_cache(NumberDictionary::cast(result));
return probe;
}
@@ -587,7 +587,7 @@
static Object* FillCache(Object* code) {
if (code->IsCode()) {
int entry =
- Heap::non_monomorphic_cache()->FindNumberEntry(
+ Heap::non_monomorphic_cache()->FindEntry(
Code::cast(code)->flags());
// The entry must be present see comment in ProbeCache.
ASSERT(entry != -1);
« src/objects.cc ('K') | « src/runtime.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698