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

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

Issue 23548009: Merged r16406, r16431 into 3.19 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.19
Patch Set: Created 7 years, 3 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-instructions.h » ('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 case HValue::kEnterInlined: { 165 case HValue::kEnterInlined: {
166 // Those environment values are live that are live at any return 166 // Those environment values are live that are live at any return
167 // target block. Here we make use of the fact that the end of an 167 // target block. Here we make use of the fact that the end of an
168 // inline sequence always looks like this: HLeaveInlined, HSimulate, 168 // inline sequence always looks like this: HLeaveInlined, HSimulate,
169 // HGoto (to return_target block), with no environment lookups in 169 // HGoto (to return_target block), with no environment lookups in
170 // between (see ASSERTs above). 170 // between (see ASSERTs above).
171 HEnterInlined* enter = HEnterInlined::cast(instr); 171 HEnterInlined* enter = HEnterInlined::cast(instr);
172 live->Clear(); 172 live->Clear();
173 for (int i = 0; i < enter->return_targets()->length(); ++i) { 173 for (int i = 0; i < enter->return_targets()->length(); ++i) {
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 live->Union(*live_at_block_start_->at(return_id));
176 // target block doesn't actually exist.
177 if (return_id < live_at_block_start_->length()) {
178 live->Union(*live_at_block_start_->at(return_id));
179 }
180 } 176 }
181 last_simulate_ = NULL; 177 last_simulate_ = NULL;
182 break; 178 break;
183 } 179 }
184 case HValue::kSimulate: 180 case HValue::kSimulate:
185 last_simulate_ = HSimulate::cast(instr); 181 last_simulate_ = HSimulate::cast(instr);
186 went_live_since_last_simulate_->Clear(); 182 went_live_since_last_simulate_->Clear();
187 break; 183 break;
188 default: 184 default:
189 break; 185 break;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 ZapEnvironmentSlotsInSuccessors(block, live); 245 ZapEnvironmentSlotsInSuccessors(block, live);
250 } 246 }
251 247
252 // Finally, remove the HEnvironment{Bind,Lookup} markers. 248 // Finally, remove the HEnvironment{Bind,Lookup} markers.
253 for (int i = 0; i < markers_->length(); ++i) { 249 for (int i = 0; i < markers_->length(); ++i) {
254 markers_->at(i)->DeleteAndReplaceWith(NULL); 250 markers_->at(i)->DeleteAndReplaceWith(NULL);
255 } 251 }
256 } 252 }
257 253
258 } } // namespace v8::internal 254 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/hydrogen-instructions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698