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

Side by Side Diff: src/x64/virtual-frame-x64.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/x64/codegen-x64.cc ('k') | no next file » | 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 // Spill all occurrences of a specific register from the frame. 138 // Spill all occurrences of a specific register from the frame.
139 void Spill(Register reg) { 139 void Spill(Register reg) {
140 if (is_used(reg)) SpillElementAt(register_location(reg)); 140 if (is_used(reg)) SpillElementAt(register_location(reg));
141 } 141 }
142 142
143 // Spill all occurrences of an arbitrary register if possible. Return the 143 // Spill all occurrences of an arbitrary register if possible. Return the
144 // register spilled or no_reg if it was not possible to free any register 144 // register spilled or no_reg if it was not possible to free any register
145 // (ie, they all have frame-external references). 145 // (ie, they all have frame-external references).
146 Register SpillAnyRegister(); 146 Register SpillAnyRegister();
147 147
148 // Spill the top element of the frame to memory.
149 void SpillTop() { SpillElementAt(element_count() - 1); }
150
148 // Sync the range of elements in [begin, end] with memory. 151 // Sync the range of elements in [begin, end] with memory.
149 void SyncRange(int begin, int end); 152 void SyncRange(int begin, int end);
150 153
151 // Make this frame so that an arbitrary frame of the same height can 154 // Make this frame so that an arbitrary frame of the same height can
152 // be merged to it. Copies and constants are removed from the frame. 155 // be merged to it. Copies and constants are removed from the frame.
153 void MakeMergable(); 156 void MakeMergable();
154 157
155 // Prepare this virtual frame for merging to an expected frame by 158 // Prepare this virtual frame for merging to an expected frame by
156 // performing some state changes that do not require generating 159 // performing some state changes that do not require generating
157 // code. It is guaranteed that no code will be generated. 160 // code. It is guaranteed that no code will be generated.
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 563
561 // Classes that need raw access to the elements_ array. 564 // Classes that need raw access to the elements_ array.
562 friend class DeferredCode; 565 friend class DeferredCode;
563 friend class JumpTarget; 566 friend class JumpTarget;
564 }; 567 };
565 568
566 569
567 } } // namespace v8::internal 570 } } // namespace v8::internal
568 571
569 #endif // V8_X64_VIRTUAL_FRAME_X64_H_ 572 #endif // V8_X64_VIRTUAL_FRAME_X64_H_
OLDNEW
« no previous file with comments | « src/x64/codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698