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

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

Issue 2084017: Version 2.2.11... (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
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/stub-cache-ia32.cc ('k') | src/ia32/virtual-frame-ia32.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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 345
343 // Call keyed load IC. Key and receiver are found on top of the 346 // Call keyed load IC. Key and receiver are found on top of the
344 // frame. Both are dropped. 347 // frame. Both are dropped.
345 Result CallKeyedLoadIC(RelocInfo::Mode mode); 348 Result CallKeyedLoadIC(RelocInfo::Mode mode);
346 349
347 // Call store IC. If the load is contextual, value is found on top of the 350 // Call store IC. If the load is contextual, value is found on top of the
348 // frame. If not, value and receiver are on the frame. Both are dropped. 351 // frame. If not, value and receiver are on the frame. Both are dropped.
349 Result CallStoreIC(Handle<String> name, bool is_contextual); 352 Result CallStoreIC(Handle<String> name, bool is_contextual);
350 353
351 // Call keyed store IC. Value, key, and receiver are found on top 354 // Call keyed store IC. Value, key, and receiver are found on top
352 // of the frame. Key and receiver are not dropped. 355 // of the frame. All three are dropped.
353 Result CallKeyedStoreIC(); 356 Result CallKeyedStoreIC();
354 357
355 // Call call IC. Function name, arguments, and receiver are found on top 358 // Call call IC. Function name, arguments, and receiver are found on top
356 // of the frame and dropped by the call. The argument count does not 359 // of the frame and dropped by the call. The argument count does not
357 // include the receiver. 360 // include the receiver.
358 Result CallCallIC(RelocInfo::Mode mode, int arg_count, int loop_nesting); 361 Result CallCallIC(RelocInfo::Mode mode, int arg_count, int loop_nesting);
359 362
360 // Allocate and call JS function as constructor. Arguments, 363 // Allocate and call JS function as constructor. Arguments,
361 // receiver (global object), and function are found on top of the 364 // receiver (global object), and function are found on top of the
362 // frame. Function is not dropped. The argument count does not 365 // frame. Function is not dropped. The argument count does not
(...skipping 249 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/stub-cache-ia32.cc ('k') | src/ia32/virtual-frame-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698