OLD | NEW |
---|---|
1 // Copyright 2011 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 |
11 // with the distribution. | 11 // with the distribution. |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
90 // FP-relative displacement of the caller's SP. It points just | 90 // FP-relative displacement of the caller's SP. It points just |
91 // below the saved PC. | 91 // below the saved PC. |
92 static const int kCallerSPDisplacement = +2 * kPointerSize; | 92 static const int kCallerSPDisplacement = +2 * kPointerSize; |
93 }; | 93 }; |
94 | 94 |
95 | 95 |
96 class StandardFrameConstants : public AllStatic { | 96 class StandardFrameConstants : public AllStatic { |
97 public: | 97 public: |
98 // StandardFrame::IterateExpressions assumes that kContextOffset is the last | 98 // StandardFrame::IterateExpressions assumes that kContextOffset is the last |
99 // object pointer. | 99 // object pointer. |
100 static const int kFixedFrameSize = 4; // Currently unused. | 100 static const int kFixedFrameSize = 4; |
Kevin Millikin (Chromium)
2012/01/24 00:08:54
Currently unused, nice. Maybe a comment is needed
Vyacheslav Egorov (Chromium)
2012/01/24 08:49:20
Done.
| |
101 static const int kExpressionsOffset = -3 * kPointerSize; | 101 static const int kExpressionsOffset = -3 * kPointerSize; |
102 static const int kMarkerOffset = -2 * kPointerSize; | 102 static const int kMarkerOffset = -2 * kPointerSize; |
103 static const int kContextOffset = -1 * kPointerSize; | 103 static const int kContextOffset = -1 * kPointerSize; |
104 static const int kCallerFPOffset = 0 * kPointerSize; | 104 static const int kCallerFPOffset = 0 * kPointerSize; |
105 static const int kCallerPCOffset = +1 * kPointerSize; | 105 static const int kCallerPCOffset = +1 * kPointerSize; |
106 static const int kCallerSPOffset = +2 * kPointerSize; | 106 static const int kCallerSPOffset = +2 * kPointerSize; |
107 }; | 107 }; |
108 | 108 |
109 | 109 |
110 class JavaScriptFrameConstants : public AllStatic { | 110 class JavaScriptFrameConstants : public AllStatic { |
(...skipping 23 matching lines...) Expand all Loading... | |
134 | 134 |
135 inline Object* JavaScriptFrame::function_slot_object() const { | 135 inline Object* JavaScriptFrame::function_slot_object() const { |
136 const int offset = JavaScriptFrameConstants::kFunctionOffset; | 136 const int offset = JavaScriptFrameConstants::kFunctionOffset; |
137 return Memory::Object_at(fp() + offset); | 137 return Memory::Object_at(fp() + offset); |
138 } | 138 } |
139 | 139 |
140 | 140 |
141 } } // namespace v8::internal | 141 } } // namespace v8::internal |
142 | 142 |
143 #endif // V8_IA32_FRAMES_IA32_H_ | 143 #endif // V8_IA32_FRAMES_IA32_H_ |
OLD | NEW |