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

Unified Diff: src/codegen-inl.h

Issue 113895: Simplify deferred code by removing some unneeded or redundant stuff. (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/codegen.cc ('k') | src/ia32/codegen-ia32.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/codegen-inl.h
===================================================================
--- src/codegen-inl.h (revision 2063)
+++ src/codegen-inl.h (working copy)
@@ -37,20 +37,20 @@
void DeferredCode::SetEntryFrame(Result* arg) {
- ASSERT(generator()->has_valid_frame());
- generator()->frame()->Push(arg);
- enter()->set_entry_frame(new VirtualFrame(generator()->frame()));
- *arg = generator()->frame()->Pop();
+ ASSERT(cgen()->has_valid_frame());
+ cgen()->frame()->Push(arg);
+ enter()->set_entry_frame(new VirtualFrame(cgen()->frame()));
+ *arg = cgen()->frame()->Pop();
}
void DeferredCode::SetEntryFrame(Result* arg0, Result* arg1) {
- ASSERT(generator()->has_valid_frame());
- generator()->frame()->Push(arg0);
- generator()->frame()->Push(arg1);
- enter()->set_entry_frame(new VirtualFrame(generator()->frame()));
- *arg1 = generator()->frame()->Pop();
- *arg0 = generator()->frame()->Pop();
+ ASSERT(cgen()->has_valid_frame());
+ cgen()->frame()->Push(arg0);
+ cgen()->frame()->Push(arg1);
+ enter()->set_entry_frame(new VirtualFrame(cgen()->frame()));
+ *arg1 = cgen()->frame()->Pop();
+ *arg0 = cgen()->frame()->Pop();
}
« no previous file with comments | « src/codegen.cc ('k') | src/ia32/codegen-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698