Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Side by Side Diff: src/ia32/virtual-frame-ia32.h

Issue 113455: Clean up the Result class. Reduce the size of Result from four words... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698