OLD | NEW |
1 // Copyright 2012 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 |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 }; | 126 }; |
127 | 127 |
128 | 128 |
129 inline Object* JavaScriptFrame::function_slot_object() const { | 129 inline Object* JavaScriptFrame::function_slot_object() const { |
130 const int offset = JavaScriptFrameConstants::kFunctionOffset; | 130 const int offset = JavaScriptFrameConstants::kFunctionOffset; |
131 return Memory::Object_at(fp() + offset); | 131 return Memory::Object_at(fp() + offset); |
132 } | 132 } |
133 | 133 |
134 | 134 |
135 inline void StackHandler::SetFp(Address slot, Address fp) { | 135 inline void StackHandler::SetFp(Address slot, Address fp) { |
| 136 if (kFPOnStackSize == 2 * kPointerSize) { |
| 137 // Zero out the high-32 bit of FP for x32 port. |
| 138 Memory::Address_at(slot + kPointerSize) = 0; |
| 139 } |
136 Memory::Address_at(slot) = fp; | 140 Memory::Address_at(slot) = fp; |
137 } | 141 } |
138 | 142 |
139 | 143 |
140 } } // namespace v8::internal | 144 } } // namespace v8::internal |
141 | 145 |
142 #endif // V8_X64_FRAMES_X64_H_ | 146 #endif // V8_X64_FRAMES_X64_H_ |
OLD | NEW |