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

Unified Diff: runtime/vm/assembler_ia32.cc

Issue 10458050: Move ReturnInstr to new scheme (x64 and ia32) and implement more code in new ia32 compiler. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | « runtime/vm/assembler_ia32.h ('k') | runtime/vm/flow_graph_compiler_ia32.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_ia32.cc
===================================================================
--- runtime/vm/assembler_ia32.cc (revision 8165)
+++ runtime/vm/assembler_ia32.cc (working copy)
@@ -1300,6 +1300,13 @@
}
+void Assembler::Drop(intptr_t stack_elements) {
+ if (stack_elements > 0) {
+ addl(ESP, Immediate(stack_elements * kWordSize));
+ }
+}
+
+
void Assembler::LoadObject(Register dst, const Object& object) {
if (object.IsSmi()) {
movl(dst, Immediate(reinterpret_cast<int32_t>(object.raw())));
« no previous file with comments | « runtime/vm/assembler_ia32.h ('k') | runtime/vm/flow_graph_compiler_ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698