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

Unified Diff: src/virtual-frame-ia32.h

Issue 16513: Experimental: begin using the register allocator for switch statements... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
Patch Set: '' Created 11 years, 11 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
Index: src/virtual-frame-ia32.h
===================================================================
--- src/virtual-frame-ia32.h (revision 1027)
+++ src/virtual-frame-ia32.h (working copy)
@@ -351,8 +351,11 @@
void Drop(int count);
// Drop one element.
- void Drop();
+ void Drop() { Drop(1); }
+ // Duplicate the top element of the frame.
+ void Dup() { LoadFrameSlotAt(elements_.length() - 1); }
+
// Pop an element from the top of the expression stack.
// Returns a Result, which may be a constant or a register.
Result Pop();
« src/codegen-ia32.cc ('K') | « src/codegen-ia32.cc ('k') | src/virtual-frame-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698