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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 static const int kCallerFPOffset = -3 * kPointerSize; | 93 static const int kCallerFPOffset = -3 * kPointerSize; |
94 }; | 94 }; |
95 | 95 |
96 | 96 |
97 class ExitFrameConstants : public AllStatic { | 97 class ExitFrameConstants : public AllStatic { |
98 public: | 98 public: |
99 // Exit frames have a debug marker on the stack. | 99 // Exit frames have a debug marker on the stack. |
100 static const int kSPDisplacement = -1 * kPointerSize; | 100 static const int kSPDisplacement = -1 * kPointerSize; |
101 | 101 |
102 // The debug marker is just above the frame pointer. | 102 // The debug marker is just above the frame pointer. |
103 static const int kDebugMarkOffset = -1 * kPointerSize; | 103 static const int kCodeOffset = -1 * kPointerSize; |
104 | 104 |
105 static const int kSavedRegistersOffset = 0 * kPointerSize; | 105 static const int kSavedRegistersOffset = 0 * kPointerSize; |
106 | 106 |
107 // The caller fields are below the frame pointer on the stack. | 107 // The caller fields are below the frame pointer on the stack. |
108 static const int kCallerFPOffset = +0 * kPointerSize; | 108 static const int kCallerFPOffset = +0 * kPointerSize; |
109 // The calling JS function is between FP and PC. | 109 // The calling JS function is between FP and PC. |
110 static const int kCallerPCOffset = +2 * kPointerSize; | 110 static const int kCallerPCOffset = +2 * kPointerSize; |
111 | 111 |
112 // FP-relative displacement of the caller's SP. It points just | 112 // FP-relative displacement of the caller's SP. It points just |
113 // below the saved PC. | 113 // below the saved PC. |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 | 153 |
154 inline Object* JavaScriptFrame::function_slot_object() const { | 154 inline Object* JavaScriptFrame::function_slot_object() const { |
155 const int offset = JavaScriptFrameConstants::kFunctionOffset; | 155 const int offset = JavaScriptFrameConstants::kFunctionOffset; |
156 return Memory::Object_at(fp() + offset); | 156 return Memory::Object_at(fp() + offset); |
157 } | 157 } |
158 | 158 |
159 | 159 |
160 } } // namespace v8::internal | 160 } } // namespace v8::internal |
161 | 161 |
162 #endif // V8_ARM_FRAMES_ARM_H_ | 162 #endif // V8_ARM_FRAMES_ARM_H_ |
OLD | NEW |