| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 static const int kCallerFPOffset = 0 * kPointerSize; | 101 static const int kCallerFPOffset = 0 * kPointerSize; |
| 102 static const int kCallerPCOffset = +1 * kPointerSize; | 102 static const int kCallerPCOffset = +1 * kPointerSize; |
| 103 static const int kCallerSPOffset = +2 * kPointerSize; | 103 static const int kCallerSPOffset = +2 * kPointerSize; |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 | 106 |
| 107 class JavaScriptFrameConstants : public AllStatic { | 107 class JavaScriptFrameConstants : public AllStatic { |
| 108 public: | 108 public: |
| 109 // FP-relative. | 109 // FP-relative. |
| 110 static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset; | 110 static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset; |
| 111 static const int kLastParameterOffset = +2 * kPointerSize; | 111 static const int kSavedRegistersOffset = +2 * kPointerSize; |
| 112 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset; | 112 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset; |
| 113 | 113 |
| 114 // Caller SP-relative. | 114 // Caller SP-relative. |
| 115 static const int kParam0Offset = -2 * kPointerSize; | 115 static const int kParam0Offset = -2 * kPointerSize; |
| 116 static const int kReceiverOffset = -1 * kPointerSize; | 116 static const int kReceiverOffset = -1 * kPointerSize; |
| 117 }; | 117 }; |
| 118 | 118 |
| 119 | 119 |
| 120 class ArgumentsAdaptorFrameConstants : public AllStatic { | 120 class ArgumentsAdaptorFrameConstants : public AllStatic { |
| 121 public: | 121 public: |
| 122 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset; | 122 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset; |
| 123 }; | 123 }; |
| 124 | 124 |
| 125 | 125 |
| 126 class InternalFrameConstants : public AllStatic { | 126 class InternalFrameConstants : public AllStatic { |
| 127 public: | 127 public: |
| 128 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset; | 128 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset; |
| 129 }; | 129 }; |
| 130 | 130 |
| 131 | 131 |
| 132 inline Object* JavaScriptFrame::function_slot_object() const { | 132 inline Object* JavaScriptFrame::function_slot_object() const { |
| 133 const int offset = JavaScriptFrameConstants::kFunctionOffset; | 133 const int offset = JavaScriptFrameConstants::kFunctionOffset; |
| 134 return Memory::Object_at(fp() + offset); | 134 return Memory::Object_at(fp() + offset); |
| 135 } | 135 } |
| 136 | 136 |
| 137 | 137 |
| 138 } } // namespace v8::internal | 138 } } // namespace v8::internal |
| 139 | 139 |
| 140 #endif // V8_IA32_FRAMES_IA32_H_ | 140 #endif // V8_IA32_FRAMES_IA32_H_ |
| OLD | NEW |