| 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |