OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 MemOperand ElementAt(int index) const { | 174 MemOperand ElementAt(int index) const { |
175 return MemOperand(sp, index * kPointerSize); | 175 return MemOperand(sp, index * kPointerSize); |
176 } | 176 } |
177 | 177 |
178 // Random-access store to a frame-top relative frame element. The result | 178 // Random-access store to a frame-top relative frame element. The result |
179 // becomes owned by the frame and is invalidated. | 179 // becomes owned by the frame and is invalidated. |
180 void SetElementAt(int index, Result* value); | 180 void SetElementAt(int index, Result* value); |
181 | 181 |
182 // Set a frame element to a constant. The index is frame-top relative. | 182 // Set a frame element to a constant. The index is frame-top relative. |
183 void SetElementAt(int index, Handle<Object> value) { | 183 void SetElementAt(int index, Handle<Object> value) { |
184 Result temp(value, cgen_); | 184 Result temp(value); |
185 SetElementAt(index, &temp); | 185 SetElementAt(index, &temp); |
186 } | 186 } |
187 | 187 |
188 void PushElementAt(int index) { | 188 void PushElementAt(int index) { |
189 PushFrameSlotAt(elements_.length() - index - 1); | 189 PushFrameSlotAt(elements_.length() - index - 1); |
190 } | 190 } |
191 | 191 |
192 // A frame-allocated local as an assembly operand. | 192 // A frame-allocated local as an assembly operand. |
193 MemOperand LocalAt(int index) const { | 193 MemOperand LocalAt(int index) const { |
194 ASSERT(0 <= index); | 194 ASSERT(0 <= index); |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 | 487 |
488 bool Equals(VirtualFrame* other); | 488 bool Equals(VirtualFrame* other); |
489 | 489 |
490 friend class JumpTarget; | 490 friend class JumpTarget; |
491 }; | 491 }; |
492 | 492 |
493 | 493 |
494 } } // namespace v8::internal | 494 } } // namespace v8::internal |
495 | 495 |
496 #endif // V8_ARM_VIRTUAL_FRAME_ARM_H_ | 496 #endif // V8_ARM_VIRTUAL_FRAME_ARM_H_ |
OLD | NEW |