Chromium Code Reviews| Index: src/frames.h |
| =================================================================== |
| --- src/frames.h (revision 9328) |
| +++ src/frames.h (working copy) |
| @@ -49,36 +49,36 @@ |
| class ThreadLocalTop; |
| class Isolate; |
| -class PcToCodeCache { |
| +class InnerPointerToCodeCache { |
| public: |
| - struct PcToCodeCacheEntry { |
| - Address pc; |
| + struct InnerPointerToCodeCacheEntry { |
| + Address inner_pointer; |
| Code* code; |
| SafepointEntry safepoint_entry; |
| }; |
| - explicit PcToCodeCache(Isolate* isolate) : isolate_(isolate) { |
| + explicit InnerPointerToCodeCache(Isolate* isolate) : isolate_(isolate) { |
| Flush(); |
| } |
| - Code* GcSafeFindCodeForPc(Address pc); |
| + Code* GcSafeFindCodeForInnerPointer(Address pc); |
|
Rico
2011/09/20 09:38:45
address instead of pc?
Erik Corry
2011/09/20 09:44:11
Done.
|
| Code* GcSafeCastToCode(HeapObject* object, Address pc); |
|
Rico
2011/09/20 09:38:45
same as above
Erik Corry
2011/09/20 09:44:11
Done.
|
| void Flush() { |
| memset(&cache_[0], 0, sizeof(cache_)); |
| } |
| - PcToCodeCacheEntry* GetCacheEntry(Address pc); |
| + InnerPointerToCodeCacheEntry* GetCacheEntry(Address pc); |
|
Rico
2011/09/20 09:38:45
same as above
Erik Corry
2011/09/20 09:44:11
Done.
|
| private: |
| - PcToCodeCacheEntry* cache(int index) { return &cache_[index]; } |
| + InnerPointerToCodeCacheEntry* cache(int index) { return &cache_[index]; } |
| Isolate* isolate_; |
| static const int kPcToCodeCacheSize = 1024; |
| - PcToCodeCacheEntry cache_[kPcToCodeCacheSize]; |
| + InnerPointerToCodeCacheEntry cache_[kPcToCodeCacheSize]; |
|
Rico
2011/09/20 09:38:45
kAddressToCodeCacheSize?
Erik Corry
2011/09/20 09:44:11
kInnerPointerToCodeCacheSize
|
| - DISALLOW_COPY_AND_ASSIGN(PcToCodeCache); |
| + DISALLOW_COPY_AND_ASSIGN(InnerPointerToCodeCache); |
| }; |