| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 73 |
| 74 static const int kFunctionArgOffset = +3 * kPointerSize; | 74 static const int kFunctionArgOffset = +3 * kPointerSize; |
| 75 static const int kReceiverArgOffset = +4 * kPointerSize; | 75 static const int kReceiverArgOffset = +4 * kPointerSize; |
| 76 static const int kArgcOffset = +5 * kPointerSize; | 76 static const int kArgcOffset = +5 * kPointerSize; |
| 77 static const int kArgvOffset = +6 * kPointerSize; | 77 static const int kArgvOffset = +6 * kPointerSize; |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 | 80 |
| 81 class ExitFrameConstants : public AllStatic { | 81 class ExitFrameConstants : public AllStatic { |
| 82 public: | 82 public: |
| 83 static const int kCodeOffset = -2 * kPointerSize; | 83 static const int kCodeOffset = -2 * kPointerSize; |
| 84 static const int kSPOffset = -1 * kPointerSize; | 84 static const int kSPOffset = -1 * kPointerSize; |
| 85 | 85 |
| 86 static const int kCallerFPOffset = 0 * kPointerSize; | 86 static const int kCallerFPOffset = 0 * kPointerSize; |
| 87 static const int kCallerPCOffset = +1 * kPointerSize; | 87 static const int kCallerPCOffset = +1 * kPointerSize; |
| 88 | 88 |
| 89 // FP-relative displacement of the caller's SP. It points just | 89 // FP-relative displacement of the caller's SP. It points just |
| 90 // below the saved PC. | 90 // below the saved PC. |
| 91 static const int kCallerSPDisplacement = +2 * kPointerSize; | 91 static const int kCallerSPDisplacement = +2 * kPointerSize; |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 | 94 |
| 95 class StandardFrameConstants : public AllStatic { | 95 class StandardFrameConstants : public AllStatic { |
| 96 public: | 96 public: |
| 97 static const int kFixedFrameSize = 4; | 97 // StandardFrame::IterateExpressions assumes that kContextOffset is the last |
| 98 // object pointer. |
| 99 static const int kFixedFrameSize = 4; // Currently unused. |
| 98 static const int kExpressionsOffset = -3 * kPointerSize; | 100 static const int kExpressionsOffset = -3 * kPointerSize; |
| 99 static const int kMarkerOffset = -2 * kPointerSize; | 101 static const int kMarkerOffset = -2 * kPointerSize; |
| 100 static const int kContextOffset = -1 * kPointerSize; | 102 static const int kContextOffset = -1 * kPointerSize; |
| 101 static const int kCallerFPOffset = 0 * kPointerSize; | 103 static const int kCallerFPOffset = 0 * kPointerSize; |
| 102 static const int kCallerPCOffset = +1 * kPointerSize; | 104 static const int kCallerPCOffset = +1 * kPointerSize; |
| 103 static const int kCallerSPOffset = +2 * kPointerSize; | 105 static const int kCallerSPOffset = +2 * kPointerSize; |
| 104 }; | 106 }; |
| 105 | 107 |
| 106 | 108 |
| 107 class JavaScriptFrameConstants : public AllStatic { | 109 class JavaScriptFrameConstants : public AllStatic { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 131 | 133 |
| 132 inline Object* JavaScriptFrame::function_slot_object() const { | 134 inline Object* JavaScriptFrame::function_slot_object() const { |
| 133 const int offset = JavaScriptFrameConstants::kFunctionOffset; | 135 const int offset = JavaScriptFrameConstants::kFunctionOffset; |
| 134 return Memory::Object_at(fp() + offset); | 136 return Memory::Object_at(fp() + offset); |
| 135 } | 137 } |
| 136 | 138 |
| 137 | 139 |
| 138 } } // namespace v8::internal | 140 } } // namespace v8::internal |
| 139 | 141 |
| 140 #endif // V8_IA32_FRAMES_IA32_H_ | 142 #endif // V8_IA32_FRAMES_IA32_H_ |
| OLD | NEW |