| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |