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

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

Issue 2103007: Spill arguments for a function call from the virtual frame as they are produc... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 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
« no previous file with comments | « src/ia32/codegen-ia32.cc ('k') | src/x64/codegen-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // Spill all occurrences of a specific register from the frame. 137 // Spill all occurrences of a specific register from the frame.
138 void Spill(Register reg) { 138 void Spill(Register reg) {
139 if (is_used(reg)) SpillElementAt(register_location(reg)); 139 if (is_used(reg)) SpillElementAt(register_location(reg));
140 } 140 }
141 141
142 // Spill all occurrences of an arbitrary register if possible. Return the 142 // Spill all occurrences of an arbitrary register if possible. Return the
143 // register spilled or no_reg if it was not possible to free any register 143 // register spilled or no_reg if it was not possible to free any register
144 // (ie, they all have frame-external references). 144 // (ie, they all have frame-external references).
145 Register SpillAnyRegister(); 145 Register SpillAnyRegister();
146 146
147 // Spill the top element of the frame.
148 void SpillTop() { SpillElementAt(element_count() - 1); }
149
147 // Sync the range of elements in [begin, end] with memory. 150 // Sync the range of elements in [begin, end] with memory.
148 void SyncRange(int begin, int end); 151 void SyncRange(int begin, int end);
149 152
150 // Make this frame so that an arbitrary frame of the same height can 153 // Make this frame so that an arbitrary frame of the same height can
151 // be merged to it. Copies and constants are removed from the frame. 154 // be merged to it. Copies and constants are removed from the frame.
152 void MakeMergable(); 155 void MakeMergable();
153 156
154 // Prepare this virtual frame for merging to an expected frame by 157 // Prepare this virtual frame for merging to an expected frame by
155 // performing some state changes that do not require generating 158 // performing some state changes that do not require generating
156 // code. It is guaranteed that no code will be generated. 159 // code. It is guaranteed that no code will be generated.
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 inline bool Equals(VirtualFrame* other); 615 inline bool Equals(VirtualFrame* other);
613 616
614 // Classes that need raw access to the elements_ array. 617 // Classes that need raw access to the elements_ array.
615 friend class DeferredCode; 618 friend class DeferredCode;
616 friend class JumpTarget; 619 friend class JumpTarget;
617 }; 620 };
618 621
619 } } // namespace v8::internal 622 } } // namespace v8::internal
620 623
621 #endif // V8_IA32_VIRTUAL_FRAME_IA32_H_ 624 #endif // V8_IA32_VIRTUAL_FRAME_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/codegen-ia32.cc ('k') | src/x64/codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698