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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 Operand ElementAt(int index) const { | 180 Operand ElementAt(int index) const { |
181 return Operand(esp, index * kPointerSize); | 181 return Operand(esp, index * kPointerSize); |
182 } | 182 } |
183 | 183 |
184 // Random-access store to a frame-top relative frame element. The result | 184 // Random-access store to a frame-top relative frame element. The result |
185 // becomes owned by the frame and is invalidated. | 185 // becomes owned by the frame and is invalidated. |
186 void SetElementAt(int index, Result* value); | 186 void SetElementAt(int index, Result* value); |
187 | 187 |
188 // Set a frame element to a constant. The index is frame-top relative. | 188 // Set a frame element to a constant. The index is frame-top relative. |
189 void SetElementAt(int index, Handle<Object> value) { | 189 void SetElementAt(int index, Handle<Object> value) { |
190 Result temp(value, cgen_); | 190 Result temp(value); |
191 SetElementAt(index, &temp); | 191 SetElementAt(index, &temp); |
192 } | 192 } |
193 | 193 |
194 void PushElementAt(int index) { | 194 void PushElementAt(int index) { |
195 PushFrameSlotAt(elements_.length() - index - 1); | 195 PushFrameSlotAt(elements_.length() - index - 1); |
196 } | 196 } |
197 | 197 |
198 void StoreToElementAt(int index) { | 198 void StoreToElementAt(int index) { |
199 StoreToFrameSlotAt(elements_.length() - index - 1); | 199 StoreToFrameSlotAt(elements_.length() - index - 1); |
200 } | 200 } |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 Result RawCallCodeObject(Handle<Code> code, RelocInfo::Mode rmode); | 507 Result RawCallCodeObject(Handle<Code> code, RelocInfo::Mode rmode); |
508 | 508 |
509 bool Equals(VirtualFrame* other); | 509 bool Equals(VirtualFrame* other); |
510 | 510 |
511 friend class JumpTarget; | 511 friend class JumpTarget; |
512 }; | 512 }; |
513 | 513 |
514 } } // namespace v8::internal | 514 } } // namespace v8::internal |
515 | 515 |
516 #endif // V8_IA32_VIRTUAL_FRAME_IA32_H_ | 516 #endif // V8_IA32_VIRTUAL_FRAME_IA32_H_ |
OLD | NEW |