| 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 for (int block_id = block_count_ - 1; block_id >= 0; --block_id) { | 194 for (int block_id = block_count_ - 1; block_id >= 0; --block_id) { |
| 195 if (!worklist.Contains(block_id)) { | 195 if (!worklist.Contains(block_id)) { |
| 196 continue; | 196 continue; |
| 197 } | 197 } |
| 198 worklist.Remove(block_id); | 198 worklist.Remove(block_id); |
| 199 last_simulate_ = NULL; | 199 last_simulate_ = NULL; |
| 200 | 200 |
| 201 HBasicBlock* block = graph()->blocks()->at(block_id); | 201 HBasicBlock* block = graph()->blocks()->at(block_id); |
| 202 UpdateLivenessAtBlockEnd(block, &live); | 202 UpdateLivenessAtBlockEnd(block, &live); |
| 203 | 203 |
| 204 for (HInstruction* instr = block->last(); instr != NULL; | 204 for (HInstruction* instr = block->end(); instr != NULL; |
| 205 instr = instr->previous()) { | 205 instr = instr->previous()) { |
| 206 UpdateLivenessAtInstruction(instr, &live); | 206 UpdateLivenessAtInstruction(instr, &live); |
| 207 } | 207 } |
| 208 | 208 |
| 209 // Reached the start of the block, do necessary bookkeeping: | 209 // Reached the start of the block, do necessary bookkeeping: |
| 210 // store computed information for this block and add predecessors | 210 // store computed information for this block and add predecessors |
| 211 // to the work list as necessary. | 211 // to the work list as necessary. |
| 212 first_simulate_.Set(block_id, last_simulate_); | 212 first_simulate_.Set(block_id, last_simulate_); |
| 213 first_simulate_invalid_for_index_[block_id]->CopyFrom( | 213 first_simulate_invalid_for_index_[block_id]->CopyFrom( |
| 214 went_live_since_last_simulate_); | 214 went_live_since_last_simulate_); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 235 ZapEnvironmentSlotsInSuccessors(block, &live); | 235 ZapEnvironmentSlotsInSuccessors(block, &live); |
| 236 } | 236 } |
| 237 | 237 |
| 238 // Finally, remove the HEnvironment{Bind,Lookup} markers. | 238 // Finally, remove the HEnvironment{Bind,Lookup} markers. |
| 239 for (int i = 0; i < markers_.length(); ++i) { | 239 for (int i = 0; i < markers_.length(); ++i) { |
| 240 markers_[i]->DeleteAndReplaceWith(NULL); | 240 markers_[i]->DeleteAndReplaceWith(NULL); |
| 241 } | 241 } |
| 242 } | 242 } |
| 243 | 243 |
| 244 } } // namespace v8::internal | 244 } } // namespace v8::internal |
| OLD | NEW |