OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 77 |
78 Isolate* isolate_; | 78 Isolate* isolate_; |
79 | 79 |
80 static const int kInnerPointerToCodeCacheSize = 1024; | 80 static const int kInnerPointerToCodeCacheSize = 1024; |
81 InnerPointerToCodeCacheEntry cache_[kInnerPointerToCodeCacheSize]; | 81 InnerPointerToCodeCacheEntry cache_[kInnerPointerToCodeCacheSize]; |
82 | 82 |
83 DISALLOW_COPY_AND_ASSIGN(InnerPointerToCodeCache); | 83 DISALLOW_COPY_AND_ASSIGN(InnerPointerToCodeCache); |
84 }; | 84 }; |
85 | 85 |
86 | 86 |
| 87 class StackHandlerConstants : public AllStatic { |
| 88 public: |
| 89 static const int kNextOffset = 0 * kPointerSize; |
| 90 static const int kCodeOffset = 1 * kPointerSize; |
| 91 static const int kStateOffset = 2 * kPointerSize; |
| 92 static const int kContextOffset = 3 * kPointerSize; |
| 93 static const int kFPOffset = 4 * kPointerSize; |
| 94 |
| 95 static const int kSize = kFPOffset + kPointerSize; |
| 96 }; |
| 97 |
| 98 |
87 class StackHandler BASE_EMBEDDED { | 99 class StackHandler BASE_EMBEDDED { |
88 public: | 100 public: |
89 enum Kind { | 101 enum Kind { |
90 JS_ENTRY, | 102 JS_ENTRY, |
91 CATCH, | 103 CATCH, |
92 FINALLY, | 104 FINALLY, |
93 LAST_KIND = FINALLY | 105 LAST_KIND = FINALLY |
94 }; | 106 }; |
95 | 107 |
96 static const int kKindWidth = 2; | 108 static const int kKindWidth = 2; |
(...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
973 }; | 985 }; |
974 | 986 |
975 | 987 |
976 // Reads all frames on the current stack and copies them into the current | 988 // Reads all frames on the current stack and copies them into the current |
977 // zone memory. | 989 // zone memory. |
978 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); | 990 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); |
979 | 991 |
980 } } // namespace v8::internal | 992 } } // namespace v8::internal |
981 | 993 |
982 #endif // V8_FRAMES_H_ | 994 #endif // V8_FRAMES_H_ |
OLD | NEW |