| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 static Code* GcSafeFindCodeForPc(Address pc); | 60 static Code* GcSafeFindCodeForPc(Address pc); |
| 61 static Code* GcSafeCastToCode(HeapObject* object, Address pc); | 61 static Code* GcSafeCastToCode(HeapObject* object, Address pc); |
| 62 | 62 |
| 63 static void FlushPcToCodeCache() { | 63 static void FlushPcToCodeCache() { |
| 64 memset(&cache_[0], 0, sizeof(cache_)); | 64 memset(&cache_[0], 0, sizeof(cache_)); |
| 65 } | 65 } |
| 66 | 66 |
| 67 static PcToCodeCacheEntry* GetCacheEntry(Address pc); | 67 static PcToCodeCacheEntry* GetCacheEntry(Address pc); |
| 68 | 68 |
| 69 private: | 69 private: |
| 70 static const int kPcToCodeCacheSize = 256; | 70 static const int kPcToCodeCacheSize = 1024; |
| 71 static PcToCodeCacheEntry cache_[kPcToCodeCacheSize]; | 71 static PcToCodeCacheEntry cache_[kPcToCodeCacheSize]; |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 | 74 |
| 75 class StackHandler BASE_EMBEDDED { | 75 class StackHandler BASE_EMBEDDED { |
| 76 public: | 76 public: |
| 77 enum State { | 77 enum State { |
| 78 ENTRY, | 78 ENTRY, |
| 79 TRY_CATCH, | 79 TRY_CATCH, |
| 80 TRY_FINALLY | 80 TRY_FINALLY |
| (...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 736 }; | 736 }; |
| 737 | 737 |
| 738 | 738 |
| 739 // Reads all frames on the current stack and copies them into the current | 739 // Reads all frames on the current stack and copies them into the current |
| 740 // zone memory. | 740 // zone memory. |
| 741 Vector<StackFrame*> CreateStackMap(); | 741 Vector<StackFrame*> CreateStackMap(); |
| 742 | 742 |
| 743 } } // namespace v8::internal | 743 } } // namespace v8::internal |
| 744 | 744 |
| 745 #endif // V8_FRAMES_H_ | 745 #endif // V8_FRAMES_H_ |
| OLD | NEW |