OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 static const int kCodeOffset = -1 * kPointerSize; | 97 static const int kCodeOffset = -1 * kPointerSize; |
98 | 98 |
99 static const int kSavedRegistersOffset = 0 * kPointerSize; | 99 static const int kSavedRegistersOffset = 0 * kPointerSize; |
100 | 100 |
101 // The caller fields are below the frame pointer on the stack. | 101 // The caller fields are below the frame pointer on the stack. |
102 static const int kCallerFPOffset = +0 * kPointerSize; | 102 static const int kCallerFPOffset = +0 * kPointerSize; |
103 // The calling JS function is between FP and PC. | 103 // The calling JS function is between FP and PC. |
104 static const int kCallerPCOffset = +1 * kPointerSize; | 104 static const int kCallerPCOffset = +1 * kPointerSize; |
105 | 105 |
106 // FP-relative displacement of the caller's SP. | 106 // FP-relative displacement of the caller's SP. |
107 static const int kCallerSPDisplacement = +4 * kPointerSize; | 107 static const int kCallerSPDisplacement = +3 * kPointerSize; |
108 }; | 108 }; |
109 | 109 |
110 | 110 |
111 class StandardFrameConstants : public AllStatic { | 111 class StandardFrameConstants : public AllStatic { |
112 public: | 112 public: |
113 static const int kExpressionsOffset = -3 * kPointerSize; | 113 static const int kExpressionsOffset = -3 * kPointerSize; |
114 static const int kMarkerOffset = -2 * kPointerSize; | 114 static const int kMarkerOffset = -2 * kPointerSize; |
115 static const int kContextOffset = -1 * kPointerSize; | 115 static const int kContextOffset = -1 * kPointerSize; |
116 static const int kCallerFPOffset = 0 * kPointerSize; | 116 static const int kCallerFPOffset = 0 * kPointerSize; |
117 static const int kCallerPCOffset = +1 * kPointerSize; | 117 static const int kCallerPCOffset = +1 * kPointerSize; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 | 155 |
156 | 156 |
157 inline Object* JavaScriptFrame::function_slot_object() const { | 157 inline Object* JavaScriptFrame::function_slot_object() const { |
158 const int offset = JavaScriptFrameConstants::kFunctionOffset; | 158 const int offset = JavaScriptFrameConstants::kFunctionOffset; |
159 return Memory::Object_at(fp() + offset); | 159 return Memory::Object_at(fp() + offset); |
160 } | 160 } |
161 | 161 |
162 } } // namespace v8::internal | 162 } } // namespace v8::internal |
163 | 163 |
164 #endif | 164 #endif |
OLD | NEW |