OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 14, // sp | 114 14, // sp |
115 15, // fp | 115 15, // fp |
116 kUndefIndex | 116 kUndefIndex |
117 }; | 117 }; |
118 | 118 |
119 | 119 |
120 // ---------------------------------------------------- | 120 // ---------------------------------------------------- |
121 | 121 |
122 class StackHandlerConstants : public AllStatic { | 122 class StackHandlerConstants : public AllStatic { |
123 public: | 123 public: |
124 static const int kNextOffset = 0 * kPointerSize; | 124 static const int kNextOffset = 0 * kPointerSize; |
125 static const int kStateOffset = 1 * kPointerSize; | 125 static const int kStateOffset = 1 * kPointerSize; |
126 static const int kFPOffset = 2 * kPointerSize; | 126 static const int kContextOffset = 2 * kPointerSize; |
127 static const int kPCOffset = 3 * kPointerSize; | 127 static const int kFPOffset = 3 * kPointerSize; |
| 128 static const int kPCOffset = 4 * kPointerSize; |
128 | 129 |
129 static const int kSize = kPCOffset + kPointerSize; | 130 static const int kSize = kPCOffset + kPointerSize; |
130 }; | 131 }; |
131 | 132 |
132 | 133 |
133 class EntryFrameConstants : public AllStatic { | 134 class EntryFrameConstants : public AllStatic { |
134 public: | 135 public: |
135 static const int kCallerFPOffset = -3 * kPointerSize; | 136 static const int kCallerFPOffset = -3 * kPointerSize; |
136 }; | 137 }; |
137 | 138 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 | 211 |
211 inline Object* JavaScriptFrame::function_slot_object() const { | 212 inline Object* JavaScriptFrame::function_slot_object() const { |
212 const int offset = JavaScriptFrameConstants::kFunctionOffset; | 213 const int offset = JavaScriptFrameConstants::kFunctionOffset; |
213 return Memory::Object_at(fp() + offset); | 214 return Memory::Object_at(fp() + offset); |
214 } | 215 } |
215 | 216 |
216 | 217 |
217 } } // namespace v8::internal | 218 } } // namespace v8::internal |
218 | 219 |
219 #endif | 220 #endif |
OLD | NEW |