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

Side by Side Diff: src/hydrogen-environment-liveness.cc

Issue 19528003: Unify SoftDeoptimize and Deoptimize hydrogen instructions (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/hydrogen-deoptimizing-mark.cc ('k') | src/hydrogen-gvn.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 int return_id = enter->return_targets()->at(i)->block_id(); 165 int return_id = enter->return_targets()->at(i)->block_id();
166 // When an AbnormalExit is involved, it can happen that the return 166 // When an AbnormalExit is involved, it can happen that the return
167 // target block doesn't actually exist. 167 // target block doesn't actually exist.
168 if (return_id < live_at_block_start_.length()) { 168 if (return_id < live_at_block_start_.length()) {
169 live->Union(*live_at_block_start_[return_id]); 169 live->Union(*live_at_block_start_[return_id]);
170 } 170 }
171 } 171 }
172 last_simulate_ = NULL; 172 last_simulate_ = NULL;
173 break; 173 break;
174 } 174 }
175 case HValue::kDeoptimize: {
176 // Keep all environment slots alive.
177 HDeoptimize* deopt = HDeoptimize::cast(instr);
178 for (int i = deopt->first_local_index();
179 i < deopt->first_expression_index(); ++i) {
180 live->Add(i);
181 }
182 break;
183 }
184 case HValue::kSimulate: 175 case HValue::kSimulate:
185 last_simulate_ = HSimulate::cast(instr); 176 last_simulate_ = HSimulate::cast(instr);
186 went_live_since_last_simulate_.Clear(); 177 went_live_since_last_simulate_.Clear();
187 break; 178 break;
188 default: 179 default:
189 break; 180 break;
190 } 181 }
191 } 182 }
192 183
193 184
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 ZapEnvironmentSlotsInSuccessors(block, &live); 239 ZapEnvironmentSlotsInSuccessors(block, &live);
249 } 240 }
250 241
251 // Finally, remove the HEnvironment{Bind,Lookup} markers. 242 // Finally, remove the HEnvironment{Bind,Lookup} markers.
252 for (int i = 0; i < markers_.length(); ++i) { 243 for (int i = 0; i < markers_.length(); ++i) {
253 markers_[i]->DeleteAndReplaceWith(NULL); 244 markers_[i]->DeleteAndReplaceWith(NULL);
254 } 245 }
255 } 246 }
256 247
257 } } // namespace v8::internal 248 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-deoptimizing-mark.cc ('k') | src/hydrogen-gvn.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698