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

Unified Diff: src/virtual-frame.cc

Issue 113402: Improve algorithm for detaching and attaching a virtual frame to the code... (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/register-allocator.cc ('k') | src/x64/virtual-frame-x64.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/virtual-frame.cc
===================================================================
--- src/virtual-frame.cc (revision 1953)
+++ src/virtual-frame.cc (working copy)
@@ -304,30 +304,6 @@
}
-void VirtualFrame::DetachFromCodeGenerator() {
- // Tell the global register allocator that it is free to reallocate all
- // register references contained in this frame. The frame elements remain
- // register references, so the frame-internal reference count is not
- // decremented.
- for (int i = 0; i < elements_.length(); i++) {
- if (elements_[i].is_register()) {
- cgen_->allocator()->Unuse(elements_[i].reg());
- }
- }
-}
-
-
-void VirtualFrame::AttachToCodeGenerator() {
- // Tell the global register allocator that the frame-internal register
- // references are live again.
- for (int i = 0; i < elements_.length(); i++) {
- if (elements_[i].is_register()) {
- cgen_->allocator()->Use(elements_[i].reg());
- }
- }
-}
-
-
void VirtualFrame::PrepareForReturn() {
// Spill all locals. This is necessary to make sure all locals have
// the right value when breaking at the return site in the debugger.
« no previous file with comments | « src/register-allocator.cc ('k') | src/x64/virtual-frame-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698