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

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

Issue 20767002: Merge 15827, 15842, and 15912 into 3.19 (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.19
Patch Set: Final version 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.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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 int return_id = enter->return_targets()->at(i)->block_id(); 174 int return_id = enter->return_targets()->at(i)->block_id();
175 // When an AbnormalExit is involved, it can happen that the return 175 // When an AbnormalExit is involved, it can happen that the return
176 // target block doesn't actually exist. 176 // target block doesn't actually exist.
177 if (return_id < live_at_block_start_->length()) { 177 if (return_id < live_at_block_start_->length()) {
178 live->Union(*live_at_block_start_->at(return_id)); 178 live->Union(*live_at_block_start_->at(return_id));
179 } 179 }
180 } 180 }
181 last_simulate_ = NULL; 181 last_simulate_ = NULL;
182 break; 182 break;
183 } 183 }
184 case HValue::kDeoptimize: {
185 // Keep all environment slots alive.
186 HDeoptimize* deopt = HDeoptimize::cast(instr);
187 for (int i = deopt->first_local_index();
188 i < deopt->first_expression_index(); ++i) {
189 live->Add(i);
190 }
191 break;
192 }
193 case HValue::kSimulate: 184 case HValue::kSimulate:
194 last_simulate_ = HSimulate::cast(instr); 185 last_simulate_ = HSimulate::cast(instr);
195 went_live_since_last_simulate_->Clear(); 186 went_live_since_last_simulate_->Clear();
196 break; 187 break;
197 default: 188 default:
198 break; 189 break;
199 } 190 }
200 } 191 }
201 192
202 193
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 ZapEnvironmentSlotsInSuccessors(block, live); 249 ZapEnvironmentSlotsInSuccessors(block, live);
259 } 250 }
260 251
261 // Finally, remove the HEnvironment{Bind,Lookup} markers. 252 // Finally, remove the HEnvironment{Bind,Lookup} markers.
262 for (int i = 0; i < markers_->length(); ++i) { 253 for (int i = 0; i < markers_->length(); ++i) {
263 markers_->at(i)->DeleteAndReplaceWith(NULL); 254 markers_->at(i)->DeleteAndReplaceWith(NULL);
264 } 255 }
265 } 256 }
266 257
267 } } // namespace v8::internal 258 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/hydrogen-gvn.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698