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

Unified Diff: src/jump-target-arm.cc

Issue 20492: Experimental: add a pre-merge step to perform some frame moves that do... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
Patch Set: Created 11 years, 10 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 | « no previous file | src/jump-target-ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/jump-target-arm.cc
===================================================================
--- src/jump-target-arm.cc (revision 1316)
+++ src/jump-target-arm.cc (working copy)
@@ -145,6 +145,17 @@
// There were forward jumps. Handle merging the reaching frames
// and possible fall through to the entry frame.
+ // Some moves required to merge to an expected frame require
+ // purely frame state changes, and do not require any code
+ // generation. Perform those first to increase the possibility of
+ // finding equal frames below.
+ if (cgen_->has_valid_frame()) {
+ cgen_->frame()->PrepareMergeTo(entry_frame_);
+ }
+ for (int i = 0; i < reaching_frames_.length(); i++) {
+ reaching_frames_[i]->PrepareMergeTo(entry_frame_);
+ }
+
// If there is a fall through to the jump target and it needs
// merge code, process it first.
if (cgen_->has_valid_frame() && !cgen_->frame()->Equals(entry_frame_)) {
« no previous file with comments | « no previous file | src/jump-target-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698