Index: src/heap-inl.h |
=================================================================== |
--- src/heap-inl.h (revision 556) |
+++ src/heap-inl.h (working copy) |
@@ -165,6 +165,26 @@ |
} |
+Object* Heap::GetKeyedLookupCache() { |
+ if (keyed_lookup_cache()->IsUndefined()) { |
+ Object* obj = LookupCache::Allocate(4); |
+ if (obj->IsFailure()) return obj; |
+ keyed_lookup_cache_ = obj; |
+ } |
bak
2008/10/23 06:08:11
Use keyed_lookup_cache() instead of keyed_lookup_c
|
+ return keyed_lookup_cache_; |
+} |
+ |
+ |
+void Heap::SetKeyedLookupCache(LookupCache* cache) { |
+ keyed_lookup_cache_ = cache; |
+} |
+ |
+ |
+void Heap::ClearKeyedLookupCache() { |
+ keyed_lookup_cache_ = undefined_value(); |
+} |
+ |
+ |
#define GC_GREEDY_CHECK() \ |
ASSERT(!FLAG_gc_greedy || v8::internal::Heap::GarbageCollectionGreedyCheck()) |